[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 18:52:54 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

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

We'll have to see how Matlab behaves, but Octave is calculating the index as

clim = caxis ();
num_colors = rows (colormap);
idx = @(x) fix (num_colors * (x - clim(1)) / (clim(2) - clim(1)))

The idx is a zero-based ranged so the idx is [0, num_colors-1].


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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