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

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

[Octave-bug-tracker] [bug #36690] Hold function alters eps background


From: Rik
Subject: [Octave-bug-tracker] [bug #36690] Hold function alters eps background
Date: Thu, 21 Jun 2012 17:39:56 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0

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

The whole application of default properties to graphics objects is somewhat
screwed up.  Long term, I think it will have to be re-coded.  In the short
term, I think your patch is probably okay.  In C++, objects like axes can be
instantiated with default properties.  The default properties for axes are in
graphics-props.cc where the default is white ([1 1 1]).  Why we have a
separate routine, __go_axes_init__, which is only called from newplot.m I
don't know.  

The worst part is the defaults don't seem to agree.  There is the obvious
mismatch for 'color', but if you look at axes::properties::factory_defaults
(void) in graphics-props.cc it has defaults for things which are not
initialized by __go_axes_init__ such as 'xminortick'.  Maybe this is correct,
I don't know.

But your patch is probably safe for this particular issue.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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