[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49780] Error plotting surface with color matr
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #49780] Error plotting surface with color matrix. |
Date: |
Tue, 6 Dec 2016 19:58:59 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 |
URL:
<http://savannah.gnu.org/bugs/?49780>
Summary: Error plotting surface with color matrix.
Project: GNU Octave
Submitted by: None
Submitted on: Tue 06 Dec 2016 07:58:58 PM UTC
Category: Plotting with gnuplot
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: John
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.0
Operating System: GNU/Linux
_______________________________________________________
Details:
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.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 06 Dec 2016 07:58:58 PM UTC Name: hey.png Size: 263kB By: None
<http://savannah.gnu.org/bugs/download.php?file_id=39165>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49780>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49780] Error plotting surface with color matrix.,
anonymous <=