Matplotlib subplots vs axes vs axis (singular / plural)

Viewed 3825

Can you please clarify some Matplotlib terminology:

  • is the word "subplots" (or "subplot"?) synonymous to "axes"?
  • what are singulars / plurals of "axes" and "axis"?
3 Answers

Axes is just the plural form of axis. For example, x-axis and y-axis together can be called 2 axes or just axes. Subplots contain axes, for the most part. And a figure contains many subplots.

                      Figure
                        |
                        v
                ------------------
                |                |
                v                v
             Subplot1         Subplot2
                |                |
                v                v
               Axes             Axes
                |                |
                v                v
            ---------        -----------
            |       |        |         |
            v       v        v         v
          Axis1   Axis2    Axis1     Axis2                             
                         

Related