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 976543c commit 1c09400
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion saenopy/gui/solver/modules/exporter/ExporterRender2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ def project_data(R, field, skip=1):
field = field[:, :2] * params_arrows["arrow_scale"]
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"]

Expand Down

0 comments on commit 1c09400

Please sign in to comment.