Closed phil-blain closed 2 years ago
In the "Shared colorbars" section, there is this note: https://github.com/ProjectPythia/pythia-foundations/blob/9c3a75be8dffce205c714674942d7ec9323bdd92/core/matplotlib/annotations-colorbars-layouts.ipynb?short_path=ac96277#L418-L429
I think this is slightly misleading, as hist1[3] is not "subplot syntax"', as hist1 is a tuple returned by hist2d and hist1[3] is a matplotlib.collections.QuadMesh (cf https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.hist2d.html).
hist1[3]
hist1
hist2d
matplotlib.collections.QuadMesh
This was a little confusing to me when I read it.
In the "Shared colorbars" section, there is this note: https://github.com/ProjectPythia/pythia-foundations/blob/9c3a75be8dffce205c714674942d7ec9323bdd92/core/matplotlib/annotations-colorbars-layouts.ipynb?short_path=ac96277#L418-L429
I think this is slightly misleading, as
hist1[3]
is not "subplot syntax"', ashist1
is a tuple returned byhist2d
andhist1[3]
is amatplotlib.collections.QuadMesh
(cf https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.hist2d.html).This was a little confusing to me when I read it.