(float, float) The values, in data coordinates, for the start and end points of the current selection. If there is no selection then the start and end values will be the same.
(self)
| 3072 | |
| 3073 | @property |
| 3074 | def extents(self): |
| 3075 | """ |
| 3076 | (float, float) |
| 3077 | The values, in data coordinates, for the start and end points of the current |
| 3078 | selection. If there is no selection then the start and end values will be |
| 3079 | the same. |
| 3080 | """ |
| 3081 | if self.direction == 'horizontal': |
| 3082 | vmin = self._selection_artist.get_x() |
| 3083 | vmax = vmin + self._selection_artist.get_width() |
| 3084 | else: |
| 3085 | vmin = self._selection_artist.get_y() |
| 3086 | vmax = vmin + self._selection_artist.get_height() |
| 3087 | return vmin, vmax |
| 3088 | |
| 3089 | @extents.setter |
| 3090 | def extents(self, extents): |
nothing calls this directly
no test coverage detected