File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
tidy3d/components/geometry Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Fixed
11
+ - Arrow lengths are now scaled consistently in the X and Y directions,
12
+ and their lengths no longer exceed the height of the plot window.
13
+
10
14
## [ 2.9.0rc1] - 2025-06-10
11
15
12
16
### Added
Original file line number Diff line number Diff line change @@ -2292,7 +2292,9 @@ def _cb(event):
2292
2292
event .canvas .mpl_disconnect (arrow .set_shape_cb [0 ])
2293
2293
2294
2294
transform = arrow .axes .transData .transform
2295
- scale = transform ((1 , 0 ))[0 ] - transform ((0 , 0 ))[0 ]
2295
+ 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.
2296
2298
arrow_length = ARROW_LENGTH * event .canvas .figure .get_dpi () / scale
2297
2299
2298
2300
if bend_radius :
You can’t perform that action at this time.
0 commit comments