From: John H. <jdh...@ac...> - 2004-12-12 21:14:45
|
>>>>> "Uwe" == Uwe Hoffmann <qu...@ti...> writes: Uwe> Hi, i am using the simple_plot.py example with the Agg or Uwe> WXAgg backends. If i insert the following line: Uwe> rcParams["figure.facecolor"] = "r" the background is red when Uwe> using the WXAgg driver but with the Agg backend the Uwe> background of the png image is still white. Uwe> Any hints ? (matplotlib 0.64, linux) help(savefig) The default figure facecolor is passed as a kwarg in savefig. The idea is that you often want a different background color for the figure in a GUI (eg gray) and in hardcopy (eg white) savefig('myfile', facecolor='r') should work. JDH |