scirpy.pl.base.barh¶
-
scirpy.pl.base.
barh
(data, *, ax=None, style='default', style_kws=None, fig_kws=None, **kwargs)¶ Basic plotting function built on top of bar plot in Pandas.
Draws a horizontal bar plot.
- Parameters
- data :
DataFrame
DataFrame
Data to show (wide format).
- ax :
Axes
|None
Optional
[Axes
] (default:None
) Custom axis if needed.
- style : {‘default’} |
None
Optional
[Literal
[‘default’]] (default:'default'
) Style to apply to the axes. Currently supported are
None
(disable styling) and default (default style).- style_kws :
dict
|None
Optional
[dict
] (default:None
) Parameters passed to
scirpy.pl.styling.style_axes()
- fig_kws :
dict
|None
Optional
[dict
] (default:None
) Parameters passed to the
matplotlib.pyplot.figure()
call if noax
is specified. Defaults to{'figsize': (3.44, 2.58), 'dpi': 120}
if None.
- data :
- Return type
- Returns
Axes object