Skip to content Skip to sidebar Skip to footer

Change Background *without* A Frame With Matplotlib

Given this code, from pylab import * ion() axes(frameon = 0, aspect = 1, polar = 1) grid (True) I get the window, containing the axes, where I can plot what I need. I want to chan

Solution 1:

You need to specify an argument to the facecolor parameter when calling figure():

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

enter image description here

Post a Comment for "Change Background *without* A Frame With Matplotlib"