Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Significance Plots Colour Bar Breaks Using Matplotlib >= 3.5.0 #51

Closed
MattyB95 opened this issue Feb 13, 2022 · 1 comment
Closed

Significance Plots Colour Bar Breaks Using Matplotlib >= 3.5.0 #51

MattyB95 opened this issue Feb 13, 2022 · 1 comment
Assignees
Labels

Comments

@MattyB95
Copy link
Contributor

It appears the way Matplotlib handles colour bars from version 3.5.0 breaks the significance plots colour bar:

To Reproduce

import matplotlib.pyplot as plt
import scikit_posthocs as sp
import statsmodels.api as sa

x = sa.datasets.get_rdataset('iris').data
x.columns = x.columns.str.replace('.', '')
pc = sp.posthoc_ttest(x, val_col='SepalWidth', group_col='Species', p_adjust='holm')
heatmap_args = {'linewidths': 0.25, 'linecolor': '0.5', 'clip_on': False, 'square': True,
                'cbar_ax_bbox': [0.82, 0.35, 0.04, 0.3]}
sp.sign_plot(pc, **heatmap_args)
plt.show()

issue

Expected behaviour

expected

@maximtrp
Copy link
Owner

Thank you for this fix! I probably need to test the other functions. Time passes and third-party packages change their behavior.

@maximtrp maximtrp closed this as completed Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants