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

Changing Graph SIze #11

Open
RomanticStrings opened this issue Oct 21, 2020 · 1 comment
Open

Changing Graph SIze #11

RomanticStrings opened this issue Oct 21, 2020 · 1 comment

Comments

@RomanticStrings
Copy link

When resizing with figsize, the image itself does not get larger than a certain amount, only the whitespace around it.

Is it possible to increase the image size without compromising the resolution? Generating labels for the petals gets squishy when more information is needed.

@LankyCyril
Copy link
Owner

There's a few ways to do this. If you're creating an output file, you can keep the size of the image, reduce the fontsize, and call savefig with parameters like dpi=300 when saving to png etc, or save to a pdf, which is a vector format, therefore it won't get grainy at any zoom level.

Alternatively, you can pass both figsize and fontsize to the venn function:
venn(yourdata, figsize=(20, 20), fontsize=24)

Or, pre-create a figure and then plot onto it:

figure, ax = subplots(figsize=(20, 20))
venn(yourdata, fontsize=24, ax=ax)
plt.show()

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