@@ -3424,11 +3424,13 @@ class CurveA(_Curve):
3424
3424
3425
3425
def __init__ (self , head_length = .4 , head_width = .2 ):
3426
3426
"""
3427
- *head_length*
3428
- length of the arrow head
3427
+ Parameters
3428
+ ----------
3429
+ head_length : float, optional, default : 0.4
3430
+ Length of the arrow head
3429
3431
3430
- * head_width*
3431
- width of the arrow head
3432
+ head_width : float, optional, default : 0.2
3433
+ Width of the arrow head
3432
3434
"""
3433
3435
3434
3436
super (ArrowStyle .CurveA , self ).__init__ (
@@ -3444,11 +3446,13 @@ class CurveB(_Curve):
3444
3446
3445
3447
def __init__ (self , head_length = .4 , head_width = .2 ):
3446
3448
"""
3447
- *head_length*
3448
- length of the arrow head
3449
+ Parameters
3450
+ ----------
3451
+ head_length : float, optional, default : 0.4
3452
+ Length of the arrow head
3449
3453
3450
- * head_width*
3451
- width of the arrow head
3454
+ head_width : float, optional, default : 0.2
3455
+ Width of the arrow head
3452
3456
"""
3453
3457
3454
3458
super (ArrowStyle .CurveB , self ).__init__ (
@@ -3464,11 +3468,13 @@ class CurveAB(_Curve):
3464
3468
3465
3469
def __init__ (self , head_length = .4 , head_width = .2 ):
3466
3470
"""
3467
- *head_length*
3468
- length of the arrow head
3471
+ Parameters
3472
+ ----------
3473
+ head_length : float, optional, default : 0.4
3474
+ Length of the arrow head
3469
3475
3470
- * head_width*
3471
- width of the arrow head
3476
+ head_width : float, optional, default : 0.2
3477
+ Width of the arrow head
3472
3478
"""
3473
3479
3474
3480
super (ArrowStyle .CurveAB , self ).__init__ (
@@ -3484,11 +3490,13 @@ class CurveFilledA(_Curve):
3484
3490
3485
3491
def __init__ (self , head_length = .4 , head_width = .2 ):
3486
3492
"""
3487
- *head_length*
3488
- length of the arrow head
3493
+ Parameters
3494
+ ----------
3495
+ head_length : float, optional, default : 0.4
3496
+ Length of the arrow head
3489
3497
3490
- * head_width*
3491
- width of the arrow head
3498
+ head_width : float, optional, default : 0.2
3499
+ Width of the arrow head
3492
3500
"""
3493
3501
3494
3502
super (ArrowStyle .CurveFilledA , self ).__init__ (
@@ -3505,11 +3513,13 @@ class CurveFilledB(_Curve):
3505
3513
3506
3514
def __init__ (self , head_length = .4 , head_width = .2 ):
3507
3515
"""
3508
- *head_length*
3509
- length of the arrow head
3516
+ Parameters
3517
+ ----------
3518
+ head_length : float, optional, default : 0.4
3519
+ Length of the arrow head
3510
3520
3511
- * head_width*
3512
- width of the arrow head
3521
+ head_width : float, optional, default : 0.2
3522
+ Width of the arrow head
3513
3523
"""
3514
3524
3515
3525
super (ArrowStyle .CurveFilledB , self ).__init__ (
@@ -3521,17 +3531,18 @@ def __init__(self, head_length=.4, head_width=.2):
3521
3531
3522
3532
class CurveFilledAB (_Curve ):
3523
3533
"""
3524
- An arrow with filled triangle heads both at the begin and the end
3525
- point.
3534
+ An arrow with filled triangle heads at both ends.
3526
3535
"""
3527
3536
3528
3537
def __init__ (self , head_length = .4 , head_width = .2 ):
3529
3538
"""
3530
- *head_length*
3531
- length of the arrow head
3539
+ Parameters
3540
+ ----------
3541
+ head_length : float, optional, default : 0.4
3542
+ Length of the arrow head
3532
3543
3533
- * head_width*
3534
- width of the arrow head
3544
+ head_width : float, optional, default : 0.2
3545
+ Width of the arrow head
3535
3546
"""
3536
3547
3537
3548
super (ArrowStyle .CurveFilledAB , self ).__init__ (
@@ -3620,30 +3631,32 @@ def transmute(self, path, mutation_size, linewidth):
3620
3631
3621
3632
class BracketAB (_Bracket ):
3622
3633
"""
3623
- An arrow with a bracket(]) at both ends.
3634
+ An arrow with a bracket(]) at both ends.
3624
3635
"""
3625
3636
3626
3637
def __init__ (self ,
3627
3638
widthA = 1. , lengthA = 0.2 , angleA = None ,
3628
3639
widthB = 1. , lengthB = 0.2 , angleB = None ):
3629
3640
"""
3630
- *widthA*
3631
- width of the bracket
3641
+ Parameters
3642
+ ----------
3643
+ widthA : float, optional, default : 1.0
3644
+ Width of the bracket
3632
3645
3633
- * lengthA*
3634
- length of the bracket
3646
+ lengthA : float, optional, default : 0.2
3647
+ Length of the bracket
3635
3648
3636
- * angleA*
3637
- angle between the bracket and the line
3649
+ angleA : float, optional, default : None
3650
+ Angle between the bracket and the line
3638
3651
3639
- * widthB*
3640
- width of the bracket
3652
+ widthB : float, optional, default : 1.0
3653
+ Width of the bracket
3641
3654
3642
- * lengthB*
3643
- length of the bracket
3655
+ lengthB : float, optional, default : 0.2
3656
+ Length of the bracket
3644
3657
3645
- * angleB*
3646
- angle between the bracket and the line
3658
+ angleB : float, optional, default : None
3659
+ Angle between the bracket and the line
3647
3660
"""
3648
3661
3649
3662
super (ArrowStyle .BracketAB , self ).__init__ (
@@ -3660,14 +3673,16 @@ class BracketA(_Bracket):
3660
3673
3661
3674
def __init__ (self , widthA = 1. , lengthA = 0.2 , angleA = None ):
3662
3675
"""
3663
- *widthA*
3664
- width of the bracket
3676
+ Parameters
3677
+ ----------
3678
+ widthA : float, optional, default : 1.0
3679
+ Width of the bracket
3665
3680
3666
- * lengthA*
3667
- length of the bracket
3681
+ lengthA : float, optional, default : 0.2
3682
+ Length of the bracket
3668
3683
3669
- * angleA*
3670
- angle between the bracket and the line
3684
+ angleA : float, optional, default : None
3685
+ Angle between the bracket and the line
3671
3686
"""
3672
3687
3673
3688
super (ArrowStyle .BracketA , self ).__init__ (True , None ,
@@ -3684,14 +3699,16 @@ class BracketB(_Bracket):
3684
3699
3685
3700
def __init__ (self , widthB = 1. , lengthB = 0.2 , angleB = None ):
3686
3701
"""
3687
- *widthB*
3688
- width of the bracket
3702
+ Parameters
3703
+ ----------
3704
+ widthB : float, optional, default : 1.0
3705
+ Width of the bracket
3689
3706
3690
- * lengthB*
3691
- length of the bracket
3707
+ lengthB : float, optional, default : 0.2
3708
+ Length of the bracket
3692
3709
3693
- * angleB*
3694
- angle between the bracket and the line
3710
+ angleB : float, optional, default : None
3711
+ Angle between the bracket and the line
3695
3712
"""
3696
3713
3697
3714
super (ArrowStyle .BracketB , self ).__init__ (None , True ,
@@ -3710,23 +3727,19 @@ def __init__(self,
3710
3727
widthA = 1. , angleA = None ,
3711
3728
widthB = 1. , angleB = None ):
3712
3729
"""
3713
- *widthA*
3714
- width of the bracket
3715
-
3716
- *lengthA*
3717
- length of the bracket
3718
-
3719
- *angleA*
3720
- angle between the bracket and the line
3730
+ Parameters
3731
+ ----------
3732
+ widthA : float, optional, default : 1.0
3733
+ Width of the bracket
3721
3734
3722
- *widthB*
3723
- width of the bracket
3735
+ angleA : float, optional, default : None
3736
+ Angle between the bracket and the line
3724
3737
3725
- *lengthB*
3726
- length of the bracket
3738
+ widthB : float, optional, default : 1.0
3739
+ Width of the bracket
3727
3740
3728
- * angleB*
3729
- angle between the bracket and the line
3741
+ angleB : float, optional, default : None
3742
+ Angle between the bracket and the line
3730
3743
"""
3731
3744
3732
3745
super (ArrowStyle .BarAB , self ).__init__ (
@@ -3742,15 +3755,16 @@ class Simple(_Base):
3742
3755
3743
3756
def __init__ (self , head_length = .5 , head_width = .5 , tail_width = .2 ):
3744
3757
"""
3745
- *head_length*
3746
- length of the arrow head
3747
-
3748
- *head_with*
3749
- width of the arrow head
3758
+ Parameters
3759
+ ----------
3760
+ head_length : float, optional, default : 0.5
3761
+ Length of the arrow head
3750
3762
3751
- *tail_width*
3752
- width of the arrow tail
3763
+ head_width : float, optional, default : 0.5
3764
+ Width of the arrow head
3753
3765
3766
+ tail_width : float, optional, default : 0.2
3767
+ Width of the arrow tail
3754
3768
"""
3755
3769
3756
3770
self .head_length , self .head_width , self .tail_width = \
@@ -3828,15 +3842,16 @@ class Fancy(_Base):
3828
3842
3829
3843
def __init__ (self , head_length = .4 , head_width = .4 , tail_width = .4 ):
3830
3844
"""
3831
- *head_length*
3832
- length of the arrow head
3833
-
3834
- *head_with*
3835
- width of the arrow head
3845
+ Parameters
3846
+ ----------
3847
+ head_length : float, optional, default : 0.4
3848
+ Length of the arrow head
3836
3849
3837
- *tail_width*
3838
- width of the arrow tail
3850
+ head_width : float, optional, default : 0.4
3851
+ Width of the arrow head
3839
3852
3853
+ tail_width : float, optional, default : 0.4
3854
+ Width of the arrow tail
3840
3855
"""
3841
3856
3842
3857
self .head_length , self .head_width , self .tail_width = \
@@ -3928,16 +3943,17 @@ class Wedge(_Base):
3928
3943
Wedge(?) shape. Only works with a quadratic bezier curve. The
3929
3944
begin point has a width of the tail_width and the end point has a
3930
3945
width of 0. At the middle, the width is shrink_factor*tail_width.
3931
-
3932
3946
"""
3933
3947
3934
3948
def __init__ (self , tail_width = .3 , shrink_factor = 0.5 ):
3935
3949
"""
3936
- *tail_width*
3937
- width of the tail
3950
+ Parameters
3951
+ ----------
3952
+ tail_width : float, optional, default : 0.3
3953
+ Width of the tail
3938
3954
3939
- * shrink_factor*
3940
- fraction of the arrow width at the middle point
3955
+ shrink_factor : float, optional, default : 0.5
3956
+ Fraction of the arrow width at the middle point
3941
3957
"""
3942
3958
3943
3959
self .tail_width = tail_width
0 commit comments