bugGNU Octave - Bugs: bug #51374, hidden axis causes warning by...

 
 

bug #51374: hidden axis causes warning by print()

Submitted by:  Marshall <marsian>
Submitted on:  Mon 03 Jul 2017 05:47:07 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: MarsianOpen/Closed: Closed
Release: 4.2.1Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 01 Aug 2017 04:52:30 PM UTC, comment #4:

I applied solution #1 on the development branch (http://hg.savannah.gnu.org/hgweb/octave/rev/784347c1b7e7). Marking as fixed and closing report.

Rik <rik5>
Project Administrator
Tue 01 Aug 2017 04:05:51 PM UTC, comment #3:

@Pantxo: Right, I forgot its August in Europe. Enjoy your vacation.

Rik <rik5>
Project Administrator
Tue 01 Aug 2017 02:06:08 PM UTC, comment #2:

I am currently in vacations and I am unable to test. Don't expect a reply from me before 3 weeks or so, sorry.

Pantxo Diribarne <pantxo>
Project Member
Tue 01 Aug 2017 12:47:39 AM UTC, comment #1:

@Pantxo: Could you take a look at this bug report?

The issue is in gl2ps_print.cc when the axes is not visible. I have two different patches which both fix the issue, but maybe you know a reason to prefer one over the other?

The first patch skips the entire draw_axes function when the axes is invisble. This one is probably better for performance.

The second patch allows gl2ps to run through all the drawing routines, but simply disables the warning.

Both patches are attached to the report if you want to try them out.

(file #41379, file #41380)

Rik <rik5>
Project Administrator
Mon 03 Jul 2017 05:47:07 PM UTC, original submission:

I get the warning "gl2ps_renderer::draw_axes: empty feedback buffer and/or nothing else to print" when I run the following:

I trace the warning to drawnow (gl2ps_device{n}, ['|' pipeline{n}]); in _opengl_print_.m

The warning is because of the hidden axis. If it is visible, there is no warning. The work around is to delete the legend rather than just hide it. I would rather there just not be the warning, though I understand the purpose. I ran into this originally because I was printing a figure that had multiple sub-plots where I hid several redundant legends.

Marshall <marsian>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #41379:  print_warn1.diff added by rik5 (473B - text/x-patch)
file #41380:  print_warn2.diff added by rik5 (623B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pantxo (Posted a comment)
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by rik5
  • -unavailable- added by marsian (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 01 Aug 2017 04:52:30 PM UTCrik5StatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Tue 01 Aug 2017 12:47:39 AM UTCrik5Attached File-=>Added print_warn1.diff, #41379
      Attached File-=>Added print_warn2.diff, #41380
      StatusNone=>Patch Submitted
      Operating SystemMicrosoft Windows=>Any
      Carbon-Copy-=>Added pantxo

    Back to the top


    Powered by Savane 3.1-cleanup1