2 ms·
fig, ax = plt.subplots() then make calls on the Figure and Axes objects. https://matplotlib.org/stable/api/index.html#usage-patterns https://matplotlib.org/st
by wswope 5y ago
fig, ax = plt.subplots()
then make calls on the Figure and Axes objects.
https://matplotlib.org/stable/api/index.html#usage-patterns https://matplotlib.org/stable/api/index.html#usage-patterns
- amelius 5y agoBut note that, while it doesn't expose global state, it is still not thread-safe. The documentation only says that it "may work" and that there are specific things that will certainly crash when used from different threads. https://matplotlib.org/stable/faq/howto_faq.html https://matplotlib.org/stable/faq/howto_faq.html