|
From: Thomas S. <t.s...@fz...> - 2007-12-06 10:36:58
|
you need 'x' and 'y' values generated automatically, so you need 'splot': # adjust vector length l = 0.005 set xrange [-3:3] set yrange [-3:3] # number of x-values set samples 20 # number of y-values set isosamples 20 # view from top set view 0,0 # and don't care about the 'empty z range' warning splot '+' using 1:2:(0.0):(l*($2**2 - 2.*$1*$2)):(l*(3.*$1*$2 - 6.*$1**2)):(0.0) with vectors works, but 'plot' would be better, so first 'splot' into a table and then use the resulting datafile as input: set table 'data' splot '+' ... (like above) unset table plot 'data' using 1:2:4:5 with vectors Peter Danenberg wrote: > > Has anyone plotted vector fields with the pseudo-file '+'? It would be > nice to avoid intermediate files. > > It seems like '+'s one-variable limitation in plot would make that > impossible, though. > > Intuitively, I want to do something like: > > plot '+' using ($1):($2):($2**2 - 2*$1*$2):(3*$1*$2 - 6*$1**2) \ > with vectors > > to express the vector equation: > > F(x, y) = <y^2 - 2xy, 3xy - 6x^2> > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Gnuplot-info mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://www.nabble.com/Vector-fields-with-pseudo-file-%27%2B%27-tf4953569.html#a14189855 Sent from the Gnuplot - User mailing list archive at Nabble.com. |