help-octave
[Top][All Lists]
Advanced

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

Re: howto plot without auto ascribing legend?


From: antonio palestrini
Subject: Re: howto plot without auto ascribing legend?
Date: Sun, 21 Jan 2007 05:18:31 +0100

2007/1/20, Dmitrey <address@hidden>:
hi all,
so when I use for example

for i=1:100
plot(x{i},y{i}, '-b')
end
% x{i} & y{i} are N{i} x 1 real arrays

it produces lots (100) of legends ('line1', 'line2' etc)

I know that
plot(x{i},y{i}, '-b;my_title;') will change legend name, but howto left
only one notice, not all 100?
Thank you in advance,
WBR, Dmitrey

Do you mean all the graphs in one plot? In this case just write

plot(x{1},y{1}, "-b;legend_that_you_prefer;"); hold on;
for i=2:100
 plot(x{i},y{i}, "-b;;")
end
hold off;

In my octave 2.1.69 it works!
antonio


--
Prof. Antonio Palestrini
DSGSS - University of Teramo, Italy
e-mail: address@hidden


reply via email to

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