help-octave
[Top][All Lists]
Advanced

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

Re: Problem with fill-command and jhandles


From: Michael Goffioul
Subject: Re: Problem with fill-command and jhandles
Date: Thu, 3 Jan 2008 16:47:54 +0100

On 1/3/08, address@hidden <address@hidden> wrote:
> Hello,
>
> I have a problem with plotting a simple filled box using fill:
>
> fill([0 1 1 0 0], [0 0 1 1 0], [0.9 0.5 0.1])
>
> octave 3.0.0 (WinXP/SP2) with jhandles says:
>
> "Warning: Color data must be given per-face"
>
> with gnuplot it works. So what am I doing wrong?

You're probably doing nothing wrong, but JHandles is still in
development stage. What I can propose you are workarounds:
1) use named colors: fill(...,...,'r')
2) use something like:
patch([0 1 1 0 0], [0 0 1 1 0], 'cdata', reshape([0.9 0.5 0.1],1,1,3),
'facecolor', 'flat')

Michael.


reply via email to

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