[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #42561] gnuplot colors incorrect for 'demo tri

From: Rik
Subject: [Octave-bug-tracker] [bug #42561] gnuplot colors incorrect for 'demo trimesh'
Date: Wed, 13 Dec 2017 13:05:39 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #20, bug #42561 (project octave):

After working on bug #52624, colors for trimesh objects seem to be nearly
correct.  However, I think there may be an off-by-one error still present. 
The following code shows the issue

close all
graphics_toolkit gnuplot
demo trimesh
colormap (jet (3));
h = copyobj (gcf);
graphics_toolkit (h, "fltk");

If you take a look at the figures you can see that, occasionally, one line
segment will be a different color.  This might have to do with using fix(),
floor(), ceil(), or round() in the color computations.  And I suppose it might
also be a difference between single (OpenGL) and doubles (gnuplot).  But I'm
guessing there is something in __gnuplot_draw_axes__.m.

I've added png images of the two trimesh plots.

(file #42639, file #42640)

Additional Item Attachment:

File name: trimesh.gnuplot.png            Size:41 KB
File name: trimesh.fltk.png               Size:46 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]