Help:Gnuplot

From QED

Revision as of 15:59, 1 September 2006 by WikiSysop (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search
Help
Related topics

QED supports an enhanced version of MediaWiki gnuplot (Permalink11px.gif[1]).

The enhancement is that if an uploaded data file, say thedata.dat, is used, it can be specified as 'Image:thedata.dat' without having to find the hashed path.

Gnuplot Plot


The above was produced by the following:

<gnuplot>
 plot '-' using 1:2 t 'quadratic approximation' with linesp lt 1 lw 3, \
 '-' using 1:2 t 'cubic approximation' with linesp lt 2 lw 3
 1 2
 2 4
 3 8
 e
 1 3
 2 9
 3 27
 e
</gnuplot>

Each "e" signals the end of a block of data; each '-' requests a block of data.


Gnuplot Plot

The above plot was generated by the following specification, in which
''
in effect means "reread the previously specified file".
<gnuplot>
   set xlabel "Month of 2004"
   set ylabel "Amount [Euro]"
   plot 'Image:Gnuplot.dat' using 1:2 title 'planned',\
   '' using 1:3 title 'interpolated',\
   '' using 1:4 title 'spent' 
 </gnuplot>
Personal tools