Skip to content

Conversation

@AlexanderButyaev
Copy link

A lot of plot generation around the idea that pyplot should not be used directly - always create a figure, push it through renderer (FigureCanvasAgg), save it and later close/delete. When working with seaborn - add "thread safe"(ish) axis inside for it not to call plt stuff and mess up things.

In addition, removed block

import matplotlib
matplotlib.use("Agg")

as it could mix context with qtAGG backend (unlikely, but possible?)

!!! ATTENTION: PLOT_LOCK is missing in this version - add if works.

I had Black formatter on... sorry 🫤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant