Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

axes color python

ax.spines['bottom'].set_color('#dddddd')
ax.spines['top'].set_color('#dddddd') 
ax.spines['right'].set_color('red')
ax.spines['left'].set_color('red')
Comment

how to change the colour of axes in matplotlin

import matplotlib.pyplot as plt
with plt.rc_context({'axes.edgecolor':'orange', 'xtick.color':'red', 'ytick.color':'green', 'figure.facecolor':'white'}):
    # Temporary rc parameters in effect
    fig, (ax1, ax2) = plt.subplots(1,2)
    ax1.plot(range(10))
    ax2.plot(range(10))
# Back to default rc parameters
fig, ax = plt.subplots()
ax.plot(range(10))
Comment

PREVIOUS NEXT
Code Example
Python :: urllib.request.urlopen with headers 
Python :: know the type of variable in python 
Python :: pthon return value with highest occurences 
Python :: numpy array divide each row by its sum 
Python :: extract outliers from boxplot 
Python :: pandas read csv dtype list 
Python :: create new list with for loop python 
Python :: strip whitespace python 
Python :: appending to a list python 
Python :: pandas divide multiple columns by one column 
Python :: pyton recognize any datetime format 
Python :: collections counter sort by value 
Python :: python sqrt function 
Python :: numpy concatenation array 
Python :: matplot lib 3d plot autoscale 
Python :: streamlit sidebar width 
Python :: input for competitive programming 
Python :: tqdm command that works both in notebook and lab 
Python :: python find center of polygon function 
Python :: matplotlib axis labels 
Python :: get mean using python 
Python :: netcdf in python 
Python :: how to take input of something in python 
Python :: tables in python 
Python :: Python program to find N largest elements from a list 
Python :: scikit learn to identify highly correlated features 
Python :: python panda count excel sheet 
Python :: numpy copy a array vertical 
Python :: add icon to exe file 
Python :: How to install a python packagae 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =