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

 
 

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

Submitted by:  Martin <aikon96>
Submitted on:  Mon 22 Feb 2016 11:09:39 PM UTC  
 
Category: PlottingSeverity: 1 - Wish
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.0.0Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project 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>
Project Administrator
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 23 Feb 2016 10:24:54 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Mon 22 Feb 2016 11:40:33 PM UTCmtmillerSeverity3 - Normal=>1 - Wish
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1