[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63923] hold command to print current status l
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #63923] hold command to print current status like in Matlab |
Date: |
Tue, 14 Mar 2023 05:07:37 -0400 (EDT) |
Follow-up Comment #3, bug #63923 (project octave):
[(Erreur - Introuvable)]
Since `hold` acts on a specified axes or the current one, I'd remove the
mention of the figure and do something like
diff --git a/scripts/plot/util/hold.m b/scripts/plot/util/hold.m
--- a/scripts/plot/util/hold.m
+++ b/scripts/plot/util/hold.m
@@ -74,6 +74,11 @@ function hold (varargin)
hold_all = false;
if (nargs == 0)
+ state = ifelse (ishold (hax), "off", "on");
+ str = ifelse (hax == gca (), "current", "specified");
+ printf ("hold is now %s for %s axes\n", state, str);
elseif (nargs == 1)
state = tolower (varargin{1});
switch (state)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63923>
_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #63923] hold command to print current status like in Matlab, Tan Siret AKINCI, 2023/03/13
- Message not available
- [Octave-bug-tracker] [bug #63923] hold command to print current status like in Matlab, John W. Eaton, 2023/03/13
- [Octave-bug-tracker] [bug #63923] hold command to print current status like in Matlab, Nicholas Jankowski, 2023/03/13
- [Octave-bug-tracker] [bug #63923] hold command to print current status like in Matlab,
Pantxo Diribarne <=
- [Octave-bug-tracker] [bug #63923] hold command to print current status like in Matlab, John W. Eaton, 2023/03/15
- [Octave-bug-tracker] [bug #63923] hold command to print current status like in Matlab, John W. Eaton, 2023/03/15
- [Octave-bug-tracker] [bug #63923] hold command to print current status like in Matlab, Philip Nienhuis, 2023/03/15
- [Octave-bug-tracker] [bug #63923] hold command to print current status like in Matlab, John W. Eaton, 2023/03/16
- [Octave-bug-tracker] [bug #63923] hold command to print current status like in Matlab, Nicholas Jankowski, 2023/03/16
- [Octave-bug-tracker] [bug #63923] hold command to print current status like in Matlab, John W. Eaton, 2023/03/16
- [Octave-bug-tracker] [bug #63923] hold command to print current status like in Matlab, Rik, 2023/03/19
- [Octave-bug-tracker] [bug #63923] hold command to print current status like in Matlab, John W. Eaton, 2023/03/20