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

 
 

bug #49780: Error plotting surface with color matrix.

Submitted by:  None
Submitted on:  Tue 06 Dec 2016 07:58:58 PM UTC  
 
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: JohnOriginator Email: -unavailable-
Open/Closed: OpenRelease: 4.2.0
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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:

And the error is:

Rik <rik5>
Project 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 File(s):
   
   
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
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by rik5
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 06 Dec 2016 09:18:26 PM UTCrik5StatusNone=>Confirmed
      Release4.0.0=>4.2.0
      Carbon-Copy-=>Added sebald
    Tue 06 Dec 2016 07:58:58 PM UTCNoneAttached File-=>Added hey.png, #39165

    Back to the top


    Powered by Savane 3.1-cleanup1