In http://matplotlib.sourceforge.net/users/annotations_guide.html ,
about 1/3 of the way down, there is a little demonstrator for the
different arrowstyles ->, <-, ]-, etc.
Looking at the figure closely, there is no difference between the "-["
and "]-" styles.
The fix for this is in patches.py, around line 3276 (matplotlib
1.0.0). Comments in that routine clipped out for brevity.
class BracketA(_Bracket):
def __init__(self, widthA=1., lengthA=0.2, angleA=None):
super(ArrowStyle.BracketA, self).__init__(None,True,
widthA=widthA, lengthA=lengthA, angleA=angleA )
If you flip the first two args of the __init__ call, that fixes it:
class BracketA(_Bracket):
def __init__(self, widthA=1., lengthA=0.2, angleA=None):
super(ArrowStyle.BracketA, self).__init__(True,None,
############## flip these arguments
widthA=widthA, lengthA=lengthA, angleA=angleA )
···
--
Daniel Hyams
dhyams@...287...