From: <mh...@us...> - 2012-12-06 09:23:58
|
Revision: 324 http://gnuplot-py.svn.sourceforge.net/gnuplot-py/?rev=324&view=rev Author: mhagger Date: 2012-12-06 09:23:50 +0000 (Thu, 06 Dec 2012) Log Message: ----------- Update for modern gnuplot. Change to use modern gnuplot usage "set style data lines" rather than "set data style lines". Suggested by: Csaba Szepesvari <sze...@ua...> Modified Paths: -------------- trunk/__init__.py trunk/demo.py trunk/test.py Modified: trunk/__init__.py =================================================================== --- trunk/__init__.py 2012-12-06 09:23:32 UTC (rev 323) +++ trunk/__init__.py 2012-12-06 09:23:50 UTC (rev 324) @@ -136,7 +136,7 @@ commands to gnuplot manually:: g = Gnuplot.Gnuplot() - g('set data style linespoints') + g('set style data linespoints') g('set pointsize 5') - There is no provision for missing data points in array data (which Modified: trunk/demo.py =================================================================== --- trunk/demo.py 2012-12-06 09:23:32 UTC (rev 323) +++ trunk/demo.py 2012-12-06 09:23:50 UTC (rev 324) @@ -27,7 +27,7 @@ # are also output on stderr. g = Gnuplot.Gnuplot(debug=1) g.title('A simple example') # (optional) - g('set data style linespoints') # give gnuplot an arbitrary command + g('set style data linespoints') # give gnuplot an arbitrary command # Plot a list of (x, y) pairs (tuples or a numpy array would # also be OK): g.plot([[0,1.1], [1,5.8], [2,3.3], [3,4.2]]) @@ -75,7 +75,7 @@ ym = y[newaxis,:] m = (sin(xm) + 0.1*xm) - ym**2 g('set parametric') - g('set data style lines') + g('set style data lines') g('set hidden') g('set contour base') g.title('An example of a surface plot') Modified: trunk/test.py =================================================================== --- trunk/test.py 2012-12-06 09:23:32 UTC (rev 323) +++ trunk/test.py 2012-12-06 09:23:50 UTC (rev 324) @@ -293,7 +293,7 @@ m = (numpy.sin(xm) + 0.1*xm) - ym**2 wait('a function of two variables from a GridData file') g('set parametric') - g('set data style lines') + g('set style data lines') g('set hidden') g('set contour base') g.xlabel('x') This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |