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

Method _update_transScale

lib/mpl_toolkits/mplot3d/axes3d.py:281–294  ·  view source on GitHub ↗

Override transScale to always use identity transforms. In 2D axes, transScale applies scale transforms (log, symlog, etc.) to convert data coordinates to display coordinates. In 3D axes, scale transforms are applied to data coordinates before 3D projection via

(self)

Source from the content-addressed store, hash-verified

279 return np.column_stack(proj3d._proj_trans_points(xyzs, self.M))
280
281 def _update_transScale(self):
282 """
283 Override transScale to always use identity transforms.
284
285 In 2D axes, transScale applies scale transforms (log, symlog, etc.) to
286 convert data coordinates to display coordinates. In 3D axes, scale
287 transforms are applied to data coordinates before 3D projection via
288 each axis's transform. The projected 2D coordinates are already in
289 display space, so transScale must be identity to avoid double-scaling.
290 """
291 self.transScale.set(
292 mtransforms.blended_transform_factory(
293 mtransforms.IdentityTransform(),
294 mtransforms.IdentityTransform()))
295
296 @_api.delete_parameter("3.11", "share")
297 @_api.delete_parameter("3.11", "anchor")

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected