We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4cc0fc commit c289e01Copy full SHA for c289e01
lib/mpl_toolkits/mplot3d/axis3d.py
@@ -260,8 +260,8 @@ def draw(self, renderer):
260
lxyz = 0.5 * (edgep1 + edgep2)
261
262
# A rough estimate; points are ambiguous since 3D plots rotate
263
- ax_scale = self.axes.bbox.size / self.figure.bbox.size
264
- ax_inches = np.multiply(ax_scale, self.figure.get_size_inches())
+ reltoinches = self.figure.dpi_scale_trans.inverted()
+ ax_inches = reltoinches.transform(self.axes.bbox.size)
265
ax_points_estimate = sum(72. * ax_inches)
266
deltas_per_point = 48 / ax_points_estimate
267
default_offset = 21.
0 commit comments