-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Ease setting figure dimensions in-line #29
Comments
This change (for version 1.0) will follow pystata's API more closely, in the sense that if you only set one dimension (at a time), the other dimension is also updated, using the default aspect ratio. In other words,
which will be the only way to get a square aspect ratio. |
For now (version 0.x), there's a workaround:
Or, if you want it to not cause errors when exported to a do file:
Or, equivalently, add these lines to the config file:
|
Thank you! This now works like a charm! |
Use literal "default"s for pystata.config.set_graph_size for
nbstata
's default. This will probably require a breaking change to the API, but it's worth it.Discussed in #24
Originally posted by friosavila May 11, 2023
Hi Tim
I was wondering if there is anyway to modify how nbstata works regarding figures.
I know that currently, you can change the setup if you would like to obtain larger or smaller figures to be output in jupyter notebook.
However, would it be possible to use information from "xsize() and ysize()" to be used to change those settings in a more dynamic way?
Thank you!
The text was updated successfully, but these errors were encountered: