[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40971] scatter fails in gnuplot when all poin
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #40971] scatter fails in gnuplot when all points are the same color |
Date: |
Thu, 19 Dec 2013 14:41:40 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 |
URL:
<http://savannah.gnu.org/bugs/?40971>
Summary: scatter fails in gnuplot when all points are the
same color
Project: GNU Octave
Submitted by: rik5
Submitted on: Thu 19 Dec 2013 06:41:39 AM PST
Category: Plotting with gnuplot
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: Confirmed
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.4
Operating System: Any
_______________________________________________________
Details:
Using the attached scatter_tst.m file, gnuplot fails in __gnuplot_drawnow__.
Steps to reproduce:
graphics_toolkit gnuplot
scatter_tst (0)
error: vertical dimensions mismatch (101x3 vs 1x1)
error: called from:
error:
/home/rik/wip/Projects_Mine/octave-dev/scripts/plot/util/private/__go_draw_axes__.m
at line 1062, column 32
error:
/home/rik/wip/Projects_Mine/octave-dev/scripts/plot/util/private/__go_draw_figure__.m
at line 172, column 17
error:
/home/rik/wip/Projects_Mine/octave-dev/scripts/plot/util/__gnuplot_drawnow__.m
at line 86, column 5
The scatter_tst.m file is attached and shown below.
function scatter_tst (tiny = 0)
clf;
n=101;
x = rand (n,1);
y = rand (n,1);
z = rand (n,1);
s = 20*rand(n,1);
c = abs (0.5 * (ones (n,3) - tiny*rand (n,3)));
scatter (x, y, s, c, "s");
endfunction
Note that this only fails when n > 100 and __scatter__ is trying to compact
the number of colors it uses when it calls patch(). Also, it only happens
when there is a single unique color. If the variable tiny is changed, say to
0.1, then the code also works. Finally, this really is only gnuplot. OpenGL
plotting using FLTK works just fine. Given that this is the default going
forward this bug may be less critical.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 19 Dec 2013 06:41:39 AM PST Name: scatter_tst.m Size: 213B By:
rik5
<http://savannah.gnu.org/bugs/download.php?file_id=30045>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40971>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #40971] scatter fails in gnuplot when all points are the same color,
Rik <=