bugGNU Octave - Bugs: bug #51825, imshow.m: colormap is changed at...

 
 

bug #51825: imshow.m: colormap is changed at axes level, not at figure level

Submitter:  Pantxo Diribarne <pantxo>
Submitted:  Wed 23 Aug 2017 01:02:28 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 23 Aug 2017 02:26:18 PM UTC, comment #2: 

Ok, I just saw this comment in the imshow doc "Note:   Starting in R2016b, imshow changes the colormap for the axes that contains the image instead of the figure.". So Octave is compatible with recent versions of ML.

I pushed the fix for demos (http://hg.savannah.gnu.org/hgweb/octave/rev/b208e1a7dd02). Closing report.

Pantxo Diribarne <pantxo>
Group Member
Wed 23 Aug 2017 01:58:37 PM UTC, comment #1: 

In ML2016a imshow changes the colormap at figure level, not at axes level like Octave now does (changed the title accordingly):


subplot (2,1,1)
imshow (rand(100,100))
%% The image is displayed with a gray colormap
subplot (2,1,2)
imshow (rand(100,100)*64, jet (64))
%% Both images are now displayed with a jet colormap


In fact I prefer Octave's behavior, adding an image in an axes should not change the display of images in other axes. I'd be in favor of keeping this incompatibility, marking this bug as "Won't fix" and just fixing the demo (see attached patch).

(file #41620)

Pantxo Diribarne <pantxo>
Group Member
Wed 23 Aug 2017 01:02:28 PM UTC, original submission:  

See "demo imshow 6". This is a regression that is probably related to this cset:

http://hg.savannah.gnu.org/hgweb/octave/rev/7c278572db66

Pantxo Diribarne <pantxo>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #41620:  imshow.patch added by pantxo (829B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-08-23 pantxo StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2017-08-23 pantxo Attached File- Added imshow.patch, #41620
        StatusNone Patch Submitted
        SummaryColormap does not update images color imshow.m: colormap is changed at axes level, not at figure level

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code