@@ -420,20 +420,20 @@ def get_matplotlib_linestyle(linestyle, return_type):
420
420
return None
421
421
422
422
if linestyle .startswith ("default" ):
423
- return get_matplotlib_linestyle (linestyle .strip ("default" ), "short" )
423
+ return get_matplotlib_linestyle (linestyle .removeprefix ("default" ), "short" )
424
424
elif linestyle .startswith ("steps" ):
425
425
if linestyle .startswith ("steps-mid" ):
426
426
return "steps-mid" + get_matplotlib_linestyle (
427
- linestyle .strip ("steps-mid" ), "short" )
427
+ linestyle .removeprefix ("steps-mid" ), "short" )
428
428
elif linestyle .startswith ("steps-post" ):
429
429
return "steps-post" + get_matplotlib_linestyle (
430
- linestyle .strip ("steps-post" ), "short" )
430
+ linestyle .removeprefix ("steps-post" ), "short" )
431
431
elif linestyle .startswith ("steps-pre" ):
432
432
return "steps-pre" + get_matplotlib_linestyle (
433
- linestyle .strip ("steps-pre" ), "short" )
433
+ linestyle .removeprefix ("steps-pre" ), "short" )
434
434
else :
435
435
return "steps" + get_matplotlib_linestyle (
436
- linestyle .strip ("steps" ), "short" )
436
+ linestyle .removeprefix ("steps" ), "short" )
437
437
438
438
if return_type == 'short' :
439
439
if linestyle in short_to_long_dict .keys ():
0 commit comments