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

How to change image resolution? #19

Open
AllenDowney opened this issue Apr 9, 2021 · 3 comments
Open

How to change image resolution? #19

AllenDowney opened this issue Apr 9, 2021 · 3 comments

Comments

@AllenDowney
Copy link
Contributor

When fastdoc converts figures to png, the default resolution is too low for printing. Is there a way to either increase the resolution or generate pdf?

@maxpumperla
Copy link

@AllenDowney it seems there is a hardcoded conversion value for the width of images in the code

https://github.com/fastai/fastdoc/blob/master/fastdoc/asciidoc.py#L263

I guess it would be great to have command line options for this or at least override this with an environment variable at runtime.

@AllenDowney
Copy link
Contributor Author

@maxpumperla Thanks for looking into this. I agree that it would be great if this were a command-line option.

For now I have worked around it by setting

plt.rcParams['figure.dpi'] = 300

At the top of the notebook and running it again.

@maxpumperla
Copy link

good to know that works, thank you!

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

2 participants