How to set the figure width and height for the output figure?

Dear Scanpy communities,

I am still not familiar with plotting figures with python, I am wondering how to set the figure width and height for the output figure?? (Searched through Internet)
Like in R, you can easily set it as pdf(“xxx.pdf”,width = ,height =)

Thanks,

Hi Lesdormis,

You could look into the following: sc.settings.set_figure_params
https://scanpy.readthedocs.io/en/stable/generated/scanpy.set_figure_params.html

Best regards,
Peter