From 976543cc373c6515b94e3c7525945d786852a735 Mon Sep 17 00:00:00 2001 From: rgerum <14153051+rgerum@users.noreply.github.com> Date: Wed, 27 Nov 2024 10:49:48 -0500 Subject: [PATCH] fixed 2d arrow offset for non-square images --- saenopy/gui/solver/modules/exporter/ExporterRender2D.py | 1 + 1 file changed, 1 insertion(+) diff --git a/saenopy/gui/solver/modules/exporter/ExporterRender2D.py b/saenopy/gui/solver/modules/exporter/ExporterRender2D.py index dd9b7199..f8e8aab5 100644 --- a/saenopy/gui/solver/modules/exporter/ExporterRender2D.py +++ b/saenopy/gui/solver/modules/exporter/ExporterRender2D.py @@ -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":