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

plot background color matplotlib

### 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 :: split at the second occurrence of the element python 
Python :: python 3.7 download for windows 7 32-bit 
Python :: minmaxscaler python 
Python :: python merge nested dictionaries 
Python :: how to setup django ionos hostig 
Python :: roman to integer 
Python :: python optional parameters 
Python :: colors in scatter plot python 
Python :: python to mac executable 
Python :: pyspark dataframe to parquet 
Python :: django q objects 
Python :: pow python 
Python :: run in another thread decorator 
Python :: python array usage 
Python :: pygityb 
Python :: python array index range 
Python :: python text input 
Python :: auto slug field django 
Python :: random python between 0 and 1 
Python :: discord bot slash 
Python :: python assert is not null 
Python :: creating a sqlite3 table in python and inserting data in it 
Python :: requests python3 example 
Python :: dataframe to tf data 
Python :: get column index of maximum value in each row pandas 
Python :: python sockets 
Python :: insert into string python more than one 
Python :: python dataclass 
Python :: python how to turn a word into a list 
Python :: how to make my discord bot shut down with a command 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =