bugGNU Octave - Bugs: bug #54757, Applying colormap to axes does not...

 
 

bug #54757: Applying colormap to axes does not update the legend

Submitted by:  None
Submitted on:  Sun 30 Sep 2018 09:47:53 AM UTC  
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Assigned to:  None
Originator Name:  Philip Yip Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  4.4.1
Operating System:  Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 30 Sep 2018 09:47:53 AM UTC, original submission:

In the following code the legend of the figure is not updated to include the new colormap (in MATLAB it is):

% orange shades
orange=[237/255,112/255,20/255];
tangerine=[249/255,130/255,40/255];
merigold=[253/255,174/255,29/255];
cider=[181/255,103/255,39/255];
data=ones(4,1);
figure
pie(data);
colormap(gca,[orange;tangerine;merigold;cider]);
labels={'orange';'tangerine';'merigold';'cider'};
legend(labels,'Location','eastoutside');
title('orange shade wheel');

If the line:
colormap(gca,[orange;tangerine;merigold;cider]);
Is modified to:
colormap([orange;tangerine;merigold;cider]);
Then the colormap will be updated to update the legend.
However if subplots are used, it applies the last specified colormap to every subplot in the plot.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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

Only project members can vote.

 

 

 

No changes have been made to this item

Back to the top


Powered by Savane 3.3