help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[newbie] placing legends in subplots


From: Jean Dubois
Subject: [newbie] placing legends in subplots
Date: Mon, 7 Oct 2013 19:00:29 +0200

I'm trying two place _manually_ two legends in two subplots.
The first legend is placed as expected. The second legend however does not
appear at the place in the second subplot where I clicked. Can someone
here tell me how to accomplish this?

here is my sample-code:

clear
x=0:0.1:2*pi;
y1=sin(x);
y2=cos(x);
subplot(2,1,1)
plot(x,y1)
grid on
xlabel('x')
ylabel('y1')
gtext('legend1')
subplot(2,1,2)
plot(x,y2)
gtext('legend2')
grid on
xlabel('x')
ylabel('y2')
%I click the mouse in subplot 2 at a corresponding place as the one in subplot 1
%somewhere in the right upper corner
%but the textstring 'legend2' appears at another place
gtext('legend2')

(Note that I'd like put both legends _manually_ in the subplots,
I know you van place them also with wind directions)

thanks in advance
jean

Attachment: doublelegend.eps
Description: PostScript document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]