Problem with fill-command and jhandles
Michael Goffioul
michael.goffioul at gmail.com
Thu Jan 3 09:47:54 CST 2008
On 1/3/08, mytrashaccount at gmx.net <mytrashaccount at gmx.net> 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.
More information about the Help-octave
mailing list