help-octave
[Top][All Lists]
Advanced

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

Re: changing label of a hist ?


From: Shai Ayal
Subject: Re: changing label of a hist ?
Date: Tue, 06 Jan 2004 09:06:10 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031210 Thunderbird/0.5a

you could do it in the following way (it's ugly, but works)

[nn,xx] = hist(data, bins);
[xb, yb] = bar (xx, nn);
plot(xb,yb,'-;Generated data;');

        Shai

Bart Vandewoestyne wrote:
For simple plotting, it is possible to change the label using for example:

plot(Xreal, Yreal, ';Real distribution;');

Unfortunately, with the 'hist' command, this doesn't work:

hist(data, bins, ';Generated data;');
---> gives errors

Is it possible to change the label of the 'hist' plotted data, or would that take me far down delving into the code of hist.m ?

Regards,
Bart

Attachment: shaia.vcf
Description: Vcard


reply via email to

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