changeset 30361:157180e55070 stable

doc: Clarify possible values of input "h" for "saveas" (bug #61557). * scripts/plot/saveas.m: Clarify possible values of first input argument "h". Fix typos.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 25 Nov 2021 15:03:10 +0100
parents 7f246cfeceda
children 512f3d68bb49
files scripts/plot/util/saveas.m
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/saveas.m	Wed Nov 24 22:07:19 2021 -0800
+++ b/scripts/plot/util/saveas.m	Thu Nov 25 15:03:10 2021 +0100
@@ -26,9 +26,13 @@
 ## -*- texinfo -*-
 ## @deftypefn  {} {} saveas (@var{h}, @var{filename})
 ## @deftypefnx {} {} saveas (@var{h}, @var{filename}, @var{fmt})
-## Save graphic object @var{h} to the file @var{filename} in graphic format
+## Save graphics object @var{h} to the file @var{filename} in graphics format
 ## @var{fmt}.
 ##
+## If @var{h} is the handle to a figure object, that figure object is saved.
+## If @var{h} is the handle to a different graphics object, the figure
+## containing that graphics object is saved.
+##
 ## All device formats accepted by @code{print} may be used.  Common formats
 ## are:
 ##