Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #289
| From | Kevin <kevin.nielson@gmail.com> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: plot a section of a splot |
| Date | 2011-05-07 05:32 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <3f01d6bb-880a-49fe-a8ca-74390cf23421@glegroupsg2000goo.googlegroups.com> (permalink) |
You can be selective about data values by using the ternary logical operator:
plot 'results' u 1:( $2 == 10 ? $2 : 1/0 ):3 t "P_{max}(x,10)"
This will use your y values as data where y = 10, and 1/0 (undefined) otherwise, so that other points aren't plotted.
Note that this will only plot points. Unless all your y=10 values are contiguous in the file, gnuplot will not draw lines between these points.
Back to comp.graphics.apps.gnuplot | Previous | Next | Find similar
Re: plot a section of a splot Kevin <kevin.nielson@gmail.com> - 2011-05-07 05:32 -0700
csiph-web