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

Allow tuning matplotlib subplots. #781

Merged
merged 1 commit into from
May 30, 2024
Merged

Conversation

pfebrer
Copy link
Contributor

@pfebrer pfebrer commented May 29, 2024

Now subplot kwargs are passed directly to plt.subplots in the matplotlib backend, and one can therefore pass things like gridspec_kw:

import sisl
p = sisl.geom.graphene().plot(axes="xy")
sisl.viz.subplots(p, p, rows=2, gridspec_kw={"height_ratios": [2, 1]}, backend="matplotlib")

Screenshot from 2024-05-29 22-36-13

Copy link

codecov bot commented May 29, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 87.36%. Comparing base (2b299e3) to head (f37c45d).

Files Patch % Lines
src/sisl/viz/figure/matplotlib.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #781   +/-   ##
=======================================
  Coverage   87.36%   87.36%           
=======================================
  Files         396      396           
  Lines       50706    50706           
=======================================
  Hits        44298    44298           
  Misses       6408     6408           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zerothi zerothi merged commit 58f4758 into zerothi:main May 30, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants