On Thu, Feb 14, 2008 at 9:17 AM, Alan G Isaac <aisaac@...> wrote:
> On Thu, 14 Feb 2008, John Hunter apparently wrote:
> > import numpy as np
> > import matplotlib
> > matplotlib.use('Agg')
> > import matplotlib.pyplot as plt
> > fig.savefig('myplot.png', dpi=100)
> > plt.show()
> Does that ``show`` command have any effect?
> (I know the effect for TkAgg.)
> I tried clicking the ``show`` help at
In this case no, since we are using an image backend. But if we want
the script to be robust in the presence of different use directives,
eg matplotlib.use('TkAgg') then it is good to have the show in there.