2013-06-03 34 views
4

鉴于这种代码框架,变化背景*不*与matplotlib

from pylab import * 
ion() 
axes(frameon = 0, aspect = 1, polar = 1) 
grid (True) 

我得到的窗口,其中包含的轴,在那里我可以画出我需要什么。

我想将此窗口的背景从标准灰色更改为另一种颜色。

我不想使用框架。

回答

8

您需要指定的参数来facecolor参数调用figure()时:

from pylab import * 
ion() 
figure(facecolor='white') # Or any other color 
axes(frameon = 0, aspect = 1, polar = 1) 
grid(True) 

enter image description here