Re: Compute values with 'every'
Robert von Knobloch <[email protected]>
| Newsgroups | gmane.comp.graphics.gnuplot.user |
|---|---|
| Message-ID | <[email protected]> |
On 02/12/2020 17:00, Alexander Stangl wrote: > Das sollte jetzt klappen: > statt using 0:... musst du using (($0-3)/4):... verwenden. Dann plottest > du die daten gleich wie die anderen. > > LG Alexander, your solution works perfectly. Again, many thanks for your efforts. My knowledge of gnuplot is not as deep as yours. I'll post to the list as the topic is closed. Bob (Robert) von Knobloch. Solution: set datafile missing NaN y=NaN plot file1 every 4::0 using 1 title "rr25" ls 1, \ file1 every 4::1 using 1 title "rr50" ls 3, \ file1 every 4::2 using 1 title "rr75" ls 5, \ file1 every 4::3 using 1 title "rr100" ls 7, \ file1 using (($0-3)/4):(int($0)%4 == 0 ? (y=$1) : int($0)%4 == 3 ? $1/y : NaN) title "rr100/rr25" ls 9 _______________________________________________ gnuplot-info mailing list [email protected] Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info