From 1c094008275c4cd77136b3c5ed23afcfc27c9ed2 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 deletion(-) diff --git a/saenopy/gui/solver/modules/exporter/ExporterRender2D.py b/saenopy/gui/solver/modules/exporter/ExporterRender2D.py index f8e8aab5..5aba04fd 100644 --- a/saenopy/gui/solver/modules/exporter/ExporterRender2D.py +++ b/saenopy/gui/solver/modules/exporter/ExporterRender2D.py @@ -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"]