bugGNU Octave - Bugs: bug #37715, colormap opens image if there's...


bug #37715: colormap opens image if there's none

Submitted by:  Carnë Draug <carandraug>
Submitted on:  Mon Nov 12 05:19:00 2012  
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: Wont FixAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


(Jump to the original submission Jump to the original submission)

Mon Dec 3 18:54:34 2012, comment #8:

Yes, when I asked first I did not knew the matlab behaviour. I can imagine users running only colormap and then expecting other commands that require an open figure to work.

And I can close bugs now too :D

Carnë Draug <carandraug>
Project Member
Mon Dec 3 18:32:53 2012, comment #7:

Yes, I know it is weird, but I think we should keep compatibility and close the bug report.

John W. Eaton <jwe>
Project Administrator
Mon Dec 3 16:35:56 2012, comment #6:

According to folks on ##matlab, colormap does open a figure when called with no arguments. Should we just acknowledge that Matlab is weird and close this bug? Otherwise we will break compatibility.

Rik <rik5>
Project Administrator
Fri Nov 30 16:53:08 2012, comment #5:

> I do not know why the code and everything after it doesn't show up...

Your closing tag was -verbatim instead of -verbatim-. Savannah is not very forgiving of errors with its markup.

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
Fri Nov 30 04:27:32 2012, comment #4:

I do not know why the code and everything after it doesn't show up...

I can workaround this by checking if there's a figure open but in case there is not, I need a way to get the default colormap. Should I hardcode "jet (64)"? Doesn't sound good idea.

Carnë Draug <carandraug>
Project Member
Fri Nov 30 04:23:16 2012, comment #3:

hmm... is there a way to get the default colormap then? I can workarond with the following but need a way to get the default:

Carnë Draug <carandraug>
Project Member
Tue Nov 13 00:04:08 2012, comment #2:

Does matlab opens one even when there's 1 output argument? Because it would appear to me like a bug on their side. And even if it's by design, what purpose can an empty figure have to cause someone to co,plain?

Could the figure be created and kept invisible. I don't know much about figure properties but seems that there is a way to make it invisble. Is there a way to do this so that the figure does exist but no window porps up? And is this visibility automatically switched on once someone tries to draw something or would it cause any problem?

Carnë Draug <carandraug>
Project Member
Mon Nov 12 21:41:21 2012, comment #1:

Matlab appears to behave the same way, so if we change it, then I expect that we would get bug reports saying that we are incompatible with Matlab.

John W. Eaton <jwe>
Project Administrator
Mon Nov 12 05:19:00 2012, original submission:

When colormap() is called without any argument, should return the current colormap.

However, if there's no figure open, it will create one to return its colormap since it does it with gcf() on line 95

Is there a way to avoid this? It's a bit annoying also since other functions such as ind2gray and ind2rgb use it as default which causes a figure window to open none is expected.

Carnë Draug <carandraug>
Project Member


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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by jordigh (Updated the item)
  • -unavailable- added by carandraug (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 Dec 3 18:54:34 2012carandraugStatusConfirmed=>Wont Fix
    Mon Nov 12 20:58:38 2012jordighStatusNone=>Confirmed

    Back to the top

    Powered by Savane 3.1-cleanup1