You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...the rest of the program tells the plotting library how large we want the figure to be, that we’re creating three subplots, what to draw for each one, and that we want a tight layout. (If we leave out that call to fig.tight_layout(), the graphs will actually be squeezed together more closely.)
The bolded portion of the sentence above could be a little confusing for the learner for two reasons.
Stating that the command fig.tight_layout() makes the subplots have a tight layout doesn't provide learners an understanding of what the command is really doing.
After the claim "we want a tight layout", we state that if we exclude this command, the graphs would be squeezed tighter together. This could confuse the learner because this is technically what we said would happen if we use the command (i.e. a tight layout).
I suggest rewriting this bolded section above as follows:
...and that we want to adjust the subplot's parameters (extents of ticklabels, axis labels, and titles) so that the subplots fit the figure area.
Or if that is too much accessory information, we could say more simply:
...and that the subplots fit the figure area.
The second option may be more well suited for learners to avoid cognitive overload. This is a really small detail, but I think it could reduce possible confusion for future learners. For reference, I got my information about the tigh_layout function from the matplotlib documentation website. Let me know what you all think. I am will to do a pull request if you all think this should be changed. Thank you all for your time!
All the best,
Luke
The text was updated successfully, but these errors were encountered:
Hi Luke. I agree with your concern and suggestions. I think that the wording for .tight_layout() shouldn't be very thorough because for our purposes this is a matplotlib's quirk rather than a programming principle, so I think a shorter description would be better (e.g., "that the subplots better fit the figure area" or "subplots are better placed in the figure area").
In the third episode, Visualizing Tabular Data, it states in subsection Grouping Plots:
The bolded portion of the sentence above could be a little confusing for the learner for two reasons.
I suggest rewriting this bolded section above as follows:
Or if that is too much accessory information, we could say more simply:
The second option may be more well suited for learners to avoid cognitive overload. This is a really small detail, but I think it could reduce possible confusion for future learners. For reference, I got my information about the tigh_layout function from the matplotlib documentation website. Let me know what you all think. I am will to do a pull request if you all think this should be changed. Thank you all for your time!
All the best,
Luke
The text was updated successfully, but these errors were encountered: