A radial Axis. This overrides certain properties of a `.YAxis` to provide special-casing for a radial axis.
| 670 | |
| 671 | |
| 672 | class RadialAxis(maxis.YAxis): |
| 673 | """ |
| 674 | A radial Axis. |
| 675 | |
| 676 | This overrides certain properties of a `.YAxis` to provide special-casing |
| 677 | for a radial axis. |
| 678 | """ |
| 679 | __name__ = 'radialaxis' |
| 680 | axis_name = 'radius' #: Read-only name identifying the axis. |
| 681 | _tick_class = RadialTick |
| 682 | |
| 683 | def __init__(self, *args, **kwargs): |
| 684 | super().__init__(*args, **kwargs) |
| 685 | self.sticky_edges.y.append(0) |
| 686 | |
| 687 | def set_major_locator(self, locator): |
| 688 | if not isinstance(locator, RadialLocator): |
| 689 | locator = RadialLocator(locator) |
| 690 | super().set_major_locator(locator) |
| 691 | |
| 692 | def clear(self): |
| 693 | # docstring inherited |
| 694 | super().clear() |
| 695 | self.set_ticks_position('none') |
| 696 | |
| 697 | |
| 698 | def _is_full_circle_deg(thetamin, thetamax): |
no outgoing calls
no test coverage detected
searching dependent graphs…