|
| 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:
<http://savannah.gnu.org/bugs/?42561>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |