(
Jump to the original submission)
Mon 03 Dec 2012 06:54:34 PM UTC, 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
|
Mon 03 Dec 2012 06:32:53 PM UTC, comment #7:
Yes, I know it is weird, but I think we should keep compatibility and close the bug report.
|
Mon 03 Dec 2012 04:35:56 PM UTC, 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.
|
Fri 30 Nov 2012 04:53:08 PM UTC, 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.
|
Fri 30 Nov 2012 04:27:32 AM UTC, 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.
|
Fri 30 Nov 2012 04:23:16 AM UTC, 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:
|
Tue 13 Nov 2012 12:04:08 AM UTC, 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?
|
Mon 12 Nov 2012 09:41:21 PM UTC, 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.
|
Mon 12 Nov 2012 05:19:00 AM UTC, 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.
|
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach File(s):
Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Follow 3 latest changes.