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

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

[Octave-bug-tracker] [bug #52306] Cannot set figure background color whe


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #52306] Cannot set figure background color when print()ing to an image file
Date: Sun, 29 Oct 2017 19:57:45 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

Update of bug #52306 (project octave):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

By default (and it is Matlab compatible) the background color of figures is
set white when printing. To change this behavior you need to  set the figure
"InvertHardcopy" to "off":


fplot(@(x) sin(x), [0 2*pi])
set(gcf(), 'Color', [1 0 0], "InvertHardcopy", "off")
print('foo.jpg', '-djpg')


See "doc ('figure inverthardcopy')". 

Closing report.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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