Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1750
| From | sfeam <sfeam@users.sourceforge.net> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: iterative plot in parametric mode? |
| Followup-To | comp.graphics.apps.gnuplot |
| Date | 2013-04-08 15:42 -0700 |
| Organization | gnuplot development team |
| Message-ID | <kjvgv8$roa$1@dont-email.me> (permalink) |
| References | (2 earlier) <k9j1eu$gal$1@news.rz.uni-karlsruhe.de> <k9j8bp$rlf$1@dont-email.me> <k9jarf$kbs$1@news.rz.uni-karlsruhe.de> <k9je5g$sop$1@dont-email.me> <e7a089a7-c8c8-40e8-9552-1267f1a825c7@googlegroups.com> |
Followups directed to: comp.graphics.apps.gnuplot
iainleverett@gmail.com wrote: > On Monday, 3 December 2012 23:55:26 UTC, sfeam wrote: >> Karl wrote: >> >> >> >> > On 03.12.2012 23:16, sfeam wrote: >> >> > > >> >> >> The CVS version now allows providing a sampling range in-line as part >> >> of >> >> >> the plot command. So in version 4.7 (but not 4.6) you can say >> >> >> >> >> >> set xrange [-1:1] >> >> >> plot for [N=1:4] [t=-pi:pi] '+' using (sin(N * $1)) : (cos($1)) >> >> > >> >> > To me, using the '+' could completely supersede the parametric mode. >> >> > A most stringent solution, and that even applies to a much broader >> >> > range of uses. >> >> > >> >> > I already advocated this once (don“t remember where) in a way that >> >> > the terminal xyranges and the sampling of the independent variable >> >> > should be handled completely independent. Is this actually what the >> >> > inline sampling range does, or is it only for use with '+' ? >> >> >> >> It currently applies to each sampled component of a 2D plot. >> >> >> >> See >> >> http://gnuplot.sourceforge.net/demo_svg_4.7/piecewise.html >> >> >> >> Details are not yet worked out for use in 3D plots. >> >> >> >> Ethan > > hi all. sorry to come in late, i got directed here by a search for > iteration in parametric mode. is there any guidance on how ethan's > suggested solution actually works? i'm new to gnuplot which is the issue, > but i'm stuck, I've tried googling the plus syntax, using, plot... all to > no avail. NB: This applies only to the development version (4.7) ------------------------------------------------------ Suppose you have a parametric function of dummy variable A X = fx(A) Y = fy(A) To plot this using the '+' syntax you would first specify the expected range on x and y and then sample the functions of A. For example: fx(A) = sin(0.2 * A) fy(A) = 3 * cos(A) set xrange [-3:3] set yrange [-3:3] plot sample [A=0:20] '+' using (fx($1)) : (fy($1)) with lines The '+' indicates a 1-dimension sampling. The individual samples are indexed by $1. The plot generates x coordinates from fx($1) and y coordinates from fy($1). The paired x and y coordinates are connected by lines. You don't say what it is you might want to iterate over. Why don't you get this much working and then ask again. Ethan
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
iterative plot in parametric mode? Karl <ratzsch@polymer.uka.de> - 2012-12-02 23:28 +0100
Re: iterative plot in parametric mode? ab <ab.3942@googlemail.com> - 2012-12-02 23:24 -0800
Re: iterative plot in parametric mode? Karl <mail.kfr@gmx.net> - 2012-12-03 09:19 +0100
Re: iterative plot in parametric mode? ab <ab.3942@googlemail.com> - 2012-12-03 03:05 -0800
Re: iterative plot in parametric mode? Karl <ratzsch@polymer.uka.de> - 2012-12-03 21:08 +0100
Re: iterative plot in parametric mode? sfeam <sfeam@users.sourceforge.net> - 2012-12-03 08:29 -0800
Re: iterative plot in parametric mode? Karl <ratzsch@polymer.uka.de> - 2012-12-03 21:18 +0100
Re: iterative plot in parametric mode? sfeam <sfeam@users.sourceforge.net> - 2012-12-03 14:16 -0800
Re: iterative plot in parametric mode? Karl <ratzsch@polymer.uka.de> - 2012-12-03 23:58 +0100
Re: iterative plot in parametric mode? sfeam <sfeam@users.sourceforge.net> - 2012-12-03 15:55 -0800
Re: iterative plot in parametric mode? Karl <mail.kfr@gmx.net> - 2012-12-04 14:11 +0100
Re: iterative plot in parametric mode? iainleverett@gmail.com - 2013-04-08 15:01 -0700
Re: iterative plot in parametric mode? sfeam <sfeam@users.sourceforge.net> - 2013-04-08 15:42 -0700
Re: iterative plot in parametric mode? iainleverett@gmail.com - 2013-04-09 03:04 -0700
Re: iterative plot in parametric mode? iainleverett@gmail.com - 2013-04-09 03:07 -0700
Re: iterative plot in parametric mode? Karl <mail.kfr@gmx.net> - 2013-04-09 09:42 +0200
csiph-web