MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _location_coords

Method _location_coords

lib/mpl_toolkits/mplot3d/axes3d.py:1653–1667  ·  view source on GitHub ↗

Return the location on the axis pane underneath the cursor as a string.

(self, xv, yv, renderer)

Source from the content-addressed store, hash-verified

1651 return coords
1652
1653 def _location_coords(self, xv, yv, renderer):
1654 """
1655 Return the location on the axis pane underneath the cursor as a string.
1656 """
1657 p1, pane_idx = self._calc_coord(xv, yv, renderer)
1658 xs = self.format_xdata(p1[0])
1659 ys = self.format_ydata(p1[1])
1660 zs = self.format_zdata(p1[2])
1661 if pane_idx == 0:
1662 coords = f'x pane={xs}, y={ys}, z={zs}'
1663 elif pane_idx == 1:
1664 coords = f'x={xs}, y pane={ys}, z={zs}'
1665 elif pane_idx == 2:
1666 coords = f'x={xs}, y={ys}, z pane={zs}'
1667 return coords
1668
1669 def _get_camera_loc(self):
1670 """

Callers 1

format_coordMethod · 0.95

Calls 4

_calc_coordMethod · 0.95
format_zdataMethod · 0.95
format_xdataMethod · 0.80
format_ydataMethod · 0.80

Tested by

no test coverage detected