@@ -3466,28 +3466,6 @@ def transmute(self, path, mutation_size, linewidth):
3466
3466
3467
3467
return p , False
3468
3468
3469
- @_register_style (_style_list , name = "]-[" )
3470
- class BracketAB (_Bracket ):
3471
- """An arrow with outward square brackets at both ends."""
3472
-
3473
- def __init__ (self ,
3474
- widthA = 1. , lengthA = 0.2 , angleA = 0 ,
3475
- widthB = 1. , lengthB = 0.2 , angleB = 0 ):
3476
- """
3477
- Parameters
3478
- ----------
3479
- widthA, widthB : float, default: 1.0
3480
- Width of the bracket.
3481
- lengthA, lengthB : float, default: 0.2
3482
- Length of the bracket.
3483
- angleA, angleB : float, default: 0 degrees
3484
- Orientation of the bracket, as a counterclockwise angle.
3485
- 0 degrees means perpendicular to the line.
3486
- """
3487
- super ().__init__ (True , True ,
3488
- widthA = widthA , lengthA = lengthA , angleA = angleA ,
3489
- widthB = widthB , lengthB = lengthB , angleB = angleB )
3490
-
3491
3469
@_register_style (_style_list , name = "]-" )
3492
3470
class BracketA (_Bracket ):
3493
3471
"""An arrow with an outward square bracket at its start."""
@@ -3526,6 +3504,28 @@ def __init__(self, widthB=1., lengthB=0.2, angleB=None):
3526
3504
super ().__init__ (None , True ,
3527
3505
widthB = widthB , lengthB = lengthB , angleB = angleB )
3528
3506
3507
+ @_register_style (_style_list , name = "]-[" )
3508
+ class BracketAB (_Bracket ):
3509
+ """An arrow with outward square brackets at both ends."""
3510
+
3511
+ def __init__ (self ,
3512
+ widthA = 1. , lengthA = 0.2 , angleA = 0 ,
3513
+ widthB = 1. , lengthB = 0.2 , angleB = 0 ):
3514
+ """
3515
+ Parameters
3516
+ ----------
3517
+ widthA, widthB : float, default: 1.0
3518
+ Width of the bracket.
3519
+ lengthA, lengthB : float, default: 0.2
3520
+ Length of the bracket.
3521
+ angleA, angleB : float, default: 0 degrees
3522
+ Orientation of the bracket, as a counterclockwise angle.
3523
+ 0 degrees means perpendicular to the line.
3524
+ """
3525
+ super ().__init__ (True , True ,
3526
+ widthA = widthA , lengthA = lengthA , angleA = angleA ,
3527
+ widthB = widthB , lengthB = lengthB , angleB = angleB )
3528
+
3529
3529
@_register_style (_style_list , name = "|-|" )
3530
3530
class BarAB (_Bracket ):
3531
3531
"""An arrow with vertical bars ``|`` at both ends."""
0 commit comments