DOC: add a couple plt.close('all') to avoid warning
DOC: fix warning + some stylistic corrections
Merge pull request #5980 from jorisvandenbossche/doc-plot-warning

DOC: add a couple plt.close('all') to avoid warning