Open wubaosheng opened 2 years ago
Could you please provide a minimal working example?
As stated: Minimal code sample (that we can copy&paste without having any data)
This would help us examine the issue.
adata = sc.datasets.pbmc68k_reduced()
markers = ['C1QA', 'PSAP', 'CD79A', 'CD79B', 'CST3', 'LYZ']
categories_order=['0','1','9','8','2','5','4','7','3','6','10']
sc.pl.tracksplot(adata,markers,groupby='louvain',vmax=3,categories_order=categories_order)
no mattet what the "categories_order" is, there is no work on the order of the label.Even the categories_order is error, such as categories_order = ['a','b','c','d'], the figure can not do anything on the order of the labels
I also have this issue. In the documentation it also doesn't state what the input format should by, I tried as a list (similar to order in violin plot) but I get no change...
I don’t think it’s currently supported for heatmap and tracksplot.
Have you tried using col.cat.reorder_categories(...)
on the column?
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Minimal code sample (that we can copy&paste without having any data)
I can not get the order as ['0','1','9','8','2','5','4','7','3','6']
Versions
1.9.1