theislab / cellrank

CellRank: dynamics from multi-view single-cell data
https://cellrank.org
BSD 3-Clause "New" or "Revised" License
342 stars 47 forks source link

x label in gene trends #36

Closed Marius1311 closed 4 years ago

Marius1311 commented 4 years ago

At the moment, the x-axis seems to always be labelled with pseudotime, see line 15 & 16 in our basic tutorial, even though latent_time is specified. Can we change this, to make it more obvious what we really show on the x-axis?

Marius1311 commented 4 years ago

Thanks! Will have a look.

Marius1311 commented 4 years ago

I don't get what you changed, the x-axis still says "Pseudotime", even though my time key is latent_time, see below:

image

If the x-axis shows latent time, we should label it accordingly.

michalk8 commented 4 years ago

You need to manually set it using xlabel in plot_kwargs. I can make it so that it's automatic.

Marius1311 commented 4 years ago

Yes, please make it to automatically take the time_key - one should still be able to set it manually though, in addition.