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

Appearance settings

Commit f1450f3

Browse filesBrowse files
committed
PEP8 fixes.
1 parent 588f0e2 commit f1450f3
Copy full SHA for f1450f3

File tree

Expand file treeCollapse file tree

2 files changed

+11
-11
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+11
-11
lines changed

‎lib/matplotlib/axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes.py
+10-10Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5443,7 +5443,7 @@ def errorbar(self, x, y, yerr=None, xerr=None,
54435443
lines_kw['transform'] = kwargs['transform']
54445444
if 'zorder' in kwargs:
54455445
lines_kw['zorder'] = kwargs['zorder']
5446-
5446+
54475447
# arrays fine here, they are booleans and hence not units
54485448
if not iterable(lolims):
54495449
lolims = np.asarray([lolims]*len(x), bool)
@@ -6442,28 +6442,28 @@ def hexbin(self, x, y, C = None, gridsize = 100, bins = None,
64426442
if xscale == 'log' or yscale == 'log':
64436443
polygons = np.expand_dims(polygon, 0) + np.expand_dims(offsets, 1)
64446444
if xscale == 'log':
6445-
polygons[:,:,0] = 10.0 ** polygons[:,:,0]
6445+
polygons[:, :, 0] = 10.0 ** polygons[:, :, 0]
64466446
xmin = 10.0 ** xmin
64476447
xmax = 10.0 ** xmax
64486448
self.set_xscale(xscale)
64496449
if yscale == 'log':
6450-
polygons[:,:,1] = 10.0 ** polygons[:,:,1]
6450+
polygons[:, :, 1] = 10.0 ** polygons[:, :, 1]
64516451
ymin = 10.0 ** ymin
64526452
ymax = 10.0 ** ymax
64536453
self.set_yscale(yscale)
64546454
collection = mcoll.PolyCollection(
64556455
polygons,
6456-
edgecolors = edgecolors,
6457-
linewidths = linewidths,
6456+
edgecolors=edgecolors,
6457+
linewidths=linewidths,
64586458
)
64596459
else:
64606460
collection = mcoll.PolyCollection(
64616461
[polygon],
6462-
edgecolors = edgecolors,
6463-
linewidths = linewidths,
6464-
offsets = offsets,
6465-
transOffset = mtransforms.IdentityTransform(),
6466-
offset_position = "data"
6462+
edgecolors=edgecolors,
6463+
linewidths=linewidths,
6464+
offsets=offsets,
6465+
transOffset=mtransforms.IdentityTransform(),
6466+
offset_position="data"
64676467
)
64686468

64696469
if isinstance(norm, mcolors.LogNorm):

‎lib/matplotlib/tests/test_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_axes.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def test_hexbin_log():
431431
y = 2.0 + 3.0 * x + 4.0 * np.random.standard_normal(n)
432432
y = np.power(2, y * 0.5)
433433
ax = fig.add_subplot(111)
434-
plt.hexbin(x,y,yscale='log')
434+
ax.hexbin(x, y, yscale='log')
435435

436436
@cleanup
437437
def test_inverted_limits():

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.