Gnuplot () # Take all the Gnuplot command as a list of command: g. Or you can even pass the Gnuplot command as a string list or a text paragraph: #!/usr/bin/env python3 #coding=utf8 from pygnuplot import gnuplot, pyplot # Illustration of object-oriented interface, you can see we only wrap the # gnuplot script by g.cmd('.') and it's simple and straitfoward if you # are familar with Gnuplot. cmd ( 'set title font ",20" norotate' ) g. cmd ( 'set key fixed left top vertical Right noreverse enhanced autotitle box lt black linewidth 1.000 dashtype solid' ) g. ![]() cmd ( 'set terminal pngcairo font "arial,10" fontscale 1.0 size 600, 400' ) g. The easiest way to call Gnuplot: #!/usr/bin/env python3 #coding=utf8 from pygnuplot import gnuplot, pyplot # Illustration of object-oriented interface, you can see we only wrap the # gnuplot script by g.cmd('.') and it's simple and straitfoward if you # are familar with Gnuplot. The data, Thus we could do everything with the only one simple function. ![]() We implemented the function cmd() and pass the command to call Gnuplot to plot
0 Comments
Leave a Reply. |