Menu

#2410 Gnuplot > 5.2.2 stops plotting 0's...

None
closed-not-a-bug
nobody
2021-02-22
2021-02-20
Anonymous
No

Hello,

I've been using gnuplot for some time under FreeBSD 11.4. I noticed that output plots has changed when we migrated from gnuplot 5.2.2 release. I'm not sure what is the problem but it seems that no 0 points are potting after version 5.2.2. Thankfully I kept the 5.2.2 package (pkg create gnuplot) so I can show you the differences. I'm attaching 4 files.

gnuplot.file is the file that I send into gnuplot
inputdata.txt is the data file that I'm using

plot-wired_5.2.2.png is the output with gnuplot 5.2.2

plot-wired_5.4.0.png is the output with gnuplot 5.4.0

Can you shed light on why the 0 points are no longer being plotted with version 5.4.0?

4 Attachments

Discussion

  • Ethan Merritt

    Ethan Merritt - 2021-02-20

    There is no such thing as zero on a log scale axis.
    Plotting "with lines" cannot connect points that do not exist.
    I suggest to use "with impulses" instead:

    set style data impulses
    plot "2410.dat" using 1:5  title "read (kBps)" axis x1y1 ls 1 , \
              "" using 1:8  title "write (kBps)" axis x1y1 ls 2 , \
              "" using 1:10  title "% Busy" axis x1y2
    
     

    Last edit: Ethan Merritt 2021-02-20
  • Jason Naughton

    Jason Naughton - 2021-02-20

    Sorry you can close this ticket... My mistake. Thanks Ethan. I was playing with filters and realized this. I could work with lines if I did the following:

    plot "inputdata.txt" using 1:($5 > 0 ? $5 : 0.00001) title "read (kBps)" axis x1y1 ls 1 with lines, \
    "inputdata.txt" using 1:($8 > 0 ? $8 : 0.00001) title "write (kBps)" axis x1y1 ls 1 with lines, \
    "inputdata.txt' using 1:10 title "% Busy" axis x1y2 with lines

    I assume 5.2.2 essentially did this and when >> 5.2.2 came out it no longer respected the idea of a zero on a log plot. I should have known that...

     
  • Ethan Merritt

    Ethan Merritt - 2021-02-22
    • status: open --> closed-not-a-bug
    • Group: -->
    • Priority: -->
     

Log in to post a comment.