CGATOxford / UMI-tools

Tools for handling Unique Molecular Identifiers in NGS data sets
MIT License
491 stars 190 forks source link

change back to original matplotlib backend #640

Closed sshen8 closed 6 months ago

sshen8 commented 7 months ago

When using the UMI-tools API only, I noticed it switches my Matplotlib backend to Agg, which messes with the plots I generate downstream. This PR changes the backend only when generating plots and then switches back to the user's original setting

TomSmithCGAT commented 7 months ago

Thank you @sshen8. This looks like how I should have implemented it in the first place!

@IanSudbery - I'll merge this once tests pass.

sshen8 commented 6 months ago

Yeah that's a good idea! I've just made the change, thanks for thinking of it

IanSudbery commented 6 months ago

@TomSmithCGAT Happy once the tests complete.