-
Notifications
You must be signed in to change notification settings - Fork 34
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
enforce circular layout to be circular (and not elliptic)? #430
Comments
I'd suggest we do enforce it. |
I'd tend to enforce it too. The user can still manually change the aspect ratio later if they want something specific. |
Actually, I don't think anything can be done inside fig, ax = plt.subplots()
pos = xgi.circular_layout(H)
xgi.draw(H, pos=pos, ax=ax)
ax.set_aspect("equal") I'm not even sure we can enforce this automaticall inside |
@maximelucas all you are saying is correct. What if we just point that out in the docs/tutorials and keep the function as it is? |
Agreed, was also thinking we could mention this in the docs of Yea enforcing this in |
We've just discussed with Alice and Nicholas and decided to do the following: |
* feat: enforce equal aspect for circular layout xgi-org#430 * changed implementation of set_aspect
* Added weights option to to_line_graph function. * Added tests for weighted line graph implementation. * Added s=2 test. * Added encapsulation dag code. * Added encapsulation dag tests. * Removed unnecessary combinations import. * Updated docstring. * included functions from publication (#400) * feat: added shuffle_hyperedges + tests * feat: added shuffle_hyperedges + tests * fix: filenames * fix: tests * style: black and isort * feat: added function node_swap + test * style: black and isort * fix: error from python 3.11 * attempt at listing the available statistics (#405) * attempt at listing the available statistics * fixing previous errors * Attempt at implementing suggestions by nich * second attempt at displaying the titles * another trial * titles in bold * update of the panel for dihypergraph stats * minor fixes * change the hierarchical structure * minor change * moving MultiDi-stats in the right place * adding decorators to the admonition box * moving up the decorators * up-version * feat: enforce equal aspect for circular layout #430 (#432) * feat: enforce equal aspect for circular layout #430 * changed implementation of set_aspect * Refactor draw module (#435) * refact: draw module * style: black and isort * fix #331 (#438) * Added the ability for users to access the optional arguments of NetworkX layout functions. (#439) * Added another test. * Refactored relations to subset_types. Exposed and documented empirical relations filtering function. Documentation improvements. * Update xgi/convert/encapsulation_dag.py documentation Co-authored-by: Maxime Lucas <[email protected]> * Fix typo in xgi/convert/encapsulation_dag.py Co-authored-by: Maxime Lucas <[email protected]> * Updates to documentation. * Minor refactor. --------- Co-authored-by: Maxime Lucas <[email protected]> Co-authored-by: Thomas Robiglio <[email protected]> Co-authored-by: Nicholas Landry <[email protected]>
Right now, the circular layout may appear elliptic depending on the aspect ratio of the axis (see below). We enforce the aspect to be "equal". Do we want that? networkx does not apparently.
Modified from originally posted by @thomasrobiglio in #415 (comment)
The text was updated successfully, but these errors were encountered: