Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

figure size for celllabel_quant_stackedbar #181

Open
marlisese opened this issue Nov 1, 2021 · 1 comment
Open

figure size for celllabel_quant_stackedbar #181

marlisese opened this issue Nov 1, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@marlisese
Copy link
Collaborator

Hi all,
It would be nice to have the figure size parameters available (figsize) for this function: celllabel_quant_stackedbar. Often times it gets just squeezed if labels are long.
Thanks,
Martha

@ajulienla
Copy link
Collaborator

ajulienla commented Dec 20, 2021

Hi Martha (@marlisese ),
would a solution like this be satisfiable for you :

import besca as bc
adata = bc.datasets.Kotliarov2020_processed()
adata.obs   = adata.obs.astype( {'batch' :  'category'})
axes_plot = bc.pl.celllabel_quant_stackedbar(adata, count_variable = 'leiden', subset_variable = 'donor')
fig = axes_plot.get_figure()
fig.set_figwidth(15)

You would still use the function, and then get back the figure as a matplotlib object to be able to modify its size.
( fig.set_size_inches(x,y) would also be a possibility)
Best
Alice

@hatjek hatjek added the enhancement New feature or request label Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants