Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

xlabel seaborn

import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt

fake = pd.DataFrame({'cat': ['red', 'green', 'blue'], 'val': [1, 2, 3]})
ax = sns.barplot(x = 'val', y = 'cat', 
              data = fake, 
              color = 'black')
ax.set(xlabel='common xlabel', ylabel='common ylabel')
plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: sns set figure size 
Python :: python print exception message and stack trace 
Python :: for loop django template count 
Python :: pandas find na 
Python :: set recursion limit python 
Python :: python install pylab 
Python :: split validation set 
Python :: python alphabet capital 
Python :: download from url using urllib python 
Python :: dictionary from two lists 
Python :: python dataframe rename first column 
Python :: how to make a custom icon for pygame 
Python :: sns title 
Python :: python delete folder 
Python :: how to find geometric mean in python 
Python :: export image python 
Python :: python reload function in shell 
Python :: export file csv 
Python :: python get all variables in class 
Python :: python random hex color 
Python :: s3fs download file python 
Python :: open pkl file python 
Python :: how to make a star in python turtle 
Python :: python sleep 5 seconds 
Python :: pyspark import f 
Python :: Update all packages using pip on Windows 
Python :: python current time 
Python :: label encoder python 
Python :: split string form url last slash 
Python :: django add media 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =