Skip to content

Instantly share code, notes, and snippets.

@trevismd
Last active April 18, 2024 10:52
Show Gist options
  • Save trevismd/09b640bbeecaac9db4bbfb64f2058f96 to your computer and use it in GitHub Desktop.
Save trevismd/09b640bbeecaac9db4bbfb64f2058f96 to your computer and use it in GitHub Desktop.
Reference plot 3
with sns.plotting_context('notebook', font_scale = 1.4):
# Create new plot
ax = get_log_ax()
# Plot with seaborn
ax = sns.boxplot(ax=ax,
data=rfs,
x='Subcategory', y='Goal',
order=subcat_order,
hue="State",
hue_order=states_order,
palette=states_palette)
# Label and show
add_legend(ax)
label_plot_for_subcats(ax)
plt.show()
@Yassy-Ubuntu
Copy link

Dear Trevismd,

I have a question about this part of the code. I installed the package utils, but it does not give me the functions such as ax=get_log_ax(). I was wondering which exact package you installed to get those functions. I am also trying to annotate my violinplots for my prject with the kruskal p-value.

Thank you in advance!

With kind regards,
Yasmine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment