[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: patch: Invalid call to __patch__
From: |
kahacjde |
Subject: |
Re: patch: Invalid call to __patch__ |
Date: |
Mon, 24 Sep 2007 03:47:14 -0700 (PDT) |
Matthias Brennwald wrote:
> Dear all
>
> I just built and installed Octave 2.9.14 on my Ubuntu box and tried the
> patch function that comes with it. However, this did not work (see
> below). What am I doing wrong?
>
> Matthias
>
>
> --------------------
> octave:6> version
> ans = 2.9.14
> octave:7> patch(rand(1,4),rand(1,4),"r")
>
> Invalid call to __patch__. Correct usage is:
>
>
The __patch__.m doesn't yet support colors passed as strings like that.
Try instead
patch(rand(1,4),rand(1,4),[1,0,0])
and it will work.. The patch attached will add the missing support..
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)
I am not in front of my PC, so I cannot check this now. But AFAIK the
assignment of string values to a color-property (like here) should work
again. Therefore, the color_values class should be used to convert a string
to a rgb value.
if (isstr (color_var))
## Have color string.
set (h, "FaceColor", color_var);
I will look at this later today.
Kai
--
View this message in context:
http://www.nabble.com/patch%3A-Invalid-call-to-__patch__-tf4508065.html#a12857590
Sent from the Octave - General mailing list archive at Nabble.com.
- patch: Invalid call to __patch__, Matthias Brennwald, 2007/09/24
- patch: Invalid call to __patch__, Matthias Brennwald, 2007/09/24
- Re: patch: Invalid call to __patch__, David Bateman, 2007/09/24
- Re: patch: Invalid call to __patch__,
kahacjde <=
- Re: [unclassified] Re: patch: Invalid call to __patch__, Kai Habel, 2007/09/24
- Re: [unclassified] Re: patch: Invalid call to __patch__, David Bateman, 2007/09/24
- Re: [unclassified] Re: patch: Invalid call to __patch__, kahacjde, 2007/09/25
- Re: [unclassified] Re: patch: Invalid call to __patch__, David Bateman, 2007/09/25
- Re: [unclassified] Re: patch: Invalid call to __patch__, David Bateman, 2007/09/25
- Re: [unclassified] Re: patch: Invalid call to __patch__, Kai Habel, 2007/09/25
patch: Invalid call to __patch__, Matthias Brennwald, 2007/09/24