bugGNU Octave - Bugs: bug #48581, print: grid and plot lines saved...

 
 

bug #48581: print: grid and plot lines saved above legend text

Submitter:  Deniss Sipchenko <denissipchenko>
Submitted:  Thu 21 Jul 2016 02:32:33 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Duplicate Assigned to:  None
Originator Name:  Denis Sipchenko Open/Closed:  * Closed
Release:  * 4.0.3 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 28 Aug 2017 08:59:39 PM UTC, comment #2: 

Posted to the mailing list, not the tracker:

Hello team,

Congratulations with Octave 4.2 release!

Unfortunately still some problems with figure saving:

   1. With

*graphics_toolkit('gnuplot'): *I can't get colored text in figure legend
   (the same code works with gnuplot)

   2. With graphics_toolkit('qt'):

   can't save figures with property 'visible', 'off'


Code example:


%graphics_toolkit('gnuplot')
graphics_toolkit('qt')
fh=figure(1,'visible', 'off');
plot(1:8, magic(8)), grid on

lh=legend(...
  { '1){\bf bold font}' ...
  , '3)\color[rgb]{0 0 1}{\bf blue text}' ...
  });
print(fh,'png', '-dpng')


Output message:


Mesa warning: couldn't open dxtn.dll, software DXTn
compression/decompression unavailable
GL2PS error: Incorrect viewport (x=0, y=328577624, width=0,
height=328577672)
error: gl2ps_renderer::draw: gl2psBeginPage returned GL2PS_ERROR
error: called from
    __opengl_print__ at line 172 column 7
    print at line 503 column 14
    bugpack_report at line 12 column 1


John W. Eaton <jwe>
Group administrator
Thu 21 Jul 2016 04:15:32 PM UTC, comment #1: 

Thank you for your bug report. This has actually been reported and fixed (see bug #44765). The fix has not been released, you can get it with Octave 4.2 or by building Octave from the development branch.

Mike Miller <mtmiller>
Group Member
Thu 21 Jul 2016 02:32:33 PM UTC, original submission:  

1. Grid and plot lines are saved above legend text in *.png file
2. Everything is Ok with figure.


x=magic(8);
plot(x); grid on
legend(num2str(x))
print('LinesAboveText.png')


Result in attachment

Deniss Sipchenko <denissipchenko>

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by denissipchenko (Submitted the item)
  • -email is unavailable- added by denissipchenko
  •  

    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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-02-26 mtmiller Carbon-CopyRemoved 80942 -
    2016-07-21 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #44765
    2016-07-21 denissipchenko Attached File- Added LinesAboveText.png, #37973
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code