Open jdkent opened 4 years ago
Hi @jdkent , I see the point you are making about the convention in matplotlib
to use ax
or axs
vs. axes
to clarify if the variable holds a single axes or a collection of them. In the context of the example above, however, I don't think the change does much to clarify for new learners some of the points that @maxim-belkin brought up, such as why do we call it axes1
(or ax1
) and not subplot1
. I personally would not be opposed to the change you propose, since it is the convention and slightly less typing, however I don't think it alone would make a big difference for our learners who are at this point perhaps not thinking about axes being 1 or possibly more axes. Perhaps others would like to share their thoughts. Thank you for proposing this, James!
Motivated by @maxim-belkin's comment and the subplot documentation (look at the
Returns:
section), there appears to be low hanging fruit to help improve understanding and be closer to what is recommended in "real world" use.for this section, instead of using
axes1
,axes2
, etc., we could useax1
,ax2
, etc. since each variable points to a singleAxes
instance.Current code:
Proposed Change:
There are several locations where this would need to be changed as well. Let me know your thoughts!