Using gnuplot 4.0 on Redhat Linux, I try to generate a 2D plot with two traces. The output using "set terminal X11" is correct, however, when I do a "set terminal jpeg" followed by "set output xxx.jpp", Only the trace associated with the plot is displayed. the replot is not displayed. I can swap the dataset around and the data set associated with the plot is alway displayed and the replot is always missing. I tried to add a "set ouput" command after the replot to flush the output but it was no help. Am I doing something wrong or is this possibly a bug?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You're doing something wrong --- you're using 'replot' when you should just have plotted two datasets in a single plot command:
plot 'file1', 'file2'
The replot method works on X11, but actually generates *two* plots, of which you see only the second one; the first one is replaced much too quickly to be seen. But JPEG can't store more than one page of output in its file, and it'll hold the first plot you made after opening the terminal and output.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Using gnuplot 4.0 on Redhat Linux, I try to generate a 2D plot with two traces. The output using "set terminal X11" is correct, however, when I do a "set terminal jpeg" followed by "set output xxx.jpp", Only the trace associated with the plot is displayed. the replot is not displayed. I can swap the dataset around and the data set associated with the plot is alway displayed and the replot is always missing. I tried to add a "set ouput" command after the replot to flush the output but it was no help. Am I doing something wrong or is this possibly a bug?
You're doing something wrong --- you're using 'replot' when you should just have plotted two datasets in a single plot command:
plot 'file1', 'file2'
The replot method works on X11, but actually generates *two* plots, of which you see only the second one; the first one is replaced much too quickly to be seen. But JPEG can't store more than one page of output in its file, and it'll hold the first plot you made after opening the terminal and output.