octave-maintainers
[Top][All Lists]
Advanced

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

Re: 'paperpositionmode' change to rid gnuplot_set_term: size is zero


From: Ben Abbott
Subject: Re: 'paperpositionmode' change to rid gnuplot_set_term: size is zero
Date: Sat, 03 Jan 2009 16:38:20 -0500


On Jan 3, 2009, at 4:24 PM, David Bateman wrote:

Ben Abbott wrote:

On Jan 3, 2009, at 2:45 PM, Michael Goffioul wrote:

On Sat, Jan 3, 2009 at 1:06 PM, Ben Abbott <address@hidden> wrote:
set (0, "defaultaxesxtick", [0:0.2:1])
set (0, "defaultaxesytick", [0:0.2:1])
set (0, "defaultaxesztick", [0:0.2:1])
set (0, "defaultaxesxtickmode", "auto")
set (0, "defaultaxesytickmode", "auto")
set (0, "defaultaxesztickmode", "auto")

I was under the impression "auto" is needed since setting the tick's changed the mode to "manaul". Checking now ...

octave:1> figure
octave:2> axes
octave:3> get(gca,'xtickmode')
ans = manual

So it does appear that x/y/ztick each have a callback associated with them and that is it doing its job even in a context where it should not (at least I don't think setting the default should trigger a callback in this instance) ... hmmm, It appears that a method is needed to toggle callbacks on and off.
You can either make the callback more intelligent to recognize when it shouldn't do anything or remove it with the dellistener function. I'm not sure I understand what your issue is however.

D.

In a nutshell ... I'd like to be able to set the default values for properties representing vectors. For example, figure.paperposition where we'd like the default to be [0.25, 2.5, 8, 6]. I don't see how this can be done. In graphics.h.in I can set each element to the same value (all zeros for example), but I don't see how to set the default to a vector with differing values.

Then there is the problem that the defaults are set after the callbacks are in place, which changes some of the defaults. As you point out this can be easily fixed, but I'd think it more proper to set the defaults prior to setting up the callbacks.

I'd happy to work on this, but lack the c++ competence to see how. Perhaps my ignorance is blinding me to the obvious solution. Is there already a method to set the default for a vector of differing values?

Ben




reply via email to

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