bugGNU Octave - Bugs: bug #40971, scatter fails in gnuplot when all...

 
 

bug #40971: scatter fails in gnuplot when all points are the same color

Submitter:  Rik <rik5>
Submitted:  Thu 19 Dec 2013 02:41:39 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.6.4 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 17 Nov 2015 11:46:35 PM UTC, comment #2: 

Marked as fixed.  Closing report.

Rik <rik5>
Group administrator
Tue 17 Nov 2015 09:54:34 PM UTC, comment #1: 

scatter_tst (0)
works fine for me on Octave 4.0.

I have checked on Windows (both 4.0 and the dev branch) and
on Ubuntu (dev branch).

This report can be closed.

Avinoam Kalma <avinoam>
Group Member
Thu 19 Dec 2013 02:41:39 PM UTC, original submission:  

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.

Rik <rik5>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #30045:  scatter_tst.m added by rik5 (213B - d2l/unknowntype)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by avinoam (Posted a comment)
  • -email is unavailable- added by rik5 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-17 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2013-12-19 rik5 Attached File- Added scatter_tst.m, #30045

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code