|
1 | | -from collections import OrderedDict |
2 | 1 | import math |
3 | 2 | import types |
4 | 3 |
|
|
12 | 11 | from matplotlib.path import Path |
13 | 12 | import matplotlib.ticker as mticker |
14 | 13 | import matplotlib.transforms as mtransforms |
15 | | -import matplotlib.spines as mspines |
| 14 | +from matplotlib.spines import Spine |
16 | 15 |
|
17 | 16 |
|
18 | 17 | class PolarTransform(mtransforms.Transform): |
@@ -964,14 +963,12 @@ def _gen_axes_patch(self): |
964 | 963 | return mpatches.Wedge((0.5, 0.5), 0.5, 0.0, 360.0) |
965 | 964 |
|
966 | 965 | def _gen_axes_spines(self): |
967 | | - spines = OrderedDict([ |
968 | | - ('polar', mspines.Spine.arc_spine(self, 'top', |
969 | | - (0.5, 0.5), 0.5, 0.0, 360.0)), |
970 | | - ('start', mspines.Spine.linear_spine(self, 'left')), |
971 | | - ('end', mspines.Spine.linear_spine(self, 'right')), |
972 | | - ('inner', mspines.Spine.arc_spine(self, 'bottom', |
973 | | - (0.5, 0.5), 0.0, 0.0, 360.0)) |
974 | | - ]) |
| 966 | + spines = { |
| 967 | + 'polar': Spine.arc_spine(self, 'top', (0.5, 0.5), 0.5, 0, 360), |
| 968 | + 'start': Spine.linear_spine(self, 'left'), |
| 969 | + 'end': Spine.linear_spine(self, 'right'), |
| 970 | + 'inner': Spine.arc_spine(self, 'bottom', (0.5, 0.5), 0.0, 0, 360), |
| 971 | + } |
975 | 972 | spines['polar'].set_transform(self.transWedge + self.transAxes) |
976 | 973 | spines['inner'].set_transform(self.transWedge + self.transAxes) |
977 | 974 | spines['start'].set_transform(self._yaxis_transform) |
|
0 commit comments