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

Skip to content

Commit 984146e

Browse files
committed
STY : white space cleanup in backend_wx
1 parent 2ac9d7b commit 984146e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lib/matplotlib/backends/backend_wx.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -560,10 +560,12 @@ def set_linewidth(self, w):
560560
"""
561561
DEBUG_MSG("set_linewidth()", 1, self)
562562
self.select()
563-
if w>0 and w<1: w = 1
563+
if w > 0 and w < 1:
564+
w = 1
564565
GraphicsContextBase.set_linewidth(self, w)
565566
lw = int(self.renderer.points_to_pixels(self._linewidth))
566-
if lw==0: lw = 1
567+
if lw == 0:
568+
lw = 1
567569
self._pen.SetWidth(lw)
568570
self.gfx_ctx.SetPen(self._pen)
569571
self.unselect()
@@ -789,12 +791,12 @@ def draw_idle(self):
789791
"""
790792
DEBUG_MSG("draw_idle()", 1, self)
791793
self._isDrawn = False # Force redraw
792-
794+
793795
# Triggering a paint event is all that is needed to defer drawing
794796
# until later. The platform will send the event when it thinks it is
795797
# a good time (usually as soon as there are no other events pending).
796798
self.Refresh(eraseBackground=False)
797-
799+
798800
def draw(self, drawDC=None):
799801
"""
800802
Render the figure using RendererWx instance renderer, or using a
@@ -1739,7 +1741,7 @@ def draw_rubberband(self, event, x0, y0, x1, y1):
17391741
color.Set(r,g,b, 0x60)
17401742
dc.SetBrush(wx.Brush(color))
17411743
dc.DrawRectangleRect(rect)
1742-
1744+
17431745

17441746
def set_status_bar(self, statbar):
17451747
self.statbar = statbar

0 commit comments

Comments
 (0)