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

Skip to content

Commit 790d349

Browse files
committed
lint
1 parent ccaf756 commit 790d349

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

lib/matplotlib/widgets.py

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -424,13 +424,21 @@ def __init__(self, ax, label, valmin, valmax, valinit=0.5, valfmt=None,
424424
self.val = valinit
425425
self.valinit = valinit
426426
if orientation == 'vertical':
427-
self.track = Rectangle((.25, 0), .5, 1, transform=ax.transAxes, facecolor=track_color)
427+
self.track = Rectangle(
428+
(.25, 0), .5, 1,
429+
transform=ax.transAxes,
430+
facecolor=track_color
431+
)
428432
ax.add_patch(self.track)
429433
self.poly = ax.axhspan(valmin, valinit, .25, .75, **kwargs)
430434
self.hline = ax.axhline(valinit, .25, .75, color=initcolor, lw=1)
431435
handleXY = [[0.5], [valinit]]
432436
else:
433-
self.track = Rectangle((0, .25), 1, .5, transform=ax.transAxes, facecolor=track_color)
437+
self.track = Rectangle(
438+
(0, .25), 1, .5,
439+
transform=ax.transAxes,
440+
facecolor=track_color
441+
)
434442
ax.add_patch(self.track)
435443
self.poly = ax.axvspan(valmin, valinit, .25, .75, **kwargs)
436444
self.vline = ax.axvline(valinit, .25, .75, color=initcolor, lw=1)
@@ -689,19 +697,21 @@ def __init__(
689697
self.val = valinit
690698
self.valinit = valinit
691699
if orientation == "vertical":
692-
self.track = Rectangle((.25, 0), .5, 2,
693-
transform=ax.transAxes,
694-
facecolor=track_color
695-
)
700+
self.track = Rectangle(
701+
(.25, 0), .5, 2,
702+
transform=ax.transAxes,
703+
facecolor=track_color
704+
)
696705
ax.add_patch(self.track)
697706
self.poly = ax.axhspan(valinit[0], valinit[1], 0, 1, **kwargs)
698707
handleXY_1 = [.5, valinit[0]]
699708
handleXY_2 = [.5, valinit[1]]
700709
else:
701-
self.track = Rectangle((0, .25), 1, .5,
702-
transform=ax.transAxes,
703-
facecolor=track_color
704-
)
710+
self.track = Rectangle(
711+
(0, .25), 1, .5,
712+
transform=ax.transAxes,
713+
facecolor=track_color
714+
)
705715
ax.add_patch(self.track)
706716
self.poly = ax.axvspan(valinit[0], valinit[1], 0, 1, **kwargs)
707717
handleXY_1 = [valinit[0], .5]

0 commit comments

Comments
 (0)