bedapub / besca

BESCA (Beyond Single Cell Analysis) offers python functions for single-cell analysis
https://bedapub.github.io/besca/
GNU General Public License v3.0
49 stars 16 forks source link

Riverplot: Figure height and width not usable #280

Closed kohleman closed 1 year ago

kohleman commented 1 year ago

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'