@@ -1426,10 +1426,15 @@ def _pprint_styles(_styles, leadingspace=2):
14261426 args = [(argname , argdefault ) \
14271427 for argname , argdefault in zip (args [1 :], defaults )]
14281428 else :
1429- args = []
1429+ args = None
1430+
1431+ if args is None :
1432+ argstr = 'None' # empy table entry crashed latex build
1433+ else :
1434+ argstr = "," .join ([("%s=%s" % (an , av )) for an , av in args ])
1435+
1436+ _table .append ([cls .__name__ , name , argstr ])
14301437
1431- _table .append ([cls .__name__ , name ,
1432- "," .join ([("%s=%s" % (an , av )) for an , av in args ])])
14331438
14341439 return _pprint_table (_table )
14351440
@@ -2015,15 +2020,16 @@ def set_boxstyle(self, boxstyle=None, **kw):
20152020 comma-separated attributes. Alternatively, the attrs can
20162021 be provided as keywords::
20172022
2018- set_boxstyle("round,pad=0.2")
2019- set_boxstyle("round", pad=0.2)
2023+ set_boxstyle("round,pad=0.2")
2024+ set_boxstyle("round", pad=0.2)
20202025
20212026 Old attrs simply are forgotten.
20222027
20232028 Without argument (or with *boxstyle* = None), it prints out
20242029 available box styles.
20252030
20262031 ACCEPTS: [ %(AvailableBoxstyles)s ]
2032+
20272033 """
20282034
20292035 if boxstyle == None :
@@ -2793,6 +2799,7 @@ def __init__(self):
27932799 _style_list ["-" ] = Curve
27942800
27952801
2802+
27962803 class CurveA (_Curve ):
27972804 """
27982805 An arrow with a head at its begin point.
@@ -2813,7 +2820,6 @@ def __init__(self, head_length=.4, head_width=.2):
28132820
28142821 _style_list ["<-" ] = CurveA
28152822
2816-
28172823 class CurveB (_Curve ):
28182824 """
28192825 An arrow with a head at its end point.
@@ -2832,6 +2838,7 @@ def __init__(self, head_length=.4, head_width=.2):
28322838 beginarrow = False , endarrow = True ,
28332839 head_length = head_length , head_width = head_width )
28342840
2841+ #_style_list["->"] = CurveB
28352842 _style_list ["->" ] = CurveB
28362843
28372844
@@ -2853,6 +2860,7 @@ def __init__(self, head_length=.4, head_width=.2):
28532860 beginarrow = True , endarrow = True ,
28542861 head_length = head_length , head_width = head_width )
28552862
2863+ #_style_list["<->"] = CurveAB
28562864 _style_list ["<->" ] = CurveAB
28572865
28582866
@@ -2960,6 +2968,7 @@ def __init__(self, widthB=1., lengthB=0.2, angleB=None):
29602968 super (ArrowStyle .BracketB , self ).__init__ (None , True ,
29612969 widthB = widthB , lengthB = lengthB , angleB = None )
29622970
2971+ #_style_list["-["] = BracketB
29632972 _style_list ["-[" ] = BracketB
29642973
29652974
0 commit comments