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

show ignores figsize when plotting multiple images #598

Open
sezelt opened this issue Jan 12, 2024 · 0 comments
Open

show ignores figsize when plotting multiple images #598

sezelt opened this issue Jan 12, 2024 · 0 comments

Comments

@sezelt
Copy link
Member

sezelt commented Jan 12, 2024

Describe the bug
When passing a list of images to py4DSTEM.show, the figsize argument is ignored.

To Reproduce

import py4DSTEM
import numpy as np

arr = np.random.rand(128,128)

py4DSTEM.show(arr, figsize=(2,2)) # <-- works
# py4DSTEM.show(arr, figsize=(2, np.nan)) # <-- raises error (as expected)

py4DSTEM.show([arr,arr], figsize=(2,2)) # <-- figsize is not changed
py4DSTEM.show([arr,arr], figsize=(2,np.nan)) # <-- does not raise an error

Expected behavior
figsize should control the size of the figure.

Additional context
For grid plots, the undocumented keyword argument axsize controls the size of each axis in the figure. At a minimum this should be documented, and ideally there should also be a way to get the overall size of the figure.

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

No branches or pull requests

1 participant