Skip to content

Commit

Permalink
fixed 2d arrow offset for non-square images
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerum committed Nov 27, 2024
1 parent dbeec83 commit 976543c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions saenopy/gui/solver/modules/exporter/ExporterRender2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def project_data(R, field, skip=1):
field[:, 1] = -field[:, 1]
else: # "microns" + 3D
R = R[:, :2][:, ::-1] * scale + offset
R = R[:, :2][:, ::-1] * scale + offset[::-1]
field = field[:, :2][:, ::-1] * scale * params_arrows["arrow_scale"]

if name == "forces":
Expand Down

0 comments on commit 976543c

Please sign in to comment.