|
9 | 9 | import matplotlib.artist as artist |
10 | 10 | import matplotlib.colors as colors |
11 | 11 | import matplotlib.transforms as transforms |
12 | | -import matplotlib.artist as artist |
13 | 12 | from matplotlib.path import Path |
14 | 13 |
|
15 | 14 | # these are not available for the object inspector until after the |
@@ -2171,7 +2170,7 @@ def get_bbox(self): |
2171 | 2170 | from matplotlib.bezier import split_bezier_intersecting_with_closedpath |
2172 | 2171 | from matplotlib.bezier import get_intersection, inside_circle, get_parallels |
2173 | 2172 | from matplotlib.bezier import make_wedged_bezier2 |
2174 | | -from matplotlib.bezier import split_path_inout, inside_circle, get_cos_sin |
| 2173 | +from matplotlib.bezier import split_path_inout, get_cos_sin |
2175 | 2174 |
|
2176 | 2175 |
|
2177 | 2176 | class ConnectionStyle(_Style): |
@@ -2651,7 +2650,7 @@ def __call__(self, path, mutation_size, linewidth, |
2651 | 2650 | # call transmute method with squeezed height. |
2652 | 2651 | path_mutated, closed = self.transmute(path_shrinked, linewidth, |
2653 | 2652 | mutation_size) |
2654 | | - vertices, codes = path_mutate.vertices, path_mutate.codes |
| 2653 | + vertices, codes = path_mutated.vertices, path_mutated.codes |
2655 | 2654 | # Restore the height |
2656 | 2655 | vertices[:,1] = vertices[:,1] * aspect_ratio |
2657 | 2656 | return Path(vertices, codes), closed |
@@ -2915,8 +2914,6 @@ def transmute(self, path, mutation_size, linewidth): |
2915 | 2914 | else: |
2916 | 2915 | scaleB = self.scaleB |
2917 | 2916 |
|
2918 | | - from matplotlib.bezier import get_cos_sin |
2919 | | - |
2920 | 2917 | vertices_list, codes_list = [], [] |
2921 | 2918 |
|
2922 | 2919 | if self.bracketA: |
@@ -3297,12 +3294,6 @@ def __init__(self, posA=None, posB=None, |
3297 | 3294 | __init__.__doc__ = cbook.dedent(__init__.__doc__) % kwdoc |
3298 | 3295 | del kwdoc |
3299 | 3296 |
|
3300 | | - def list_available_arrowstyles(cls): |
3301 | | - return _list_available_arrowstyles(cls._fancy_arrow_transmuters) |
3302 | | - |
3303 | | - def list_available_connectionstyles(cls): |
3304 | | - return _list_available_connectionstyles(cls._connectors) |
3305 | | - |
3306 | 3297 | def set_positions(self, posA, posB): |
3307 | 3298 | """ set the begin end end positions of the connecting |
3308 | 3299 | path. Use current vlaue if None. |
|
0 commit comments