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: Dan Sebald
Subject: [Octave-bug-tracker] [bug #52940] Regression with "PaperPosition" and printing
Date: Wed, 24 Jan 2018 00:44:20 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #24, bug #52940 (project octave):

I'm attaching a changeset having some additional mods that always use
drawnow() for printing regardless of figure visibility, i.e., no use of
OSMesa.  For the Qt toolkit, the "print tst.pdf" will still produce the
correct plot when the figure is not visible.  However, FLTK toolkit produces
the following warning message:


      if (state == GL2PS_NO_FEEDBACK && props.is_visible ())
        warning ("gl2ps_renderer::draw_axes: empty feedback buffer and/or
nothing else to print");


and produces and empty page in PDF.  It seems like a bit of progress worth
pursuing though.  All that may be needed is getting the proper viewport
dimensions to the gl2ps_print() routine without having to change the Figure
size as an intermediary.

BTW, I sat wondering about the above warning for a bit.  That warning is in
draw_axes() such that props is the axes properties.  Looking at the test, the
axes "is_visible" even though the figure is not.  Does that seem correct? 
I.e.,


octave:6> graphics_toolkit qt
octave:7> plot(1:5)
octave:8> ha = gca();
octave:9> set(1,'visible','off')
octave:10> get(ha,'visible')
ans = on
octave:11> get(1,'visible')
ans = off


(file #43047)
    _______________________________________________________

Additional Item Attachment:

File name: octave-gl2ps_viewport-djs2018jan24.patch Size:3 KB


    _______________________________________________________

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]