Hi gnuplotters
I am trying to plot a couple of trivial graphs using multiplot to get the
result shown.
<http://gnuplot.10905.n7.nabble.com/file/n17473/both_sideways.png>
The code is:
reset
set term png enhanced background rgb"light-blue"
set output "both_sideways.png"
AutoScale=0.9
set multiplot layout 1,2 title "Now I can see this"
set title "sine"
set xlabel "x" #set xlable and ylabel
set ylabel "y=sin(x)"
#set a pink background color
set object 1 rectangle from screen 0,0 to screen 0.5,AutoScale fillcolor
rgb"pink" behind
plot sin(x) with lines linecolor rgb"light-green" notitle
unset object 1
set object 2 rectangle from screen 0.5,0 to screen 1,AutoScale fillcolor
rgb"light-green" behind
set title "cosine"
set ylabel "y=cos(x)" #set ylable, xlabel set above
#set a light-green background color
plot cos(x) with lines linecolor rgb"pink" notitle
unset multiplot
The problem i have is defining AutoScale, which i have to guess. This
example uses 0.9 for ymax in screen mode (for want of a better term). Is
there a way to get gnuplot to automatically define AutoScale? I know it has
internal variables (GPVAL_?) that can be used after doing dummy plots to set
them. There must be one that defines the multiplot title region?
Dave
--
View this message in context: http://gnuplot.10905.n7.nabble.com/Autoscaling-tp17473.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|