octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47230] figure property "inverthardcopy" won't


From: Martin
Subject: [Octave-bug-tracker] [bug #47230] figure property "inverthardcopy" won't affect print command
Date: Mon, 22 Feb 2016 23:09:40 +0000
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0

URL:
  <http://savannah.gnu.org/bugs/?47230>

                 Summary: figure property "inverthardcopy" won't affect print
command
                 Project: GNU Octave
            Submitted by: aikon96
            Submitted on: Mo 22 Feb 2016 23:09:39 GMT
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: Any

    _______________________________________________________

Details:

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




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47230>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]