Skip to content

Unable to save plots as PDF when using cellcharter.pl.shape_metrics #99

@peipp410

Description

@peipp410

I am using the cellcharter.pl.shape_metrics function to generate shape metric plots from an AnnData object. The function successfully displays the plots in the active Matplotlib plotting context but does not provide a way to directly save the generated plots as a PDF file.

I also tried

with plt.rc_context():  # Use this to set figure params like size and dpi  
        cc.pl.shape_metrics...  
        plt.savefig('xxx.pdf', format='pdf')  

but it doesn't work.

So how to save this figure? Thank you for your time and support!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions