2
votes

When i have plotted a graph in octave, i usually want to play around with it for some time in order to make it look shiny and all...

But what really bugs me is that for some properties one sees when get(get(gca, 'children')) there are several fixed possible values, but they are not documented anywhere.

Now in MATLAB, I guess, just typing set(handle, 'property') without providing a value should evoke an error message followed by a set of all possible values. But unfortunately in octave, error messages usually are a little bit less helpful. So I searched the WHOLE web! I guess. Does anyone have an idea on how to display those possible feats I'm currently missing out on because I simply don't know 'em?

1
I'm not sure what you are asking, do you mean you want a list of axes properties? In that case see this section of the manual. - Thor
possible duplicate of Get a list of read only property names for a plot. Using the solution to this answer, you should be able to obtain the list of names of the settable and non-settable properties of an object. - Eitan T
@Thor: The link tells me, that for example the property "zdir" has the options 'Either "forward" or "reverse".' But there are a lot of properties on the page, that are not commented, like "alimmode", which in my plot is set to "auto". I found that out, typing get(gca, 'alimmode'); But what (except for the obvious "manual" in this case) other values can i set for "alimmode"? @ Eitan: I already know the get/set-commands. Should i reformulate the question? - ps_st
@Eitan: The problem is that, contrary to matlab, octave returns an error, when 'set' is called with a handler (and a property) but without an argument. "error: line::defaults: not implemented" - ps_st
@ps_st: it seems the documentation is lacking, you can get some sense of it by looking at the source, alimmode alternatives are defined around line 3759. - Thor

1 Answers

1
votes

In Octave you can get all possible property names using this command get (0, "factory") which returns factory values stored in the root figure object, see here for details. For example, you can take factoryaxesxgrid andfactoryaxesygrid properties and then use names defaultaxesxgrid and defaultaxesygrid correspondingly (replacing "factory" with "default") and run commands set(0, 'defaultaxesxgrid', on); and set(0, 'defaultaxesygrid', on); to make major grid appear by default.