Update Beginner Cheatsheet: fig.show → plt.show
camriddell opened this issue · 3 comments
In the beginner handout, there is a brief section on how to display a given plot
I wanted to start a small discussion on whether the call to fig.show()
should be replaced by plt.show
.
Since this is a beginner cheatsheet, the management of a blocking GUI loop is slightly out-of-scope. fig.show
does not manage this loop (whereas plt.show
does), new users may wonder why their plot disappears as quickly as it appears when using fig.show
.
I'm learning something here. I never noticed the difference but probably because I'm mostly using plt.show
(and I don't remember the reason for the fig.show
). Where is the difference in behavior documented ?
See the big warning box in https://matplotlib.org/stable/api/figure_api.html#matplotlib.figure.Figure.show
Thanks, it's quite visible actually. @camriddell Can yoiu make a PR?