Re: [Matplotlib-users] Trouble with contour plot

2010-10-29 Thread Nikolaus Rath
Eric Firing writes: >> I don't know if there are any strict requirement on monotonicity for X >> and Y, or if there are any cases where the plot is still valid even if >> that property is violated. If it is a requirement, then I agree that >> there should be a check. > > For sensible output, it i

Re: [Matplotlib-users] Trouble with contour plot

2010-10-29 Thread Eric Firing
> I don't know if there are any strict requirement on monotonicity for X > and Y, or if there are any cases where the plot is still valid even if > that property is violated. If it is a requirement, then I agree that > there should be a check. For sensible output, it is a requirement. Contour a

Re: [Matplotlib-users] Trouble with contour plot

2010-10-29 Thread Benjamin Root
On Fri, Oct 29, 2010 at 12:25 PM, Nikolaus Rath wrote: > Benjamin Root writes: > >> However, it seems to me that this is quite a serious bug. The contour > >> documentation on > >> > >> > http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.contour > >> does not mention this

Re: [Matplotlib-users] Trouble with contour plot

2010-10-29 Thread Nikolaus Rath
Benjamin Root writes: >> However, it seems to me that this is quite a serious bug. The contour >> documentation on >> >> http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.contour >> does not mention this requirement, and obviously the contour method >> itself does not even b

Re: [Matplotlib-users] Trouble with contour plot

2010-10-29 Thread Benjamin Root
On Fri, Oct 29, 2010 at 7:44 AM, Nikolaus Rath wrote: > Benjamin Root writes: > > On Thu, Oct 28, 2010 at 3:31 PM, Nikolaus Rath < > nikolaus-bth8mxji...@public.gmane.org> wrote: > > > >> Hello, > >> > >> I'm having a weird problem with a contour plot. Consider the following > >> plots: > >> > >

Re: [Matplotlib-users] Trouble with contour plot

2010-10-29 Thread Nikolaus Rath
Benjamin Root writes: > On Thu, Oct 28, 2010 at 3:31 PM, Nikolaus Rath > wrote: > >> Hello, >> >> I'm having a weird problem with a contour plot. Consider the following >> plots: >> >> import cPickle as pickle >> import matplotlib.pyplot as plt >> (Theta, Phi, Bnormal) = pickle.load(open('troubl

Re: [Matplotlib-users] Trouble with contour plot

2010-10-28 Thread Benjamin Root
On Thu, Oct 28, 2010 at 3:31 PM, Nikolaus Rath wrote: > Hello, > > I'm having a weird problem with a contour plot. Consider the following > plots: > > import cPickle as pickle > import matplotlib.pyplot as plt > (Theta, Phi, Bnormal) = pickle.load(open('trouble.pickle', 'rb')) > plt.figure(0) > f

[Matplotlib-users] Trouble with contour plot

2010-10-28 Thread Nikolaus Rath
Hello, I'm having a weird problem with a contour plot. Consider the following plots: import cPickle as pickle import matplotlib.pyplot as plt (Theta, Phi, Bnormal) = pickle.load(open('trouble.pickle', 'rb')) plt.figure(0) for i in [0, 300]: plt.plot(Theta, Bnormal[:, i], label='Bnormal at Phi