@@ -233,21 +233,15 @@ class AxisArtistHelperRectlinear(object):
233
233
234
234
class Fixed (AxisArtistHelper .Fixed ):
235
235
236
- def __init__ (self ,
237
- axes , loc , nth_coord = None ,
238
- ):
236
+ def __init__ (self , axes , loc , nth_coord = None ):
239
237
"""
240
238
nth_coord = along which coordinate value varies
241
239
in 2d, nth_coord = 0 -> x axis, nth_coord = 1 -> y axis
242
240
"""
243
-
244
- super (AxisArtistHelperRectlinear .Fixed , self ).__init__ ( \
245
- loc , nth_coord )
246
-
241
+ super (AxisArtistHelperRectlinear .Fixed , self ).__init__ (
242
+ loc , nth_coord )
247
243
self .axis = [axes .xaxis , axes .yaxis ][self .nth_coord ]
248
244
249
-
250
-
251
245
# TICK
252
246
253
247
def get_tick_iterators (self , axes ):
@@ -293,14 +287,11 @@ def _f(locs, labels):
293
287
class Floating (AxisArtistHelper .Floating ):
294
288
def __init__ (self , axes , nth_coord ,
295
289
passingthrough_point , axis_direction = "bottom" ):
296
-
297
- super (AxisArtistHelperRectlinear .Floating , self ).__init__ ( \
290
+ super (AxisArtistHelperRectlinear .Floating , self ).__init__ (
298
291
nth_coord , passingthrough_point )
299
292
self ._axis_direction = axis_direction
300
-
301
293
self .axis = [axes .xaxis , axes .yaxis ][self .nth_coord ]
302
294
303
-
304
295
def get_line (self , axes ):
305
296
_verts = np .array ([[0. , 0. ],
306
297
[1. , 1. ]])
@@ -498,13 +489,14 @@ def new_floating_axis(self, nth_coord, value,
498
489
):
499
490
500
491
if axes is None :
501
- warnings .warn ("'new_floating_axis' explicitly requires the axes keyword." )
492
+ warnings .warn (
493
+ "'new_floating_axis' explicitly requires the axes keyword." )
502
494
axes = self .axes
503
495
504
496
passthrough_point = (value , value )
505
497
transform = axes .transData
506
498
507
- _helper = AxisArtistHelperRectlinear .Floating ( \
499
+ _helper = AxisArtistHelperRectlinear .Floating (
508
500
axes , nth_coord , value , axis_direction )
509
501
510
502
axisline = AxisArtist (axes , _helper )
0 commit comments