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.
ax.set_aspect()
1 parent 68fc687 commit 03a973fCopy full SHA for 03a973f
tidy3d/components/geometry/base.py
@@ -2292,7 +2292,9 @@ def _cb(event):
2292
event.canvas.mpl_disconnect(arrow.set_shape_cb[0])
2293
2294
transform = arrow.axes.transData.transform
2295
- scale = transform((1, 0))[0] - transform((0, 0))[0]
+ scale_x = transform((1, 0))[0] - transform((0, 0))[0]
2296
+ scale_y = transform((0, 1))[1] - transform((0, 0))[1]
2297
+ scale = max(scale_x, scale_y) # <-- Hack: This is a somewhat arbitrary choice.
2298
arrow_length = ARROW_LENGTH * event.canvas.figure.get_dpi() / scale
2299
2300
if bend_radius:
0 commit comments