Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #547
| From | sfeam <sfeam@users.sourceforge.net> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: How do I plot data (not function) in a certain range? |
| Followup-To | comp.graphics.apps.gnuplot |
| Date | 2011-08-23 09:34 -0700 |
| Organization | gnuplot development team |
| Message-ID | <j30kqd$k6$1@dont-email.me> (permalink) |
| References | <e625a582-5119-42e5-ab56-c1eec08c4b30@c33g2000yqm.googlegroups.com> |
Followups directed to: comp.graphics.apps.gnuplot
G. wrote:
> Dear all,
> I have dat files with my data. Now I would like to plot all data in a
> certain range, small than x and smaller than y?
> Can I as well separately determine the range for each of the plot
> files, please?
> I have seen examples for functions, but not how to constrain the
> plotting range for each single .dat file.
Assume x coordinate in column 1, y coordinate in column 2
#Define a convenient function
#Note: NaN means "not a number", the program will skip these values
#
limit( column, maxvalue ) = column > maxvalue ? NaN : column
plot 'file1' using (limit($1,XMAX1)):(limit($2,YMAX1)), \
'file2' using (limit($1,XMAX2)):(limit($2,YMAX2)), \
'file3' ...
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
How do I plot data (not function) in a certain range? "G." <bestenborstel@gmail.com> - 2011-08-23 07:43 -0700
Re: How do I plot data (not function) in a certain range? sfeam <sfeam@users.sourceforge.net> - 2011-08-23 09:34 -0700
Re: How do I plot data (not function) in a certain range? "G." <bestenborstel@gmail.com> - 2011-08-29 04:53 -0700
Re: How do I plot data (not function) in a certain range? "G." <bestenborstel@gmail.com> - 2011-08-29 04:57 -0700
Re: How do I plot data (not function) in a certain range? "G." <bestenborstel@gmail.com> - 2011-08-29 05:11 -0700
csiph-web