[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fast scatter plots - advice sought
From: |
John W. Eaton |
Subject: |
Re: fast scatter plots - advice sought |
Date: |
Mon, 11 Jan 2010 13:35:03 -0500 |
On 11-Jan-2010, Robert T. Short wrote:
| The way things are done now, scatter is useless for more than a very
| small number of points and I think MATLAB compatibility should be
| dropped if uselessness is the result of compatibility. However, it
| sounds like we are NOT currently compatible with MATLAB and becoming
| compatible might fix the problem.
I think all that needs to be done at this point to make it compatible
and faster is to change the breakpoint to 100 and use patch instead of
line objects.
Also, I'm seeing the following now:
lt-octave:3> n = 2000; x = randn (n, 1); y = randn (n, 1); scatter (x, y,
hypot (x, y), [])
error: unique_idx: subscript indices must be either positive integers or
logicals.
error: called from:
error: /home/jwe/src/octave/scripts/plot/private/__scatter__.m at line 224,
column 7
error: /home/jwe/src/octave/scripts/plot/private/__scatter__.m at line 247,
column 12
error: /home/jwe/src/octave/scripts/plot/private/__scatter__.m at line 162,
column 9
error: /home/jwe/src/octave/scripts/plot/scatter.m at line 70, column 7
The problem seems to be the following code in the unique_idx function:
[xx, idx] = sort (x);
n = length (x);
jdx = find (xx(1:n-1,:) != xx(2:n,:));
jdx(n) = n;
y = xx(jdx);
If the length of jdx as returned by find is less than n, then setting
jdx(n) = n will fill with zeros and the following index expression
fails with the above error. I'm not sure of the intent here, so I'm
not sure of the appropriate fix.
jwe
- fast scatter plots - advice sought, Jaroslav Hajek, 2010/01/10
- Re: fast scatter plots - advice sought, Shai Ayal, 2010/01/10
- Re: fast scatter plots - advice sought, David Bateman, 2010/01/11
- Re: fast scatter plots - advice sought, Jaroslav Hajek, 2010/01/11
- Re: fast scatter plots - advice sought, Michael Goffioul, 2010/01/11
- Re: fast scatter plots - advice sought, Kai Habel, 2010/01/11
- Re: fast scatter plots - advice sought, Robert T. Short, 2010/01/11
- Re: fast scatter plots - advice sought,
John W. Eaton <=
- Re: fast scatter plots - advice sought, Jaroslav Hajek, 2010/01/11
- Re: fast scatter plots - advice sought, John W. Eaton, 2010/01/11
- Re: fast scatter plots - advice sought, David Bateman, 2010/01/11
- Re: fast scatter plots - advice sought, David Bateman, 2010/01/11
- Re: fast scatter plots - advice sought, Michael D Godfrey, 2010/01/11
- Re: fast scatter plots - advice sought, John W. Eaton, 2010/01/11
- Re: fast scatter plots - advice sought, David Bateman, 2010/01/11
- Re: fast scatter plots - advice sought, Michael D Godfrey, 2010/01/11
- Re: fast scatter plots - advice sought, Jaroslav Hajek, 2010/01/11
- Re: fast scatter plots - advice sought, David Bateman, 2010/01/11