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

Feature request: A way to fix the scale of venn circles #83

Open
beefstew opened this issue Sep 9, 2024 · 1 comment
Open

Feature request: A way to fix the scale of venn circles #83

beefstew opened this issue Sep 9, 2024 · 1 comment

Comments

@beefstew
Copy link

beefstew commented Sep 9, 2024

Desired: To have circles representing similar counts appear the same size across plots; this is especially true when creating diagrams with multiple subplots.

Currently, the rendered size of a venn circle is based on the length of the sets that are passed into the venn3 function. Depending on your data, this can cause a circle representing 25 items to appear the same size as one representing 500 items on diagrams that appear next to one another.

Suggestion: add a max_set_size parameter that is used to calculate the scaling factor of drawn circles. Users can easily determine a maximum set size for their data and pass it to each separate venn3 call.

Thanks!

@konstantint
Copy link
Owner

konstantint commented Sep 9, 2024

The pairwise layout algorithm has a normalize_to parameter, which should let you achieve what you need, if I understood it correctly. See if it does. You will need to select different normalizations depending on how you want to scale your diagrams (something like max_set_size_in_diagram/reference_max_set_size) as well as make sure the axes are using the same scale to achieve the effect.

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