[Top][All Lists]

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

[Octave-bug-tracker] [bug #49400] plot() ignores "defaultaxesbox" proper

From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #49400] plot() ignores "defaultaxesbox" property
Date: Fri, 21 Oct 2016 14:34:14 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

Follow-up Comment #2, bug #49400 (project octave):

@Martin: don't reply from your mail client or your answers are not visible in
the bug tracker. Pasting here your answer.

Martin wrote:
Thanks for the explanation. The MATLAB behaviour seems strange to me,
but I see that doing the same in Octave is the right choice from a
compatibility point of view.

However, plot() ignoring a default box "off" is quite surprising for the
user. The way I discovered it was that



hold on
hold off

produced different results.
Would you mind adding a note to the help of plot() that tells the user
about this feature? Some users will not even be aware of the "box"
property, so mentioning it enables those users to get consistent plot

I'd say that this is expected (but would probably be worth a test in ML): when
using "hold on" prior to plot, you create a default axes (as none was
existing) and retain it for further plots (its "nextplot" property is set to

As for documenting that high level plotting functions sometimes (often)
override defaults (for the main object and for its parent axes), what would
you propose since not only "plot" but many other function do that?


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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