soraraso42 / learning-journal

0 stars 0 forks source link

2023-08-13 004 the documentation for marplotlib is good beyond belief #4

Open soraraso42 opened 1 year ago

soraraso42 commented 1 year ago

Did not follow the instructor's waxing poetry on global vs oop subplotting but the official documentation is pleasantly clear. Those data-figure heavy graphs in scientific papers these days always have subplot and this is now it's done. the entire figure is returned as an object and the subplots are returned as an array of object that you can later use to plot on. pyplot.subplots https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.subplots.html

one letter apart but so different in utility pyplot.subplot
https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.subplot.html#matplotlib.pyplot.subplot

alas, everyone from opening teaching resources to official documentation assumes one knows what an Axes, which in fact is a custom term, means. It means subplot but you will not know without inference from context. Not to mention people use it for the plural of axis...