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

[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/




reply via email to

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