From help-octave-request at bevo dot che dot wisc dot edu Tue Jan 6 02:15:12 2004 Subject: Re: changing label of a hist ? From: Shai Ayal To: Bart Vandewoestyne CC: help-octave at bevo dot che dot wisc dot edu Date: Tue, 06 Jan 2004 09:06:10 +0200 This is a multi-part message in MIME format. --------------050001060200070700040903 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 > --------------050001060200070700040903 Content-Type: text/x-vcard; charset=utf8; name="shaia.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="shaia.vcf" begin:vcard fn:Shai Ayal n:Ayal;Shai org:BioControl Medical adr:;;3 Geron St.;Yahud;;56100;Israel email;internet:shaia at biocontrol dot co dot il title:Scientific Project Manager tel;work:+972 3 6322126 tel;fax:+972 3 6322125 x-mozilla-html:FALSE version:2.1 end:vcard --------------050001060200070700040903-- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------