# iterate through each axes of the figure-level plot Using a seaborn figure-level plot g = sns.relplot(x='total_votes', y='dem_share', data=swing, hue='state', height=10) Using a seaborn axes-level plot with the object oriented api fig, ax = plt.subplots(figsize=(10, 10)) Perhaps there was a bug at the time, but the MRE from the OP, works without issue.annotate with weight='bold' plt.annotate('small counties most vote for McCain', xy=(50000, 20), weight='bold', annotate without bold plt.annotate('12 largest counties most vote for Obama', xy=(650000, 52), Sns.scatterplot(x='total_votes', y='dem_share', data=swing, hue='state') Imports, DataFrame
0 Comments
Leave a Reply. |