bugGNU Octave - Bugs: bug #47230, figure property...

 
 

bug #47230: figure property "inverthardcopy" won't affect print command

Submitter:  Martin <aikon96>
Submitted:  Mon 22 Feb 2016 11:09:39 PM UTC
   
 
Category:  Plotting Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 23 Feb 2016 10:24:54 PM UTC, comment #2: 

There are multiple overlapping bugs here.  The figure property "InvertHardCopy" was not implemented so I did that on the development branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/030d4d6c2b58).  Since that is done, I am closing this report.

However, I have opened another bug report (bug #47240) about the inability to correctly print a background color with an OpenGL toolkit.

Rik <rik5>
Group administrator
Mon 22 Feb 2016 11:40:33 PM UTC, comment #1: 

Thanks for the report so this will not get lost. Confirmed that the property is not yet implemented in Octave. Also Matlab says that the default value of the property should be "on", but Octave defaults to "off".

Mike Miller <mtmiller>
Group Member
Mon 22 Feb 2016 11:09:39 PM UTC, original submission:  

Saving a plotted figure wiht custom background, for example "black" won't affect the saved picture. So instead of black background, there is a white background.

Tested with Octave v4.0.0  vs. MATLAB 2015b


MATLAB CODE:
fig = gcf;
fig.Color = 'black';
fig.InvertHardcodpy = 'off';
saveas(gcf,'test.png')

% --> Saved file has black background. -> OK

OCTAVE:
figure(1)
set(gcf,'Color',[0,0,0],'inverthardcopy', 'off')
saveas(gcf,'test.png')
% --> saved file has white background -> NOK


This problem has already been discussed and confirmed here:
http://octave.1599824.n4.nabble.com/Print-Problem-Figure-Background-won-t-get-printed-td4674940.html

Martin <aikon96>

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by aikon96 (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-23 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2016-02-22 mtmiller Severity3 - Normal 1 - Wish
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code