Swapping X and Y axis for dotplot

I’m using sc.pl.dotplot function. For example
ax = sc.pl.dotplot(millerFetalData, geneList, groupby=‘Cell_type’)

I want to swap the x and y axes (ie gene names for y axis, cell types for x axis) but it doesn’t seem like I can simply add swap_axes=True. Is there another way?


@fidelram could you answer this? Is it possible to just take the transpose of the adata object, maybe?

I did try the transpose but that didn’t work.
I did figure out how to get the data out that I needed and just did my own plot using that data. Thanks though.

Sorry about that… I’m sure this is possible, but it seems most people are on github rather than discourse these days.