[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bar and hist
From: |
Kai Habel |
Subject: |
Re: bar and hist |
Date: |
Tue, 06 Nov 2007 14:10:03 +0100 |
-------- Original-Nachricht --------
> Datum: Tue, 06 Nov 2007 13:59:44 +0100
> Von: David Bateman <address@hidden>
> An: Evan <address@hidden>
> CC: kahacjde <address@hidden>, address@hidden
> Betreff: Re: bar and hist
> Evan wrote:
> > On Nov 5, 2007 5:48 PM, David Bateman <address@hidden>
> wrote:
> >
> >> Evan wrote:
> >>
> >>> On 10/31/07, kahacjde <address@hidden> wrote:
> >>>
> >>>
> >>>> Hello,
> >>>>
> >>>> bar and hist are using 'patch' graphic objects now. You have to
> change the
> >>>> patch properties like this:
> >>>>
> >>>> h = bar(rand(10,1));
> >>>> set(h,'FaceColor','yellow','EdgeColor',[0.2 0.7 0.4]);
> >>>>
> >>>> or in one line
> >>>>
> >>>> bar(rand(10,1), 'FaceColor', 'yellow', 'EdgeColor', [0.2 0.7 0.4]);
> >>>>
> >>>> Kai
> >>>>
> >>>>
> >>> It seems that this doesn't work for hist
> >>>
> >>>
> >> This works fine for me.. All of the additional arguments to bar are
> >> passed to the underlying patch command.. So this should work..
> >>
> >>
> >
> > Could you please give me an example, or refer me to the document.
> > I cannot get it work in that way.
> >
> >
> Ok, I tested for bar and not hist.. Yes in hist the additional arguments
> are not passed not.. Here is a patch that addresses this
>
> D.
>
>
> --
> David Bateman address@hidden
> Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
> Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)
> 91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)
>
> The information contained in this communication has been classified as:
>
> [x] General Business Information
> [ ] Motorola Internal Use Only
> [ ] Motorola Confidential Proprietary
>
David,
matlab does not support property/value pairs for hist. I tried this for version
7.5
>> hist(randn(30),'FaceColor','red')
??? Error using ==> hist at 45
Input arguments must be numeric.
They propose to use the following method instead:
hist(randn(30))
h = findobj(gca,'Type','patch');
set(h,'FaceColor','red','EdgeColor','white')
Kai
- Re: bar and hist, (continued)
Re: bar and hist, David Bateman, 2007/11/05
- Re: bar and hist, Evan, 2007/11/06
- Re: bar and hist, David Bateman, 2007/11/06
- Re: bar and hist,
Kai Habel <=
- Re: bar and hist, David Bateman, 2007/11/06
- Re: bar and hist, David Bateman, 2007/11/06
- Re: bar and hist, John W. Eaton, 2007/11/06
- Re: bar and hist, David Bateman, 2007/11/06
- Re: bar and hist, David Bateman, 2007/11/06