-
Notifications
You must be signed in to change notification settings - Fork 33
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
Speed up draw_xgi_nodes
and draw_xgi_hyperedges
#174
Labels
Comments
Node speed-up implemented in #211 |
Any ideas on how to optimize the edge function? |
I tried to make it faster but my recollection was that plotting a collection of patches gave you less control over the color and other properties of individual edges compared with plotting a patch at a time. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
If we remove the for-loop in the function that draws the hypergraph nodes with
scatter
and instead pass iterables into the scatter function, it could be faster. Also, if we plot Collection objects instead of Patch objects, maybe it will be faster as well. (https://stackoverflow.com/questions/37573314/matplotlib-efficient-way-to-create-large-number-of-patch-objects)The text was updated successfully, but these errors were encountered: