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

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

[Octave-bug-tracker] [bug #63131] print of a plot is cropped if ResizeFc


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #63131] print of a plot is cropped if ResizeFcn had been mentioned.
Date: Thu, 29 Sep 2022 10:21:31 -0400 (EDT)

Follow-up Comment #3, bug #63131 (project octave):

Also, for some convoluted reasons, printing involves resizing the figure, so
your callback is being invoked at print time and may interfere (I see that it
changes figure units and I would not be astonished that this is confusing the
print system). Could you try disabling that callback when printing? You could
for example define your own print.m which calls the builtin, e.g. :


function print (varargin)
  saved_fcn = get (gcf, "resizefcn");
  set (gcf, "resizefcn", []);
  builtin ("print", varargin{:});
  set (gcf, "resizefcn", saved_fcn);
endfunction



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63131>

_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/




reply via email to

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