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

Method _transformed_cube

lib/mpl_toolkits/mplot3d/axes3d.py:260–279  ·  view source on GitHub ↗

Return cube with limits from *vals* transformed by self.M. The vals are in data space and are first transformed through the axis scale transforms before being projected.

(self, vals)

Source from the content-addressed store, hash-verified

258 get_zticklines = _axis_method_wrapper("zaxis", "get_ticklines")
259
260 def _transformed_cube(self, vals):
261 """Return cube with limits from *vals* transformed by self.M.
262
263 The vals are in data space and are first transformed through the
264 axis scale transforms before being projected.
265 """
266 minx, maxx, miny, maxy, minz, maxz = vals
267 # Transform from data space to transformed coordinates
268 minx, maxx = self.xaxis.get_transform().transform([minx, maxx])
269 miny, maxy = self.yaxis.get_transform().transform([miny, maxy])
270 minz, maxz = self.zaxis.get_transform().transform([minz, maxz])
271 xyzs = [(minx, miny, minz),
272 (maxx, miny, minz),
273 (maxx, maxy, minz),
274 (minx, maxy, minz),
275 (minx, miny, maxz),
276 (maxx, miny, maxz),
277 (maxx, maxy, maxz),
278 (minx, maxy, maxz)]
279 return np.column_stack(proj3d._proj_trans_points(xyzs, self.M))
280
281 def _update_transScale(self):
282 """

Callers 2

get_axis_positionMethod · 0.95
_get_coord_infoMethod · 0.80

Calls 2

transformMethod · 0.45
get_transformMethod · 0.45

Tested by

no test coverage detected