Skip to content

Commit bcea738

Browse files
committed
Fixup some variable naming
1 parent 4dd3de1 commit bcea738

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

lib/matplotlib/axes.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2729,7 +2729,7 @@ def set_yticks(self, ticks, minor=False):
27292729

27302730
def get_ymajorticklabels(self):
27312731
"""
2732-
Get the major y tick labels as a list of
2732+
Get the major y tick labels as a list of
27332733
:class:`~matplotlib.text.Text` instances.
27342734
"""
27352735
return cbook.silent_list('Text yticklabel',
@@ -5207,7 +5207,7 @@ def errorbar(self, x, y, yerr=None, xerr=None,
52075207
only upper/lower limits. In that case a caret symbol is
52085208
used to indicate this. lims-arguments may be of the same
52095209
type as *xerr* and *yerr*.
5210-
5210+
52115211
*errorevery*: positive integer
52125212
subsamples the errorbars. Eg if everyerror=5, errorbars for every
52135213
5-th datapoint will be plotted. The data plot itself still shows
@@ -5361,7 +5361,7 @@ def xywhere(xs, ys, mask):
53615361
leftlo, ylo = xywhere(left, y, xlolims & everymask)
53625362
caplines.extend( self.plot(leftlo, ylo, 'k|', **plot_kw) )
53635363
else:
5364-
5364+
53655365
leftlo, ylo = xywhere(left, y, everymask)
53665366
caplines.extend( self.plot(leftlo, ylo, 'k|', **plot_kw) )
53675367

@@ -6175,9 +6175,6 @@ def hexbin(self, x, y, C = None, gridsize = 100, bins = None,
61756175
lattice1.astype(float).ravel(), lattice2.astype(float).ravel()))
61766176
good_idxs = ~np.isnan(accum)
61776177

6178-
px = sx * np.array([ 0.5, 0.5, 0.0, -0.5, -0.5, 0.0])
6179-
py = sy * np.array([-0.5, 0.5, 1.0, 0.5, -0.5, -1.0]) / 3.0
6180-
61816178
offsets = np.zeros((n, 2), float)
61826179
offsets[:nx1*ny1,0] = np.repeat(np.arange(nx1), ny1)
61836180
offsets[:nx1*ny1,1] = np.tile(np.arange(ny1), nx1)
@@ -6202,15 +6199,15 @@ def hexbin(self, x, y, C = None, gridsize = 100, bins = None,
62026199
ymax = 10**ymax
62036200
self.set_yscale('log')
62046201

6205-
polygons = np.zeros((6, 2), float)
6206-
polygons[:,0] = px
6207-
polygons[:,1] = py
6202+
polygon = np.zeros((6, 2), float)
6203+
polygon[:,0] = sx * np.array([ 0.5, 0.5, 0.0, -0.5, -0.5, 0.0])
6204+
polygon[:,1] = sy * np.array([-0.5, 0.5, 1.0, 0.5, -0.5, -1.0]) / 3.0
62086205

62096206
if edgecolors=='none':
62106207
edgecolors = 'face'
62116208

62126209
collection = mcoll.PolyCollection(
6213-
[polygons],
6210+
[polygon],
62146211
edgecolors = edgecolors,
62156212
linewidths = linewidths,
62166213
offsets = offsets,

0 commit comments

Comments
 (0)