Open jahilton opened 2 years ago
Thanks for your comment Jason! Don't you think the sentence before the one you quoted: "If None, mpl.rcParams["axes.prop_cycle"] is used unless the categorical variable already has colors stored in adata.uns["{var}_colors"]." in combination with the default being "None" would make this clear?
Hey Lisa!
I think I can see that connection now. But I had initially interpreted the "If provided" to mean if I specified, but seems like it also applies to the case where mpl.rcParams["axes.prop_cycle"]
is provided for me.
Instead of "If provided, values of adata.uns["{var}_colors"] will be set." I would find it more clear to say something like "adata.uns["{var}_colors"] will be set if not already stored"
From pl.embedding documentation, for
palette
, it statesThis implies that if not provided, then those values will not be set. However, they are being set - either without specifying
palette
(default:None), or explicitly passingpalette=None
Either it's a bug, or the documentation is not clear.Minimal code sample (that we can copy&paste without having any data)