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

Matplotlib 3.1.1 breaks seaborn heatmaps #3

Open
Stefn93 opened this issue Oct 10, 2019 · 1 comment
Open

Matplotlib 3.1.1 breaks seaborn heatmaps #3

Stefn93 opened this issue Oct 10, 2019 · 1 comment
Assignees
Labels
test--current-version please test again in the current version

Comments

@Stefn93
Copy link

Stefn93 commented Oct 10, 2019

By executing the actual code the graph plot is cut at the top and at the bottom.

Solution.
Set heatmap limits manually by adding the following code at the end of "pretty_plot_confusion_matrix" function:
bottom, top = ax.get_ylim()
ax.set_ylim(bottom + 0.5, top - 0.5)

Reference:
https://stackoverflow.com/questions/56942670/matplotlib-seaborn-first-and-last-row-cut-in-half-of-heatmap-plot

@wcipriano wcipriano added the test--current-version please test again in the current version label May 9, 2024
@wcipriano
Copy link
Owner

Hello @Stefn93 !

Thank you for your report !
Sorry for delay, but I'm IN now and I'll support the project again!

I couldn't check this behavior in the current version.
Probably he updated of the versions of the dependencies has been solved the problem.

As you can see int the screenshot, I've tested in the python version 3.11.9 and it worked fine.
graph-plot_2024mai8-221447

Please try again and tell me if you have success!

I would like to inform you that I released version 0.2.0 and it is available in the official Python package index:
https://pypi.org/project/pretty-confusion-matrix/

Best regards !

@wcipriano wcipriano self-assigned this May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test--current-version please test again in the current version
Projects
None yet
Development

No branches or pull requests

2 participants