Skip to content

Instantly share code, notes, and snippets.

@trevismd
Last active July 21, 2021 15:48
Show Gist options
  • Save trevismd/8beb731280a797ba8b96af4ee5bda4ca to your computer and use it in GitHub Desktop.
Save trevismd/8beb731280a797ba8b96af4ee5bda4ca to your computer and use it in GitHub Desktop.
Reference plot 1
with sns.plotting_context("notebook", font_scale=1.4):
# Create new plot, setting a logarithmic scale for y
ax = get_log_ax()
# Plot with seaborn
sns.boxplot(ax=ax, data=rfs, x='Subcategory', y='Goal', palette=subcat_palette[1:])
# Label (adds axes labels and title), and show
label_plot_for_subcats(ax)
plt.savefig("plot1.png")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment