Riverplot: Figure height and width not usable
Closed this issue · 0 comments
kohleman commented
e.g bc.pl.riverplot_2categories(adata, ["celltype1", "celltype2"], figsize=[5,5])
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In [126], line 1
----> 1 bc.pl.riverplot_2categories(adata, ["celltype1", "celltype2"], figsize=[5,5])
File ~/scratch/conda/envs/besca25_LAS/lib/python3.8/site-packages/besca/pl/_riverplot.py:103, in riverplot_2categories(adata, categories, palette, threshold, figsize)
101 fig = go.Figure(dict(data=[data]))
102 if figsize is not None:
--> 103 fig.set_figheight(figsize[1])
104 fig.set_figwidth(figsize[0])
105 return fig
AttributeError: 'Figure' object has no attribute 'set_figheight'