Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

matplotlib background color

fig, ax = plt.subplots()
#to change the inside of the graph
ax.set_facecolor('xkcd:salmon')
ax.set_facecolor((1.0, 0.47, 0.42))
#to change the border color around the back
fig.patch.set_facecolor('xkcd:mint green')
Comment

changing plot background color in python

### How to change plot background color

fig, ax = plt.subplots()
## to change the inside of the graph
ax.set_facecolor('xkcd:salmon')
ax.set_facecolor((1.0, 0.47, 0.42))
## to change the border color around the back
fig.patch.set_facecolor('xkcd:mint green')
Comment

matplotlib python background color

fig = plt.figure()
fig.patch.set_facecolor('xkcd:mint green')
Comment

PREVIOUS NEXT
Code Example
Python :: dataframe to dictionary 
Python :: python remove empty lines from file 
Python :: python remove duplicate numbers 
Python :: youtube-dl python get file name 
Python :: button onclick message box in python tkinter 
Python :: Convert DateTime to Unix timestamp in Python 
Python :: dropout keras 
Python :: list to dataframe 
Python :: how to check if an object of a certain type python 
Python :: assign multiline string to variable in python 
Python :: esp8266 micropython ds18b20 
Python :: python define random variables name 
Python :: python code to generate fibonacci series 
Python :: std python 
Python :: python pdf fpdf example 
Python :: get name of a file in python 
Python :: drop rows from dataframe based on column value 
Python :: python return min length of list 
Python :: multiple pdf in a directory to csv python 
Python :: saving model in pytorch 
Python :: path to create a text file in python 
Python :: reportlab python draw line 
Python :: str to tuple of float 
Python :: get current module name python 
Python :: pandas add quantile columns 
Python :: how to save an image with the same name after editing in python pillow module 
Python :: django login code 
Python :: get number of zero is a row pandas 
Python :: add x=y line to scatter plot python 
Python :: qtablewidget not editable python 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =