Seems pretty Googleable but haven’t been able to find something online that works. I’ve tried both sns.boxplot('Day', 'Count', data= gg).title('lalala') and sns.boxplot('Day', 'Count', data= gg).suptitle('lalala'). None worked. I think...
I’m trying to use my own labels for a Seaborn barplot with the following code: import pandas as pd import seaborn as sns fake = pd.DataFrame({'cat': ['red', 'green', 'blue'],...
I am using matplotlib to make scatter plots. Each point on the scatter plot is associated with a named object. I would like to be able to see the...
I am a little confused about how this code works: fig, axes = plt.subplots(nrows=2, ncols=2) plt.show() How does the fig, axes work in this case? What does it do?...
I have a simple factorplot import seaborn as sns g = sns.factorplot("name", "miss_ratio", "policy", dodge=.2, linestyles=["none", "none", "none", "none"], data=df[df...
I tried the following code (test_seaborn.py): import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt matplotlib.style.use('ggplot') import seaborn as sns sns.set() df = sns.load_dataset('iris') sns_plot = sns.pairplot(df, hue="species", size=2.5) fig =...
I’m sure I’m forgetting something very simple, but I cannot get certain plots to work with Seaborn. If I do: import seaborn as sns Then any plots that I...
How do I change the size of my image so it’s suitable for printing? For example, I’d like to use to A4 paper, whose dimensions are 11.7 inches by...
Very similar to this question but with the difference that my figure can be as large as it needs to be. I need to generate a whole bunch of...