Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit126838c

Browse files
committed
FLK8
1 parent71fc333 commit126838c

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
@@ -5667,7 +5667,7 @@ def _pcolorargs(funcname, *args, allmatch=False, dropdata=True):
56675667
C.shape,Nx,Ny,funcname))
56685668

56695669
ifdropdata:
5670-
C=C[:Ny-1, :Nx-1]
5670+
C=C[:Ny-1, :Nx-1]
56715671
else:
56725672
def_interp_grid(X):
56735673
# helper for below
@@ -5781,7 +5781,6 @@ def pcolor(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
57815781
of the quadrilaterals, and their edges calculated by linear
57825782
interpolation.
57835783
5784-
57855784
Returns
57865785
-------
57875786
collection : `matplotlib.collections.Collection`

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp