I try to plot using JavaPlot a particular graph in a java project (I use eclipse).
Now, I create the module for plotting as follow:
public void createPlot(){
JavaPlot p = new JavaPlot();
p.set("key", "rmargin");
p.set("key title","'OBJECTS INSIDE:'");
p.set("size", "square");
p.set("xlabel", "'x'");
p.set("ylabel", "'y'");
p.set("title", "'TITLE'");
p.addPlot(positionData);
p.plot();
}
And the program work very good but I like to put inside this plot some upgrading:
- I like to put inside the grid but if I write:
p.set("grid");
I receive error; - I like to change the pointsize and point-type of the plot.
I understand, for the moment, that using p.set("","");
I need to specify what to set (xlabel, ylabel, size...) and how to set (x,y,square...) but how about more complex commands such that in point 1. and 2. of this question?