@@ -59,9 +59,13 @@ def __init__(self, dpi):
5959 def draw_path (self , gc , path , transform , rgbFace = None ):
6060
6161 if rgbFace is not None :
62- color = tuple ([int (val * 255 ) for i , val in enumerate (rgbFace ) if i < 3 ])
62+ color = tuple ([
63+ int (val * 255 ) for i , val in enumerate (rgbFace ) if i < 3
64+ ])
6365 else :
64- color = tuple ([int (val * 255 ) for i , val in enumerate (gc .get_rgb ()) if i < 3 ])
66+ color = tuple ([
67+ int (val * 255 ) for i , val in enumerate (gc .get_rgb ()) if i < 3
68+ ])
6569
6670 linewidth = int (gc .get_linewidth ())
6771
@@ -91,7 +95,9 @@ def draw_path(self, gc, path, transform, rgbFace=None):
9195 poly_points .append (point )
9296 elif code == Path .CURVE3 or code == Path .CURVE4 :
9397 end_point = point [2 :]
94- points_curve = np .concatenate ((previous_point , point )).reshape ((- 1 , 2 ))
98+ points_curve = np .concatenate (
99+ (previous_point , point )
100+ ).reshape ((- 1 , 2 ))
95101 gfxdraw .bezier (
96102 self .surface , points_curve , len (points_curve ), color
97103 )
@@ -186,9 +192,9 @@ def points_to_pixels(self, points):
186192 # points are pixels in pygame
187193 return points
188194 # elif backend assumes a value for pixels_per_inch
189- #return points/72.0 * self.dpi.get() * pixels_per_inch/72.0
195+ # return points/72.0 * self.dpi.get() * pixels_per_inch/72.0
190196 # else
191- #return points/72.0 * self.dpi.get()
197+ # return points/72.0 * self.dpi.get()
192198
193199
194200class GraphicsContextPygame (GraphicsContextBase ):
@@ -240,7 +246,6 @@ def show(*, block=None):
240246 manager .show ()
241247
242248
243-
244249def new_figure_manager (num , * args , FigureClass = FigureSurface , ** kwargs ):
245250 """Create a new figure manager instance."""
246251 # If a main-level app must be created, this (and
0 commit comments