Skip to content

Commit 3ce4a0d

Browse files
gmeghmfisherlevine
authored andcommitted
Fix quiver plot to also use downsampled x, y vectors
1 parent dcd48d0 commit 3ce4a0d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

python/lsst/summit/extras/plotting/psfPlotting.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,8 @@ def plotData(
454454
e = table["e"]
455455
fwhm = table["FWHM"]
456456

457+
x_downsampled = table_downsampled[prefix + "x"]
458+
y_downsampled = table_downsampled[prefix + "y"]
457459
e1_downsampled = table_downsampled[prefix + "e1"]
458460
e2_downsampled = table_downsampled[prefix + "e2"]
459461
e_downsampled = table_downsampled["e"]
@@ -468,7 +470,11 @@ def plotData(
468470

469471
shape_angle = 0.5 * np.arctan2(e2_downsampled, e1_downsampled) # spin-2
470472
Q_shape = axs[0, 0].quiver(
471-
x, y, e_downsampled * np.cos(shape_angle), e_downsampled * np.sin(shape_angle), **quiver_kwargs
473+
x_downsampled,
474+
y_downsampled,
475+
e_downsampled * np.cos(shape_angle),
476+
e_downsampled * np.sin(shape_angle),
477+
**quiver_kwargs,
472478
)
473479
axs[0, 1].quiverkey(Q_shape, X=0.08, Y=0.95, U=0.2, label="0.2", labelpos="S")
474480

0 commit comments

Comments
 (0)