Last active
April 18, 2024 10:52
-
-
Save trevismd/09b640bbeecaac9db4bbfb64f2058f96 to your computer and use it in GitHub Desktop.
Reference plot 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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