|
From: Maximilian K. <Max...@fr...> - 2013-11-04 11:00:36
|
Hi all,
I am trying to plot several graphs from the same data-file, which
contains data on a magnetic field. In the end I want a plot, where the
top part has the same settings as the lower one, except that the y-scale
is different.
To this end, I use a multiplot and align the two plots by
set [t|b]margin at screen y
which works nicely. The problem is the key - I only want one, if
possible spanning the whole graph on the right side. At this point, I
can not even make the key disappear for one graph (I have already tried
"set key off", "unset key", "notitle")
I used the 'with image' keyword, but I think this is the part that
messes up the above.
This is the code I have so far:
#~~~ set multiplot ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set multiplot layout 2,1 rowsfirst upwards
set xrange [-1.2:1.2]
set cbrange [0:.18]
#~~~ interesting part of coil no key ~~~~~~~~~~~~~~
set yrange [0:.05]
set tmargin at screen .4
unset key
plot 'PG.dat' using 2:1:6 notitle with image
#~~~ clear settings ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unset tmargin
#~~~ rest of the coil with key ~~~~~~~~~~~~~~~~~~~~
unset xtics # no x-tics
set bmargin at screen .4 # specify x-start
set yrange [.05:.22] # set x-range
plot 'PG.dat' using 2:1:6 with image
#~~~ clear settings ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unset bmargin
unset multiplot
Thanks for your help, Max
|