@@ -3437,11 +3437,13 @@ class CurveA(_Curve):
3437
3437
3438
3438
def __init__ (self , head_length = .4 , head_width = .2 ):
3439
3439
"""
3440
- *head_length*
3441
- length of the arrow head
3440
+ Parameters
3441
+ ----------
3442
+ head_length : float, optional, default : 0.4
3443
+ Length of the arrow head
3442
3444
3443
- * head_width*
3444
- width of the arrow head
3445
+ head_width : float, optional, default : 0.2
3446
+ Width of the arrow head
3445
3447
"""
3446
3448
3447
3449
super (ArrowStyle .CurveA , self ).__init__ (
@@ -3457,11 +3459,13 @@ class CurveB(_Curve):
3457
3459
3458
3460
def __init__ (self , head_length = .4 , head_width = .2 ):
3459
3461
"""
3460
- *head_length*
3461
- length of the arrow head
3462
+ Parameters
3463
+ ----------
3464
+ head_length : float, optional, default : 0.4
3465
+ Length of the arrow head
3462
3466
3463
- * head_width*
3464
- width of the arrow head
3467
+ head_width : float, optional, default : 0.2
3468
+ Width of the arrow head
3465
3469
"""
3466
3470
3467
3471
super (ArrowStyle .CurveB , self ).__init__ (
@@ -3477,11 +3481,13 @@ class CurveAB(_Curve):
3477
3481
3478
3482
def __init__ (self , head_length = .4 , head_width = .2 ):
3479
3483
"""
3480
- *head_length*
3481
- length of the arrow head
3484
+ Parameters
3485
+ ----------
3486
+ head_length : float, optional, default : 0.4
3487
+ Length of the arrow head
3482
3488
3483
- * head_width*
3484
- width of the arrow head
3489
+ head_width : float, optional, default : 0.2
3490
+ Width of the arrow head
3485
3491
"""
3486
3492
3487
3493
super (ArrowStyle .CurveAB , self ).__init__ (
@@ -3497,11 +3503,13 @@ class CurveFilledA(_Curve):
3497
3503
3498
3504
def __init__ (self , head_length = .4 , head_width = .2 ):
3499
3505
"""
3500
- *head_length*
3501
- length of the arrow head
3506
+ Parameters
3507
+ ----------
3508
+ head_length : float, optional, default : 0.4
3509
+ Length of the arrow head
3502
3510
3503
- * head_width*
3504
- width of the arrow head
3511
+ head_width : float, optional, default : 0.2
3512
+ Width of the arrow head
3505
3513
"""
3506
3514
3507
3515
super (ArrowStyle .CurveFilledA , self ).__init__ (
@@ -3518,11 +3526,13 @@ class CurveFilledB(_Curve):
3518
3526
3519
3527
def __init__ (self , head_length = .4 , head_width = .2 ):
3520
3528
"""
3521
- *head_length*
3522
- length of the arrow head
3529
+ Parameters
3530
+ ----------
3531
+ head_length : float, optional, default : 0.4
3532
+ Length of the arrow head
3523
3533
3524
- * head_width*
3525
- width of the arrow head
3534
+ head_width : float, optional, default : 0.2
3535
+ Width of the arrow head
3526
3536
"""
3527
3537
3528
3538
super (ArrowStyle .CurveFilledB , self ).__init__ (
@@ -3534,17 +3544,18 @@ def __init__(self, head_length=.4, head_width=.2):
3534
3544
3535
3545
class CurveFilledAB (_Curve ):
3536
3546
"""
3537
- An arrow with filled triangle heads both at the begin and the end
3538
- point.
3547
+ An arrow with filled triangle heads at both ends.
3539
3548
"""
3540
3549
3541
3550
def __init__ (self , head_length = .4 , head_width = .2 ):
3542
3551
"""
3543
- *head_length*
3544
- length of the arrow head
3552
+ Parameters
3553
+ ----------
3554
+ head_length : float, optional, default : 0.4
3555
+ Length of the arrow head
3545
3556
3546
- * head_width*
3547
- width of the arrow head
3557
+ head_width : float, optional, default : 0.2
3558
+ Width of the arrow head
3548
3559
"""
3549
3560
3550
3561
super (ArrowStyle .CurveFilledAB , self ).__init__ (
@@ -3633,30 +3644,32 @@ def transmute(self, path, mutation_size, linewidth):
3633
3644
3634
3645
class BracketAB (_Bracket ):
3635
3646
"""
3636
- An arrow with a bracket(]) at both ends.
3647
+ An arrow with a bracket(]) at both ends.
3637
3648
"""
3638
3649
3639
3650
def __init__ (self ,
3640
3651
widthA = 1. , lengthA = 0.2 , angleA = None ,
3641
3652
widthB = 1. , lengthB = 0.2 , angleB = None ):
3642
3653
"""
3643
- *widthA*
3644
- width of the bracket
3654
+ Parameters
3655
+ ----------
3656
+ widthA : float, optional, default : 1.0
3657
+ Width of the bracket
3645
3658
3646
- * lengthA*
3647
- length of the bracket
3659
+ lengthA : float, optional, default : 0.2
3660
+ Length of the bracket
3648
3661
3649
- * angleA*
3650
- angle between the bracket and the line
3662
+ angleA : float, optional, default : None
3663
+ Angle between the bracket and the line
3651
3664
3652
- * widthB*
3653
- width of the bracket
3665
+ widthB : float, optional, default : 1.0
3666
+ Width of the bracket
3654
3667
3655
- * lengthB*
3656
- length of the bracket
3668
+ lengthB : float, optional, default : 0.2
3669
+ Length of the bracket
3657
3670
3658
- * angleB*
3659
- angle between the bracket and the line
3671
+ angleB : float, optional, default : None
3672
+ Angle between the bracket and the line
3660
3673
"""
3661
3674
3662
3675
super (ArrowStyle .BracketAB , self ).__init__ (
@@ -3673,14 +3686,16 @@ class BracketA(_Bracket):
3673
3686
3674
3687
def __init__ (self , widthA = 1. , lengthA = 0.2 , angleA = None ):
3675
3688
"""
3676
- *widthA*
3677
- width of the bracket
3689
+ Parameters
3690
+ ----------
3691
+ widthA : float, optional, default : 1.0
3692
+ Width of the bracket
3678
3693
3679
- * lengthA*
3680
- length of the bracket
3694
+ lengthA : float, optional, default : 0.2
3695
+ Length of the bracket
3681
3696
3682
- * angleA*
3683
- angle between the bracket and the line
3697
+ angleA : float, optional, default : None
3698
+ Angle between the bracket and the line
3684
3699
"""
3685
3700
3686
3701
super (ArrowStyle .BracketA , self ).__init__ (True , None ,
@@ -3697,14 +3712,16 @@ class BracketB(_Bracket):
3697
3712
3698
3713
def __init__ (self , widthB = 1. , lengthB = 0.2 , angleB = None ):
3699
3714
"""
3700
- *widthB*
3701
- width of the bracket
3715
+ Parameters
3716
+ ----------
3717
+ widthB : float, optional, default : 1.0
3718
+ Width of the bracket
3702
3719
3703
- * lengthB*
3704
- length of the bracket
3720
+ lengthB : float, optional, default : 0.2
3721
+ Length of the bracket
3705
3722
3706
- * angleB*
3707
- angle between the bracket and the line
3723
+ angleB : float, optional, default : None
3724
+ Angle between the bracket and the line
3708
3725
"""
3709
3726
3710
3727
super (ArrowStyle .BracketB , self ).__init__ (None , True ,
@@ -3723,23 +3740,19 @@ def __init__(self,
3723
3740
widthA = 1. , angleA = None ,
3724
3741
widthB = 1. , angleB = None ):
3725
3742
"""
3726
- *widthA*
3727
- width of the bracket
3728
-
3729
- *lengthA*
3730
- length of the bracket
3731
-
3732
- *angleA*
3733
- angle between the bracket and the line
3743
+ Parameters
3744
+ ----------
3745
+ widthA : float, optional, default : 1.0
3746
+ Width of the bracket
3734
3747
3735
- *widthB*
3736
- width of the bracket
3748
+ angleA : float, optional, default : None
3749
+ Angle between the bracket and the line
3737
3750
3738
- *lengthB*
3739
- length of the bracket
3751
+ widthB : float, optional, default : 1.0
3752
+ Width of the bracket
3740
3753
3741
- * angleB*
3742
- angle between the bracket and the line
3754
+ angleB : float, optional, default : None
3755
+ Angle between the bracket and the line
3743
3756
"""
3744
3757
3745
3758
super (ArrowStyle .BarAB , self ).__init__ (
@@ -3755,15 +3768,16 @@ class Simple(_Base):
3755
3768
3756
3769
def __init__ (self , head_length = .5 , head_width = .5 , tail_width = .2 ):
3757
3770
"""
3758
- *head_length*
3759
- length of the arrow head
3760
-
3761
- *head_with*
3762
- width of the arrow head
3771
+ Parameters
3772
+ ----------
3773
+ head_length : float, optional, default : 0.5
3774
+ Length of the arrow head
3763
3775
3764
- *tail_width*
3765
- width of the arrow tail
3776
+ head_width : float, optional, default : 0.5
3777
+ Width of the arrow head
3766
3778
3779
+ tail_width : float, optional, default : 0.2
3780
+ Width of the arrow tail
3767
3781
"""
3768
3782
3769
3783
self .head_length , self .head_width , self .tail_width = \
@@ -3841,15 +3855,16 @@ class Fancy(_Base):
3841
3855
3842
3856
def __init__ (self , head_length = .4 , head_width = .4 , tail_width = .4 ):
3843
3857
"""
3844
- *head_length*
3845
- length of the arrow head
3846
-
3847
- *head_with*
3848
- width of the arrow head
3858
+ Parameters
3859
+ ----------
3860
+ head_length : float, optional, default : 0.4
3861
+ Length of the arrow head
3849
3862
3850
- *tail_width*
3851
- width of the arrow tail
3863
+ head_width : float, optional, default : 0.4
3864
+ Width of the arrow head
3852
3865
3866
+ tail_width : float, optional, default : 0.4
3867
+ Width of the arrow tail
3853
3868
"""
3854
3869
3855
3870
self .head_length , self .head_width , self .tail_width = \
@@ -3941,16 +3956,17 @@ class Wedge(_Base):
3941
3956
Wedge(?) shape. Only works with a quadratic bezier curve. The
3942
3957
begin point has a width of the tail_width and the end point has a
3943
3958
width of 0. At the middle, the width is shrink_factor*tail_width.
3944
-
3945
3959
"""
3946
3960
3947
3961
def __init__ (self , tail_width = .3 , shrink_factor = 0.5 ):
3948
3962
"""
3949
- *tail_width*
3950
- width of the tail
3963
+ Parameters
3964
+ ----------
3965
+ tail_width : float, optional, default : 0.3
3966
+ Width of the tail
3951
3967
3952
- * shrink_factor*
3953
- fraction of the arrow width at the middle point
3968
+ shrink_factor : float, optional, default : 0.5
3969
+ Fraction of the arrow width at the middle point
3954
3970
"""
3955
3971
3956
3972
self .tail_width = tail_width
0 commit comments