Mmh, yes, this is an interesting option, thanks !
But it works only for an "inside" key (see attached png 1). For clarity, as the key
is related to all three graphs, I intended to put it on the left:
"set key outside left"
And in that case, the first plot is shrinked so that the plot and the key is one
third of the whole canvas. (see attached png 2)
Funnily, it this case, space seems to be reserved for an outside key for the two
other plots, even though they have the 'notitle' command. This issue can be solved by
a "set key off" after the first plot, but the problem on the first plot is still
there (see attached png 3).
Looks like the key is "part" of the size of the plot, so the multiplot "autoscale"
feature gets confused with an outside key.
Has anybody an idea on handling this ?
(BTW, at present, I do that using the excellent "subfigure" latex package, but I'd
like to create the whole plot with gnuplot)
-------- Message original --------
Sujet: Re: [Gnuplot-info] unique key in a multiplot ?
Date: Mon, 3 Mar 2008 07:15:14 -0800 (PST)
De: Thomas Sefzick <t.s...@fz...>
Pour :: gnu...@li...
Références: <47C...@ya...>
set multiplot layout 1,3 title "global title"
set title "b = 0"
b=0
plot [x=0:1] \
a=0, foo(a,b,x) title 'a=0', \
a=1, foo(a,b,x) title 'a=1', \
a=2, foo(a,b,x) title 'a=2'
set title "b = 1"
b=1
plot [x=0:1] \
a=0, foo(a,b,x) notitle, \
a=1, foo(a,b,x) notitle, \
a=2, foo(a,b,x) notitle'
set title "b = 2"
b=2
plot [x=0:1] \
a=0, foo(a,b,x) notitle, \
a=1, foo(a,b,x) notitle, \
a=2, foo(a,b,x) notitle
unset multiplot
pause -1 "fin"
--------------------------------------------------------
seb_kramm wrote:
>
> Hello, gnuplot users,
>
> I have a problem related with multiplot / key.
>
> I am plotting the same function 3 times on a multiplot.
> These 3 functions have 2 parameters, besides x, so each plot has, say, 3
> curves. (see
> example below)
>
> Now, all this is fine, if there is no key ("set key off").
>
> My problem is, I want a key, so I can identify on each plot which one is
> related to
> the 'a' value. If I enable the key ("set key left right") then I get it 3
> times (on
> each plot)
>
> What I'd like, of course, is having a unique key for all of these 3 plots
> (as the
> values for parameter 'a' are the same each time). So I tried issuing a
> "set key
> outside" before the first plot, and "set key off" after the first plot,
> but it
> doesn't do it : the automatic scaling of the multiplot shrinks the first
> plot, and
> leaves the 2 others OK.
>
> I suppose I could play around with scale and offset option, but it is
> labourious.
> Does anybody know how to do this more easily ?
>
> Thank you all
>
> --------------------------------------------------------
> set multiplot layout 1,3 title "global title"
> set title "b = 0"
> b=0
> plot [x=0:1] \
> a=0, foo(a,b,x) title 'a=0', \
> a=1, foo(a,b,x) title 'a=1', \
> a=2, foo(a,b,x) title 'a=2'
>
> set title "b = 1"
> b=1
> plot [x=0:1] \
> a=0, foo(a,b,x) title 'a=0', \
> a=1, foo(a,b,x) title 'a=1', \
> a=2, foo(a,b,x) title 'a=2'
>
> set title "b = 2"
> b=2
> plot [x=0:1] \
> a=0, foo(a,b,x) title 'a=0', \
> a=1, foo(a,b,x) title 'a=1', \
> a=2, foo(a,b,x) title 'a=2'
> unset multiplot
> pause -1 "fin"
> --------------------------------------------------------
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Gnuplot-info mailing list
> Gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
>
--
View this message in context:
http://www.nabble.com/unique-key-in-a-multiplot---tp15804978p15806038.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gnuplot-info mailing list
Gnu...@li...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info
|