bugGNU Octave - Bugs: bug #51082, Colormap should be tied to figure...

 
 

bug #51082: Colormap should be tied to figure instead of axis

Submitted by:  jsh <jsh>
Submitted on:  Sun 21 May 2017 12:01:34 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: DuplicateAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.2.1Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 22 May 2017 12:52:15 AM UTC, comment #1:

This is complicated as Matlab has been changing the interface around colormap. It used to be that colormap was only a property of figure objects. However, in recent versions Matlab has extended colormaps to apply to axes objects as well. See http://www.mathworks.com/help/matlab/ref/colormap.html.

Octave currently only implements colormap objects for figure objects. There is a bug report to extend it to axes objects. See bug #48667.

The reason why the code below works in Octave is that Octave searches for the parent figure object of any axes and places the colormap data on the figure.

Thus, for Octave this will return the 'cool' colormap. But for Matlab, the 'cool' colormap will have been placed in the axes colormap property. While the figure colormap property will still retain the default map.

Rik <rik5>
Project Administrator
Sun 21 May 2017 12:01:34 PM UTC, original submission:

Octave seems to implement colormap() on the axis object while Matlab it is tied to the figure. For example this works in Matlab

while the following works in Octave, but returns the default colormap in later Matlab versions

jsh <jsh>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by jsh (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 22 May 2017 12:53:04 AM UTCrik5Open/ClosedOpen=>Closed
    Mon 22 May 2017 12:52:48 AM UTCrik5Dependencies-=>Depends on bugs #48667
    Mon 22 May 2017 12:52:15 AM UTCrik5StatusNone=>Duplicate

    Back to the top


    Powered by Savane 3.1-cleanup1