[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54545] Images plotted with imshow are too bri
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #54545] Images plotted with imshow are too bright with Gnuplot 5.0 and earlier |
Date: |
Thu, 20 Sep 2018 13:02:27 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 |
Update of bug #54545 (project octave):
Priority: 5 - Normal => 3 - Low
Status: None => Confirmed
Release: 4.2.2 => dev
_______________________________________________________
Follow-up Comment #1:
Confirmed with Octave 4.4 and the development version, using gnuplot 4.6.
Also confirmed that https://hg.savannah.gnu.org/hgweb/octave/rev/d8626fd6bb36
is responsible for this regression with older gnuplot, and that restoring the
line
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m
+++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m
@@ -2847,6 +2847,8 @@ function cdata = mapcdata (cdata, mode,
else
cdata(:) = fix (255 / 2);
endif
+ ## Scale using inverse of gnuplot's cbrange mapping
+ cdata = 1 + cdata * (cmap_sz-1)/255;
else
if (strcmp (mode, "scaled"))
clim = double (clim);
restores the previous behavior, obviously while breaking gnuplot 5.2 and
newer.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54545>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #54545] Images plotted with imshow are too bright with Gnuplot 5.0 and earlier,
Mike Miller <=