Set the *slope* value of the line. .. note:: You can only set *slope* if the line was created using the *slope* parameter. If the line was created using *xy2*, please use `~.AxLine.set_xy2`. Parameters ---------- slope :
(self, slope)
| 1630 | " they differ but their functionalities overlap") |
| 1631 | |
| 1632 | def set_slope(self, slope): |
| 1633 | """ |
| 1634 | Set the *slope* value of the line. |
| 1635 | |
| 1636 | .. note:: |
| 1637 | |
| 1638 | You can only set *slope* if the line was created using the *slope* |
| 1639 | parameter. If the line was created using *xy2*, please use |
| 1640 | `~.AxLine.set_xy2`. |
| 1641 | |
| 1642 | Parameters |
| 1643 | ---------- |
| 1644 | slope : float |
| 1645 | The slope of the line. |
| 1646 | """ |
| 1647 | if self._xy2 is None: |
| 1648 | self._slope = slope |
| 1649 | else: |
| 1650 | raise ValueError("Cannot set a 'slope' value while 'xy2' is set;" |
| 1651 | " they differ but their functionalities overlap") |
| 1652 | |
| 1653 | |
| 1654 | class VertexSelector: |
no outgoing calls