Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6d3518a

Browse files
committed
PEP8
1 parent 2d2a126 commit 6d3518a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/image.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def draw(self, renderer, *args, **kwargs):
406406
gc.set_gid(self.get_gid())
407407

408408
if (self._check_unsampled_image(renderer) and
409-
self.get_transform().is_affine):
409+
self.get_transform().is_affine):
410410
self._draw_unsampled_image(renderer, gc)
411411
else:
412412
im, l, b, trans = self.make_image(
@@ -640,7 +640,7 @@ def _check_unsampled_image(self, renderer):
640640
return True if the image is better to be drawn unsampled.
641641
"""
642642
if (self.get_interpolation() == "none" and
643-
renderer.option_scale_image()):
643+
renderer.option_scale_image()):
644644
return True
645645

646646
return False
@@ -687,7 +687,7 @@ def get_cursor_data(self, event):
687687
data_extent = Bbox([[ymin, xmin], [ymax, xmax]])
688688
array_extent = Bbox([[0, 0], arr.shape[:2]])
689689
trans = BboxTransform(boxin=data_extent,
690-
boxout=array_extent)
690+
boxout=array_extent)
691691
y, x = event.ydata, event.xdata
692692
i, j = trans.transform_point([y, x]).astype(int)
693693
# Clip the coordinates at array bounds

0 commit comments

Comments
 (0)