[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45028] Use "visible", "off" for printing
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #45028] Use "visible", "off" for printing |
Date: |
Tue, 05 May 2015 17:25:31 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.2.0 |
Follow-up Comment #1, bug #45028 (project octave):
Perhaps we can use something like this
hnew = -1;
unwind_protect
tmp_fig = copyobj (fig);
set (tmp_fig, 'visible', 'off');
print (tmp_fig, ...);
unwind_protect_cleanup
if (tmp_fig > 0)
close (tmp_fig)
endif
end_unwind_protect
Then the original figure would not flicker or be removed.
Unfortunately, as things currently work this briefly displays the copy of the
figure on the screen. But we might be able to fix that by modifying the
copyobj function to accept a list of properties to apply after making the
copy. Then it would be
tmp_fig = copyobj (fig, 'visible', 'off');
to create an invisible copy of an existing figure FIG.
Using unwind_protect should properly manage the object so it is deleted no
matter how control leaves the print function.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45028>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #45028] Use "visible", "off" for printing, Michael Godfrey, 2015/05/05
- [Octave-bug-tracker] [bug #45028] Use "visible", "off" for printing,
John W. Eaton <=
- [Octave-bug-tracker] [bug #45028] Use "visible", "off" for printing, John W. Eaton, 2015/05/05
- [Octave-bug-tracker] [bug #45028] Use "visible", "off" for printing, Michael Godfrey, 2015/05/05
- [Octave-bug-tracker] [bug #45028] Use "visible", "off" for printing, Michael Godfrey, 2015/05/05
- [Octave-bug-tracker] [bug #45028] Use "visible", "off" for printing, Michael Godfrey, 2015/05/05
- [Octave-bug-tracker] [bug #45028] Use "visible", "off" for printing, John W. Eaton, 2015/05/05
- [Octave-bug-tracker] [bug #45028] Use "visible", "off" for printing, Michael Godfrey, 2015/05/05
- [Octave-bug-tracker] [bug #45028] Use "visible", "off" for printing, Michael Godfrey, 2015/05/05
- [Octave-bug-tracker] [bug #45028] Use "visible", "off" for printing, Pantxo Diribarne, 2015/05/06
- [Octave-bug-tracker] [bug #45028] Use "visible", "off" for printing, Michael Godfrey, 2015/05/06
- [Octave-bug-tracker] [bug #45028] Use "visible", "off" for printing, Michael Godfrey, 2015/05/10