Penguin

Differences between current version and predecessor to the previous major change of GnuPlot.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 3 Last edited on Tuesday, June 12, 2007 4:04:44 pm by AlastairPorter
Older page: version 2 Last edited on Wednesday, August 24, 2005 5:19:16 pm by JohnMcPherson Revert
@@ -41,4 +41,46 @@
  "input" u 1:4 w lp t "4th", "input" u 1:6 w lp t "6th" 
 </verbatim> 
 As you see, command names can be shortened, which can 
 make it hard to understand what is happening :) 
+  
+!!Multiple plots on a single page  
+Say you want to put 2 graphs on a single A4 bit of paper to print it out  
+<verbatim>  
+set terminal postscript portrait  
+set size 1,1 # The documentation recommends you set to full size first  
+set origin 0,0  
+set output "output.ps"  
+set multiplot # Enter multiplot mode. Your prompt will become 'multiplot>'  
+set size 1,0.5  
+set origin 0,0  
+plot "input" using 1:2 with lines  
+set size 1,0.5  
+set origin 0,0.5  
+plot "input" using 1:3 with lines  
+unset multiplot # Exit multiplot mode  
+</verbatim>  
+  
+!! Plotting timeseries data  
+<verbatim>  
+set xdata time  
+set timefmt "%H:%M:%S"  
+set xrange ["8:00:00":"18:00:00"]  
+</verbatim>  
+Timestamps in your data file will now be recognised. Gaps in your time data will show up as gaps in the graph.  
+  
+!! Normal distribution  
+Define the following:  
+<verbatim>  
+invsqrt2pi=1.0/sqrt(2.0*pi)  
+normal(x,mu,sigma)=invsqrt2pi/sigma*exp(-0.5*((x-mu)/sigma)**2)  
+</verbatim>  
+Now, if you want a normal distribution with mean 13 and SD 1, you can go  
+<verbatim>  
+plot normal(x,13,1)  
+</verbatim>  
+  
+!! Force a scale  
+<verbatim>  
+set xrange[0:10]  
+set yrange[50:100]  
+</verbatim>