Re: [matplotlib-devel] zorder for contours

2010-01-28 Thread Ryan May
On Thu, Jan 28, 2010 at 1:03 PM, Eric Firing wrote: > Ryan May wrote: >> Unless I completely misunderstand zorder, the contour should be *on >> top* of the rectangle.  Also note that printing the zorder for the >> contour's collection (a LineCollection object) gives a value of 2, >> even though th

Re: [matplotlib-devel] zorder for contours

2010-01-28 Thread Eric Firing
Ryan May wrote: > Hi, > > I was shown a bug today by a colleague, demonstrated by the following example: > > import numpy as np > import matplotlib.pyplot as plt > > a = np.zeros([10, 10]) > a[2:6,3:8] = 1 > ls = plt.contour(a, 1, colors='r', linewidths=3, zorder=5) > print ls.collections[0]l.ge

[matplotlib-devel] zorder for contours

2010-01-28 Thread Ryan May
Hi, I was shown a bug today by a colleague, demonstrated by the following example: import numpy as np import matplotlib.pyplot as plt a = np.zeros([10, 10]) a[2:6,3:8] = 1 ls = plt.contour(a, 1, colors='r', linewidths=3, zorder=5) print ls.collections[0]l.get_zorder() rect = plt.Rectangle([2, 3]