@@ -292,6 +292,7 @@ def convert_path_array(path_array):
292
292
else :
293
293
return symbols
294
294
295
+
295
296
def convert_linewidth_array (width_array ):
296
297
if len (width_array ) == 1 :
297
298
return width_array [0 ]
@@ -308,7 +309,7 @@ def convert_size_array(size_array):
308
309
309
310
310
311
def get_markerstyle_from_collection (props ):
311
- markerstyle = dict (
312
+ markerstyle = dict (
312
313
alpha = None ,
313
314
facecolor = convert_rgba_array (props ['styles' ]['facecolor' ]),
314
315
marker = convert_path_array (props ['paths' ]),
@@ -339,6 +340,7 @@ def get_rect_ymax(data):
339
340
"""Find maximum y value from four (x,y) vertices."""
340
341
return max (data [0 ][1 ], data [1 ][1 ], data [2 ][1 ], data [3 ][1 ])
341
342
343
+
342
344
def get_spine_visible (ax , spine_key ):
343
345
"""Return some spine parameters for the spine, `spine_key`."""
344
346
spine = ax .spines [spine_key ]
@@ -393,6 +395,7 @@ def make_bar(**props):
393
395
'zorder' : props ['style' ]['zorder' ]
394
396
}
395
397
398
+
396
399
def prep_ticks (ax , index , ax_type , props ):
397
400
"""Prepare axis obj belonging to axes obj.
398
401
@@ -444,10 +447,10 @@ def prep_ticks(ax, index, ax_type, props):
444
447
if base == 10 :
445
448
if ax_type == 'x' :
446
449
axis_dict ['range' ] = [math .log10 (props ['xlim' ][0 ]),
447
- math .log10 (props ['xlim' ][1 ])]
450
+ math .log10 (props ['xlim' ][1 ])]
448
451
elif ax_type == 'y' :
449
452
axis_dict ['range' ] = [math .log10 (props ['ylim' ][0 ]),
450
- math .log10 (props ['ylim' ][1 ])]
453
+ math .log10 (props ['ylim' ][1 ])]
451
454
else :
452
455
axis_dict = dict (range = None , type = 'linear' )
453
456
warnings .warn ("Converted non-base10 {0}-axis log scale to 'linear'"
0 commit comments