Re: [Matplotlib-users] Backend Agg - problem!

2008-02-15 Thread Alan G Isaac
On Thu, 14 Feb 2008, John Hunter apparently wrote: > 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. Got it. So ``show`` is a no-op with irrelevant backends. Just to repeat: the documentat

Re: [Matplotlib-users] Backend Agg - problem!

2008-02-14 Thread John Hunter
On Thu, Feb 14, 2008 at 9:17 AM, Alan G Isaac <[EMAIL PROTECTED]> wrote: > On Thu, 14 Feb 2008, John Hunter apparently wrote: > > import numpy as np > > import matplotlib > > matplotlib.use('Agg') > > import matplotlib.pyplot as plt ...snip > > fig.savefig('myplot.png', dpi=100) > > plt.show(

Re: [Matplotlib-users] Backend Agg - problem!

2008-02-14 Thread Alan G Isaac
On Thu, 14 Feb 2008, John Hunter apparently wrote: > import numpy as np > import matplotlib > matplotlib.use('Agg') > import matplotlib.pyplot as plt > x, y = np.random.rand(2,100) > fig = plt.figure() > ax = fig.add_subplot(111) > ax.plot(x, y, marker='o', linestyle='', markerfacecolor='green')

Re: [Matplotlib-users] Backend Agg - problem!

2008-02-14 Thread Alan G Isaac
On Thu, 14 Feb 2008, someone wrote: > I want to draw an xy-plot using the " Backend Agg " of matplotlib. http://matplotlib.sourceforge.net/leftwich_tut.txt> hth, Alan Isaac - This SF.net email is sponsored by: Microsoft

Re: [Matplotlib-users] Backend Agg - problem!

2008-02-14 Thread John Hunter
On Thu, Feb 14, 2008 at 5:26 AM, sa6113 <[EMAIL PROTECTED]> wrote: > I want to draw an xy-plot using the " Backend Agg " of matplotlib. > But I don't know how I must start ... > > Would you plz help me or send me an example code ?? import numpy as np import matplotlib matplotlib.use('Agg') imp

[Matplotlib-users] Backend Agg - problem!

2008-02-14 Thread sa6113
I want to draw an xy-plot using the " Backend Agg " of matplotlib. But I don't know how I must start ... Would you plz help me or send me an example code ?? -- View this message in context: http://www.nabble.com/Backend-Agg---problem%21-tp15478464p15478464.html Sent from the matplotlib - users