bugGNU Octave - Bugs: bug #49780, Error plotting surface with color...

 
 

bug #49780: Error plotting surface with color matrix.

Submitter:  None
Submitted:  Tue 06 Dec 2016 07:58:58 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  John Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 4.2.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 13 Dec 2017 04:50:29 PM UTC, comment #2: 

I verified again that this bug is still present on the stable (4.2.2) and development branches.

Rik <rik5>
Group administrator
Tue 06 Dec 2016 09:18:26 PM UTC, comment #1: 

4.0.0 is deprecated and no longer supported.  However, the problem still exists on the stable branch with 4.2.0.

Code to reproduce:


close all;
graphics_toolkit gnuplot
[x,y,z] = sombrero (10);
c = rand (10, 10, 3);
surf (x,y,z,c)


And the error is:


error: __gnuplot_draw_axes__: invalid grid data
error: called from
    __gnuplot_draw_axes__ at line 1184 column 11
    __gnuplot_draw_figure__ at line 172 column 17
    __gnuplot_drawnow__ at line 86 column 5



Rik <rik5>
Group administrator
Tue 06 Dec 2016 07:58:58 PM UTC, original submission:  

Hello!

I have found that using surf(X,Y,Z,C), with C being a color matrix does not work when using gnuplot. The code used goes as follow:


close all; graphics_toolkit fltk

[X Y] = meshgrid(linspace(-2, 2, 100));
Z = X + i*Y;
Fz = 1./(exp(1./Z)-exp(1));

surf(X, Y, abs(Fz), cmplx_colormat(Fz))
shading interp


-The error it gives is:
error: _go_draw_axes_: invalid grid data
error: called from
    _go_draw_axes_ at line 1172 column 13
    _go_draw_figure_ at line 172 column 17
    _gnuplot_drawnow_ at line 86 column 5


Using fltk or qt it works correctly. Removing the fourth argument of surf() also works. The color matrix consist in a NxMx3 array containing the RGB values of every point of the MxN mesh (Fz and Z). I attach an image of the (correct) result using qt.


Tested on Ubuntu 16.04 (64 bits), with package octave-4.0.0-3ubuntu9.1.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #39165:  hey.png added by None (263KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-12-06 rik5 StatusNone Confirmed
        Release4.0.0 4.2.0
        Carbon-Copy- Added sebald
    2016-12-06 None Attached File- Added hey.png, #39165

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code