[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42311] colorbar incorrect after setting log s
From: |
ederag |
Subject: |
[Octave-bug-tracker] [bug #42311] colorbar incorrect after setting log scale |
Date: |
Fri, 18 May 2018 19:16:52 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #7, bug #42311 (project octave):
This is a regression in octave-4.4.0.
At least with octave-4.2.1 it was possible to
create a fake axis to attach a standalone colormap
with log scale ticks:
graphics_toolkit("gnuplot")
figure
x = -3:3;
y = x.';
S = exp(-(x.^2 + y.^2));
pcolor(x, y, log10(S))
log_clims = get(gca, "clim");
ax_cb = axes;
set(ax_cb, "visible", "off")
caxis(ax_cb, 10.^(log_clims))
cb = colorbar(ax_cb)
set(cb, "yscale", "log")
set(cb, "yminortick", "on")
But the correct fix is probably to implement the "ColorScale" property:
https://fr.mathworks.com/help/matlab/ref/matlab.graphics.axis.axes-properties.html#budumk7-ColorScale
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42311>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #42311] colorbar incorrect after setting log scale,
ederag <=