octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #37715] colormap opens image if there's none


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #37715] colormap opens image if there's none
Date: Fri, 30 Nov 2012 04:27:32 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.11) Gecko/20100101 Firefox/10.0.11 Iceweasel/10.0.11

Follow-up Comment #4, bug #37715 (project octave):

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.


if (! isempty (get (0, "CurrentFigure")))
  cmap = colormap ();
else
  ## how do we get default colormap?
endif


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37715>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]