Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #288
| From | Kevin <kevin.nielson@gmail.com> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: plot a section of a splot |
| Date | 2011-05-07 05:31 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <19e0e10b-e9fe-4f11-9e24-e48dd9006132@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 — Next in thread | Find similar
Re: plot a section of a splot Kevin <kevin.nielson@gmail.com> - 2011-05-07 05:31 -0700 Re: plot a section of a splot Giacomo Boffi <giacomo.boffi@polimi.it> - 2011-06-12 22:28 +0200
csiph-web