scatter - markersize

David Bateman David.Bateman at motorola.com
Wed Mar 19 11:39:24 CDT 2008


Christoph Keller wrote:
>> Therefore if you pass a value for s as a vector, it is passed to patch
>> as a vector.. The code
>>
>> n = 100; x = randn(n,1); y = randn(n,1); c = sqrt(x.^2 + y.^2);
>> scatter(x, y, 1:100, c)
>>
>> works fine for me under Octave 3.0.0 and gnuplot 4.2.3 that I'm using..
>> However, it appears to be broken under 3.1.x
>
> I agree that the vector is passed to patch(), but this very patch
> returns with the error:
>
> <quote>
> error: [java] org.octave.graphics.PropertyException: invalid property
> value - [
> (1 by 100) array of double ]
> error: evaluating for command near line 32, column 11
> error: evaluating if command near line 31, column 9
> error: evaluating for command near line 29, column 7
> error: evaluating if command near line 24, column 5
> </quote>
>
> Is this a Windows issue?
> Christoph Keller
> (octave 3.0.0, Windows XP)
Try using the gnuplot backend, it works fine for this case.. JHandles
which you are using correctly enforces that the patch objects must have
a scalar markersize, but there is no scattergroup implemented in
JHandles.. I suspect this will be fixed sometime during the development
of Octave 3.1.x

Regards
David


-- 
David Bateman                                David.Bateman at motorola.com
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



More information about the Bug-octave mailing list