help-octave
[Top][All Lists]
Advanced

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

Re: [unclassified] Re: patch: Invalid call to __patch__


From: David Bateman
Subject: Re: [unclassified] Re: patch: Invalid call to __patch__
Date: Tue, 25 Sep 2007 16:15:00 +0200
User-agent: Thunderbird 1.5.0.7 (X11/20060921)

kahacjde wrote:
> Hello David,
>
> I have just checked with an older matlab version (7.0.4) your 1st example is
> not a valid call of patch. In the 2D case patch requires 3 arguments
> (x,y,c). Optionally you can add 'PropertyName','PropertyValue pairs to
> patch. So for example:
>
> patch(rand(4,1),rand(4,1),'blue','FaceColor','red')
>
> is valid and plots a blue patch but 
>
> patch(rand(4,1),rand(4,1),'FaceColor','red')
>
> is not. Thanks for spotting and fixing the other problems.
>
> Kai 
>   
Seriously

patch(rand(4,1),rand(4,1),'blue','FaceColor','red')

is the required syntax and

patch(rand(4,1),rand(4,1),'FaceColor','red')

is not legal!!! I think this is somewhere we shouldn't follow matlab
with bug to bug compatibility. I'd suggest sticking to the patch I
suggested.

Regards
David

-- 
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



reply via email to

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