bugGNU Octave - Bugs: bug #48465, Matlab 2014+ color scheme

 
 

bug #48465: Matlab 2014+ color scheme

Submitted by:  Helios De Rosario <heliosdr>
Submitted on:  Mon 11 Jul 2016 11:41:00 AM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: HeliosOpen/Closed: Closed
Release: 4.0.2Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 06 Sep 2016 10:11:26 PM UTC, comment #4:

I finally pushed a change to the default branch, opting to use the same colors as Matlab instead of the Tango colors:

http://hg.savannah.gnu.org/hgweb/octave/rev/638625a0186f

I think 1/1000 precision is enough for our purposes (1/256 is about 0.004).

Mike Miller <mtmiller>
Project Administrator
Fri 22 Jul 2016 05:27:23 PM UTC, comment #3:

Does "format long" show more digits for the new colors? If so, should we care?

And do we really need to be exactly the same here?

I'd say commit whichever you think is best. Of course, we will probably get bug reports about it being different from Matlab if we go with the Tango colors, so we might want to note that it is intentional. Similar to the default colormap thing.

If someone really wants exactly the same colors, they can set their own default in a startup file.

John W. Eaton <jwe>
Project Administrator
Mon 11 Jul 2016 06:20:53 PM UTC, comment #2:

Here's a patch that updates the default color order property to the 7 colors in the current release of Matlab.

For fun, I also include a patch that uses colors from the Tango project's color palette that are closest to the new Matlab colors in the same order.

Please test and feedback.

(file #37810, file #37811)

Mike Miller <mtmiller>
Project Administrator
Mon 11 Jul 2016 05:30:26 PM UTC, comment #1:

Good catch. I think the new color scheme should be followed. Is there any possible way that this array of 8 RGB tuples could be considered intellectual property?

Mike Miller <mtmiller>
Project Administrator
Mon 11 Jul 2016 11:41:00 AM UTC, original submission:

In 2014 Matlab changed the list of colors used by default in plots (the "ColorOrder" property of axes) from this:

to this:

Should Octave follow that new scheme in future releases, or is it is considered only an aesthetical issue, rather than a "problem" of compatibility?

Helios De Rosario <heliosdr>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #37810:  colororder.diff added by mtmiller (2KiB - text/x-diff)
file #37811:  colororder-tango.diff added by mtmiller (1KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by heliosdr (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 06 Sep 2016 10:11:26 PM UTCmtmillerStatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Mon 11 Jul 2016 06:20:53 PM UTCmtmillerAttached File-=>Added colororder.diff, #37810
      Attached File-=>Added colororder-tango.diff, #37811
      StatusNone=>Patch Submitted

    Back to the top


    Powered by Savane 3.1-cleanup1