[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: |
Hartmut |
Subject: |
[Octave-bug-tracker] [bug #59589] default color in bar (and hist) plots is different from Matlab |
Date: |
Thu, 3 Dec 2020 16:29:25 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0 |
Follow-up Comment #6, bug #59589 (project octave):
I have new compiled a "fresh" dev Octave and tested this behavior, including
Rik's patch from comment #4. Result:
* The color produced with a simple call to bar(), not using any special
arguments, seems now to be compatible with Matlab. Perfect.
* But the color produced with hist() is still DIFFERENT from the color in
Matlab. (or with bar(...,'hist'))
clear, close all, clc
x = rand(1,20);
h = bar(x, 'hist'); % which I think is the same as: hist(x)
title('hist');
histcolor = get(h, 'FaceColor')
* result in Matlab: 'flat', and via Gimp on screenshot: [0.239, 0.149, 0.659]
(dark blue).
* result in Octave (including patch from comment #4): [0 0.447 0.7410] (light
blue).
my conclusions:
* Also for hist() the compatibility to Matlab colors is now much better than
before. They both use a blueish color.
* But hist() still produces a different (blue) color. And this seems also to
be a qualitative difference, because Octave returns 3 numbers, but Matlab just
returns the string 'flat', as property of the FaceColor.
I cannot judge if it is worth to pursue even better Matlab compatibility in
this issue. Strictly speaking this issue is NOT solved as fixed. But I
personally would already be happy with the current result.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59589>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #59589] default color in bar (and hist) plots is different from Matlab, Hartmut, 2020/12/01
- [Octave-bug-tracker] [bug #59589] default color in bar (and hist) plots is different from Matlab, Rik, 2020/12/01
- [Octave-bug-tracker] [bug #59589] default color in bar (and hist) plots is different from Matlab, Rik, 2020/12/01
- [Octave-bug-tracker] [bug #59589] default color in bar (and hist) plots is different from Matlab, Hartmut, 2020/12/02
- [Octave-bug-tracker] [bug #59589] default color in bar (and hist) plots is different from Matlab, Rik, 2020/12/02
- [Octave-bug-tracker] [bug #59589] default color in bar (and hist) plots is different from Matlab, Hartmut, 2020/12/03
- [Octave-bug-tracker] [bug #59589] default color in bar (and hist) plots is different from Matlab,
Hartmut <=
- [Octave-bug-tracker] [bug #59589] default color in bar (and hist) plots is different from Matlab, Rik, 2020/12/03
- [Octave-bug-tracker] [bug #59589] default color in bar (and hist) plots is different from Matlab, Rik, 2020/12/03
- [Octave-bug-tracker] [bug #59589] default color in bar (and hist) plots is different from Matlab, Hartmut, 2020/12/04
- [Octave-bug-tracker] [bug #59589] default color in bar (and hist) plots is different from Matlab, Rik, 2020/12/04
- [Octave-bug-tracker] [bug #59589] default color in bar (and hist) plots is different from Matlab, Rik, 2020/12/04
- [Octave-bug-tracker] [bug #59589] default color in bar (and hist) plots is different from Matlab, Philip Nienhuis, 2020/12/05