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

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

[Octave-bug-tracker] [bug #52940] Regression with "PaperPosition" and pr


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #52940] Regression with "PaperPosition" and printing
Date: Thu, 1 Feb 2018 05:05:42 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Update of bug #52940 (project octave):

                  Status:               Confirmed => Patch Submitted        

    _______________________________________________________

Follow-up Comment #42:

I did not test the patch in comment #41 thoroughly but the following works for
me:


plot (1:10)
print /tmp/default.pdf # No flickering, pdf OK
set (gcf, "paperpositionmode", "auto")
## Stretch the figure taller so that the effect is visible 
print /tmp/paperpositionmode_auto.pdf # No flickering, pdf OK
set (gcf, "visible", "off")
set (gcf, "paperpositionmode", "manual")
print /tmp/default_invisible.pdf # No flickering, pdf OK


As suggested by Dan, printing Qt invisible figures without the use of osmesa
works but there is a restriction: the figure must have been visible once, so
that the OpenGL context is OK.

This restriction could somewhat be lowered in the future by using a single
QOpenGLWidget for all prints of all figures (we don't need any kind of
decoration, just one valid opengl context that can be used by gl2ps). This
way, there is only one window that has to flash at the beginning of an Octave
session for off/on-screen printing to be enabled. The flashing QOpenGLWidget
could even be hidden behind the main GUI window when the latter is run.

Unfortunately, this is not a proper replacement of osmesa when it comes to
generating the manual: the whole point of using "visible"->"off" when
generating the figures of the manual is to not have figures flashing on-screen
during the build process.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52940>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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