8000 FLK8 · matplotlib/matplotlib@58ce742 · GitHub
[go: up one dir, main page]

Skip to content

Commit 58ce742

Browse files
committed
FLK8
1 parent 8bc8d91 commit 58ce742

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

examples/images_contours_and_fields/pcolormesh_levels.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
np.random.seed(19680801)
2626
Z = np.random.rand(6, 10)
27-
x = np.arange(-0.5, 10, 1) # len = 11
27+
x = np.arange(-0.5, 10, 1) # len = 11
2828
y = np.arange(4.5, 11, 1) # len = 7
2929

3030
fig, ax = plt.subplots()
@@ -37,7 +37,7 @@
3737
# Note that we can also specify matrices for *X* and *Y* and have
3838
# non-rectilinear quadrilaterals.
3939

40-
x = np.arange(-0.5, 10, 1) # len = 11
40+
x = np.arange(-0.5, 10, 1) # len = 11
4141
y = np.arange(4.5, 11, 1) # len = 7
4242
X, Y = np.meshgrid(x, y)
4343
X = X + 0.2 * Y # tilt the co-ordinates.
@@ -56,7 +56,7 @@
5656
# ``dropdata=True`` assume the user wanted *X* and *Y* centered on the
5757
# quadrilateral and linearly interpolate to get the edges.
5858

59-
x = np.arange(10) # len = 10
59+
x = np.arange(10) # len = 10
6060
y = np.arange(6) # len = 6
6161
X, Y = np.meshgrid(x, y)
6262

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5663,7 +5663,7 @@ def _pcolorargs(funcname, *args, allmatch=False, dropdata=True):
56635663
C.shape, Nx, Ny, funcname))
56645664

56655665
if dropdata:
5666-
C = C[:Ny - 1, :Nx - 1]
5666+
C = C[:Ny - 1, :Nx - 1]
56675667
else:
56685668
def _interp_grid(X):
56695669
# helper for below
@@ -5777,7 +5777,6 @@ def pcolor(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
57775777
of the quadrilaterals, and their edges calculated by linear
57785778
interpolation.
57795779
5780-
57815780
Returns
57825781
-------
57835782
collection : `matplotlib.collections.Collection`

0 commit comments

Comments
 (0)
0