ProjectPythia / pythia-foundations

Jupyterbook source for the Foundations collection
http://foundations.projectpythia.org
Apache License 2.0
59 stars 42 forks source link

Issue on page /core/matplotlib/annotations-colorbars-layouts.html #275

Closed phil-blain closed 2 years ago

phil-blain commented 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).

This was a little confusing to me when I read it.