Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Description
Bug summary
I'll try to come up with a smaller reproducer, but thought I'd just report it now. The full script is athttps://github.com/apytypes/apytypes/tree/main/comparison (run comparison.py while standing in that directory, no need to install any of the dependencies, there will just be red pixels instead...)
Code for reproduction
# Plotting partsfig,ax=plt.subplots(layout="constrained",figsize=(8,5))ax.imshow(working)ax.set_xticks(x,benchmarks.keys(),rotation=90,)ax.set_yticks(range(len(libraries)),libraries.keys())fig.savefig("comparison_matrix.png")
Actual outcome
Expected outcome
The very long label should not be clipped (it says "Elementwise ...". There is plenty of white space at the top to avoid this.
Additional information
My guess is that it related to imshow and therefore the equal aspect ratio as I have done similar things for bar plots and then the full label is shown, seehttps://apytypes.github.io/apytypes/comparison.html
Operating system
Ubuntu 24, both WSL and GitHub CI
Matplotlib Version
main:4f26d9a (WSL) and 3.10.3 (GitHub CI)
Matplotlib Backend
No response
Python version
3.12.3 (WSL) and 3.11 (GitHub CI)
Jupyter version
No response
Installation
None