Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

change graph colors python matplotlib

plt.plot([values], color='color')
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

PREVIOUS NEXT
Code Example
Python :: python index of last occurrence in string 
Python :: opencv skip video frames 
Python :: pickle.load python 
Python :: pandas order by date column 
Python :: python change a key in a dictionary 
Python :: encode labels in scikit learn 
Python :: how to set background color of an image to transparent in pygame 
Python :: how to make a kivy label multiline text 
Python :: print type(x) in python 
Python :: iqr in python 
Python :: remove nana from np array 
Python :: adding a pandas column with multiple conditions 
Python :: how to convert tuple to int in python 
Python :: TabError: inconsistent use of tabs and spaces in indentation 
Python :: click link selenium python 
Python :: json indent options python 
Python :: Tkinter button icons 
Python :: How to get current CPU and RAM usage in Python? 
Python :: column contains substring python 
Python :: how to use python to sleep if the user is not using the system 
Python :: facerecognizer python 
Python :: how to open excel with more than one sheetpython 
Python :: all alphanumeric characters for python python 
Python :: creating dictionary using the keys 
Python :: change default python version 
Python :: turtle write 
Python :: make directory python 
Python :: hmac in python 
Python :: django jalali date 
Python :: change tensor type pytorch 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =