xgi-org / xgi

CompleX Group Interactions (XGI) is a Python package for higher-order networks.
https://xgi.readthedocs.io
Other
172 stars 27 forks source link

change size of node labels? #500

Open maximelucas opened 6 months ago

maximelucas commented 6 months ago

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 https://github.com/xgi-org/xgi/issues/499#issuecomment-1885724024

maximelucas commented 6 months ago

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.