scanpy icon indicating copy to clipboard operation
scanpy copied to clipboard

`sc.pl.stacked_violin`, Is it also possible to add tiny y-axis scale bars to the stacked_violin(`swap_axes = True`)?

Open danli349 opened this issue 4 years ago • 3 comments

Hello,

Is it also possible to add tiny y-axis scale bars to the stacked_violin(swap_axes = True), to indicate the expression levels?

Thanks Dan

danli349 avatar Dec 23 '21 16:12 danli349

Similar to the totals count for the groups right?

I believe this isn't currently possible, but could be a nice addition.

ivirshup avatar Jan 18 '22 18:01 ivirshup

Yeah, it's not working

Here https://scanpy.readthedocs.io/en/stable/generated/scanpy.pl.violin.html they say

Wraps seaborn.violinplot() for AnnData.

but when you add orient='h' or orient='v' to the sc.pl.violin run, it fails wit this error:

TypeError: seaborn.categorical.violinplot() got multiple values for keyword argument 'orient'

abearab avatar Apr 19 '23 00:04 abearab

How would one get the scale bars? How is orient related?

flying-sheep avatar Jan 09 '25 15:01 flying-sheep