Skip to content

[DRAFT][DANGER] Reworked pyplot usage + formatting + code readability#2

Open
AlexanderButyaev wants to merge 3 commits into
jwbear:mainfrom
AlexanderButyaev:main
Open

[DRAFT][DANGER] Reworked pyplot usage + formatting + code readability#2
AlexanderButyaev wants to merge 3 commits into
jwbear:mainfrom
AlexanderButyaev:main

Conversation

@AlexanderButyaev
Copy link
Copy Markdown

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