octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #59589] default color in bar (and hist) plots


From: Rik
Subject: [Octave-bug-tracker] [bug #59589] default color in bar (and hist) plots is different from Matlab
Date: Thu, 3 Dec 2020 18:52:53 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36

Follow-up Comment #7, bug #59589 (project octave):

Okay, thanks for testing with Matlab.  What Matlab is doing is a combination
of what we had before and what we have now.  For an ordinary bar chart the
colors come from the "ColorOrder" property.  For a histogram, the colors come
from the "Colormap" property of the axes or figure.  On Matlab, try the hist
plot and then try


colormap ('autumn')


This should turn the histogram bright red.

I can implement this for compatibility, but you probably won't like the colors
chosen.  The first color is always the first color in the colormap which for
Octave's default colormap of "viridis" is a dark purple.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59589>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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