Color of scatter?
David Bateman
dbateman at dbateman.org
Fri Apr 3 15:27:28 CDT 2009
Rob Mahurin wrote:
> On Mar 31, 2009, at 11:35 AM, David Doria wrote:
>
>> I would expect this to produce a red marker at (1,1). It is, however,
>> green. Am I mis-interpreting the syntax? The red marker is what I
>> see in
>> matlab.
>>
>> scatter(1,1,[],[1 0 0])
>>
>
>
> I see a red marker with octave 3.0.3, but a green marker in a recent
> development version. I don't know enough to track down the bug, though.
>
> Cheers,
> Rob
>
>
Does the attached changeset fix the issue? The problem as I see it was
that the creation of a matlab compatible scatter group required that
each point in the scatter plot was a separate patch. The indexing into
the cdata values was incorrect for a fixed color as a three element
vector like you gave.
D.
--
David Bateman dbateman at dbateman.org
35 rue Gambetta +33 1 46 04 02 18 (Home)
92100 Boulogne-Billancourt FRANCE +33 6 72 01 06 33 (Mob)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.scatter
Url: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20090403/ca9cb7fb/attachment.ksh
More information about the Help-octave
mailing list