help-octave
[Top][All Lists]
Advanced

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

Re: Caption - Legend


From: Markus Mützel
Subject: Re: Caption - Legend
Date: Thu, 16 Apr 2020 18:22:52 +0200

Am 16. April 2020 um 17:48 Uhr schrieb "Renato S. Yamane":
> Hello,
> 
> Maybe this is a stupid question, but I didn't found an answer in 
> https://octave.sourceforge.io/octave/function/legend.html
> 
> I have 2 arrays:
> X_axis = 1 line x 11 columns;
> Y_axis = 7 lines x 11 columns;
> 
> I generate a graph with:
> 
> figure(1);
> loglog(X_axis,abs(Y_axis));
> grid minor;
> legend show
> 
> But the legend show me:
> data1
> data2
> data3
> data4
> data5
> data6
> data7
> 
> How may I change the caption of each data? :-)

Does the demo help?:
>> demo legend 1
legend example 1:
 clf;
 plot (rand (2));
 title ("legend called with string inputs for labels");
 h = legend ("foo", "bar");
 legend (h, "location", "northeastoutside");
 set (h, "fontsize", 20);


Markus




reply via email to

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