bugGNU Octave - Bugs: bug #47315, print with legend will print...

 
 

bug #47315: print with legend will print legend only

Submitter:  Andreas Stahel <sha1>
Submitted:  Tue 01 Mar 2016 05:19:44 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Andreas Stahel Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 02 Mar 2016 06:11:41 PM UTC, comment #4: 

@Pantxo: Your suggestion works.  I simplified the bit manipulation to


opts &= ~GL2PS_DRAW_BACKGROUND;


The full cset is http://hg.savannah.gnu.org/hgweb/octave/rev/13b6be3cb217.

Fixed, closing report.


Rik <rik5>
Group administrator
Wed 02 Mar 2016 08:22:58 AM UTC, comment #3: 

@Rik: I think you could try something like this pseudo code:


// In draw_axes ()
gl2psBeginViewport (...);
...
gl2psEndViewport ();
GLint *opts;
gl2psGetOptions (opts);
// Don't draw background for subsequent viewports
opts = (opts | GL2PS_DRAW_BACKGROUND) ^ GL2PS_DRAW_BACKGROUND;
gl2psSetOptions (opts);


Pantxo Diribarne <pantxo>
Group Member
Wed 02 Mar 2016 05:44:56 AM UTC, comment #2: 

Pretty sure that it is this cset:

21341:ae384d86196e
Print figure background from OpenGL toolkits (bug #47240).


Rik <rik5>
Group administrator
Tue 01 Mar 2016 05:48:08 PM UTC, comment #1: 

Confirmed here on rev f20af4d085e9. Does not affect the stable branch.

This is a regression probably introduced by a fix to another problem. Can you bisect this to find the changeset that introduced this error?

Mike Miller <mtmiller>
Group Member
Tue 01 Mar 2016 05:19:44 PM UTC, original submission:  

Dear developpers

When printing a plot with legend, only the legend is printed, i.e. no graph is shown.
Verified with multiple devices (png, eps, pdfwrite)

With best regards

Andreas


x=linspace(0,10);
plot(x,sin(x))
legend('Hello')

print t.png


Andreas Stahel <sha1>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by sha1 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-03-02 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2016-03-02 rik5 Item GroupIncorrect Result Regression
    2016-03-01 mtmiller CategoryPlotting Plotting with OpenGL
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code