import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
from scipy import stats
import warnings
df = pd.DataFrame([[0.2,40,1], [0.4,50,6], [5,14,5],
[1,25,7], [9,23,4], [3,300,100]],
columns=['a1', 'a2', 'a3'])
fig, axes = plt.subplots(nrows=3, ncols=1,figsize=(18, 10), sharex=False)
sns.boxplot(ax=axes[0],data=df,y="a1")
sns.boxplot(ax=axes[1],data=df,y="a2")
sns.boxplot(ax=axes[2],data=df,y="a3")
I have found ways to put limits, for instance - set(xlim=(0,15),ylim=(0,100)))
However, this isn't what I'm looking for, I'd like to have a handle on the y-axis in this data. For example - y-axis for a3
- 0, 35, 60, 100
Further, how do I set/change y-axis labels, or add sub-titles to each of grid-plots?