Menu

replot to terminal type jpeg fails

Help
Anonymous
2004-08-25
2004-08-25
  • Anonymous

    Anonymous - 2004-08-25

    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? 

     
    • Hans-Bernhard Broeker

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.