3 ms·
Figures and axis is the OOP interface, and what I always recommend. Pyplot is a global namespace procedural interface similar to matlab. If you find an example
by santiagobasulto 4y ago
Figures and axis is the OOP interface, and what I always recommend.
Pyplot is a global namespace procedural interface similar to matlab. If you find an example online using pyplot, it’s easy to find the axis. counterpart. For example, plt.title() becomes axis.set_title().
Axes and Figure reference API docs are very good.
- jbay808 4y ago> Figures and axis is the OOP interface, and what I always recommend. No doubt, but half the time when I am looking online for how to do something off the beaten path, I find a documentation page or stackoverflow answer that (only) uses the other interface, and I have to flail about for a while to come up with the OOP equivalent.
- squaresmile 4y agoYep, I think the reference documentation is quite good. I always direct people to the quick start [0] and then look at the examples [1] to see how things are done. All examples have the plots and self-contained scripts so it's intuitive to search for what you want even if it's hard to describe or google. [0] https://matplotlib.org/stable/tutorials/introductory/quick_start.html https://matplotlib.org/stable/tutorials/introductory/quick_s... [1] https://matplotlib.org/stable/gallery/index.html https://matplotlib.org/stable/gallery/index.html