Closed nwlandry closed 7 months ago
Yes, this is kind of matplotlib behavior I think. The default cmap is not None
but you're specificying colors with colors and not with values so it's just saying there's no values to map to colors so cmap is ignored.
We could fix this either by making sure cmap is None in case colors are specified, or by just hiding the user warning. In any case, the outputs are not wrong.
~~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!~~
Edit by @maximelucas : created a new issue https://github.com/xgi-org/xgi/issues/500 with this because it's different enough
A minimal working example is
produces this warning