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

change size of node labels? #500

Open
maximelucas opened this issue Jan 11, 2024 · 1 comment
Open

change size of node labels? #500

maximelucas opened this issue Jan 11, 2024 · 1 comment

Comments

@maximelucas
Copy link
Collaborator

maximelucas commented Jan 11, 2024

it is not directly related to the node color, but more node size and node labels, in the current https://xgi.readthedocs.io/en/stable/api/drawing/xgi.drawing.draw.html#module-xgi.drawing.draw it seems not clear to me if you also allow to specify the changed size of the text of node lables.
and if yes, to document it on the drawing function maybe?
thanks!

Originally posted by @Liyubov in #499 (comment)

@maximelucas
Copy link
Collaborator Author

Thanks for the question @Liyubov! From draw(), you cannot yet do it.
However, you can do it by using separately the dedicated function draw_node_labels() that has a font_size_nodes parameter and many others.

Instead of using draw(), you can also use draw_nodes() and draw_edges() separately for more control. If you do that, you will see in the docs that you can use the **kwargs in draw_nodes() to pass arguments of the draw_node_labels() function without calling it separately.

Let us know if you manage or if something is still unclear.
We will try to clarify this in the docs and maybe add it as a recipe online.

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

1 participant