Questions tagged [javaplot]

A Java wrapper for gnuplot.

JavaPlot's official site. According to that site, JavaPlot supports Windows XP, Linux (Debian) and Mac OS X (Tiger & Leopard).

29 questions
1
vote
2 answers

Repercussions of trying to kill a program before closing OutputStreamWriter

This is part of larger graphing program (JavaPlot specifically). In a nut shell, I would try to graph something; the graph would appear at out.write(comms); but then close once it hit out.close() I know you need to close OutputStreamWriter, so…
Daniel
  • 2,435
  • 5
  • 26
  • 40
1
vote
2 answers

Scatter Plot will not change color

I'm trying to change the color of the points on my 3D Scatter Plot. The points change to black, not the color I want and the point on the key changes to the correct color. Does anyone know why this occurs? import…
Daniel
  • 2,435
  • 5
  • 26
  • 40
1
vote
2 answers

How do I run Gnuplot Scripts from a Java environment?

All of the information I'm finding about using JavaPlot is about how to create plots and run them from a Java code-level. This is fine, but I already have some script files used that do what I want them to outside of Jave when a user executes them.…
Andrew
  • 117
  • 2
  • 10
0
votes
1 answer

How do I get vertically stacked plots using JavaPlot?

How can I reproduce these vertically stacked plots, available in gnuplot: set multiplot set size 1, 0.5 set origin 0.0,0.5 plot sin(x), log(x) set origin 0.0,0.0 plot sin(x), log(x), cos(x) unset multiplot From JavaPlot…
kabdulla
  • 5,199
  • 3
  • 17
  • 30
0
votes
1 answer

Javaplot set grid

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…
0
votes
1 answer

JavaPlot: Is there anyway to replot the data in the same plot instead of creating a new graphic?

I was trying to monitor the change of some parameters using JavaPlot. Is there a way to simply update the plot of data in the original plot?
0
votes
1 answer

JavaPlot: How can I use the fit method of GNUPlot?

I have a set of 6 points. Now I want to create a trend line (fifth-degree polynomial). I don't have much experience with GNUPlot, yet, but I found the "fit" method which should do exactly what I want. The problem is that I don't know how to call the…
John
  • 909
  • 4
  • 12
  • 29
0
votes
1 answer

JavaPlot - How to plot more data sets to same graphic?

I want to compare time series data in just one graphic. I added several data sets to same plot and plot it - just one data set is shown. Documentation missing, existing questions useless.. Question: Why is just one data set represented? And also,…
0
votes
1 answer

gnuplot 4.7 and Javaplot | The windows is disappeared immediately

I'm trying to see my plot using Javaplot, but the window is not even shown and disappeared immediately. Here is my code: JavaPlot p = new JavaPlot("C:/Program Files (x86)/gnuplot/bin/pgnuplot.exe"); String s=readFile(); p.addPlot(s); p.plot(); …
zoma.saf
  • 558
  • 3
  • 6
  • 14
0
votes
1 answer

Plot2DPanel- Set axis string labels

I am trying but not succeeding to replace numeric labels by string labels on a Plot2DPanel display. Here is a look of my chart using numeric X axis labels: Here is the code I use: // create your PlotPanel (you can use it as a JPanel) …
kevad
  • 409
  • 1
  • 5
  • 15
0
votes
1 answer

Java - JavaPlot under Mac OS X 10.8 - Could I somehow avoid installing gnuplot?

If you don't know JavaPlot, it's a Java library which 'connects' Java with the popular gnuplot providing a set of classes. When it runs, it searches for the gnuplot binary in your system. Anyway, some months ago I've been through the awful…
whatyouhide
  • 15,897
  • 9
  • 57
  • 71
0
votes
2 answers

Spectogram using JavaPlot not working

I'm trying to display a spectogram using JavaPlot with this piece of code: PlotStyle style = new PlotStyle(); style.setStyle(Style.IMAGE); DataSetPlot data = new DataSetPlot(points); data.setPlotStyle(style); JavaPlot plot =…
aitorkun
  • 33
  • 7
0
votes
1 answer

Using JavaPlot/Gnuplot for 3D graphing

I'm trying to do what the title says. Obviously gnuplot is capable of doing this but I want to use JavaPlot to call it. The Graph3D class in JavaPlot makes me think its possible but as I have found no 3D examples and there's almost no documentation…
Daniel
  • 2,435
  • 5
  • 26
  • 40
-1
votes
2 answers

JavaPlot timestamps not working

I have a file like 1429520881 15.0 1429520882 3.0 1429520883 340.0 and I try to use it in JavaPlot JavaPlot plot=new JavaPlot(); GenericDataSet dataset=new GenericDataSet(); filling dataset with…
Vadim
  • 47
  • 7
1
2