|
37 | 37 | import numpy as np |
38 | 38 | from astropy.table import Table, vstack |
39 | 39 | from matplotlib.gridspec import GridSpec |
40 | | -from matplotlib.patches import Ellipse, FancyArrowPatch, Polygon |
| 40 | +from matplotlib.patches import Circle, Ellipse, FancyArrowPatch, Polygon |
41 | 41 | from mpl_toolkits.axes_grid1 import make_axes_locatable |
42 | 42 | from treegp import meanify |
43 | 43 |
|
@@ -479,16 +479,24 @@ def plotData( |
479 | 479 | axs[0, 1].quiverkey(qShape, X=0.08, Y=0.95, U=0.2, label="0.2", labelpos="S") |
480 | 480 |
|
481 | 481 | # FWHM plot |
482 | | - cbar = addColorbarToAxes(axs[0, 1].scatter(x, y, c=fwhm, s=1)) |
| 482 | + vmin, vmax = np.nanpercentile(fwhm, [5, 95]) |
| 483 | + sc = axs[0, 1].scatter(x, y, c=fwhm, s=1, vmin=vmin, vmax=vmax) |
| 484 | + circle = Circle((0, 0), 1.75, color="red", fill=False, linestyle="--") |
| 485 | + axs[0, 1].add_patch(circle) |
| 486 | + cbar = addColorbarToAxes(sc) |
483 | 487 | cbar.set_label("FWHM [arcsec]") |
484 | 488 |
|
485 | 489 | # Ellipticity plots |
486 | | - emax = np.quantile(np.abs(np.concatenate([e1, e2])), 0.98) |
| 490 | + emax = np.quantile(np.abs(np.concatenate([e1, e2])), 0.97) |
487 | 491 | axs[1, 0].scatter(x, y, c=e1, vmin=-emax, vmax=emax, cmap="bwr", s=1) |
| 492 | + circle = Circle((0, 0), 1.75, color="red", fill=False, linestyle="--") |
| 493 | + axs[1, 0].add_patch(circle) |
488 | 494 | axs[1, 0].text(0.05, 0.92, "e1", transform=axs[1, 0].transAxes, fontsize=10) |
489 | 495 |
|
490 | 496 | cbar = addColorbarToAxes(axs[1, 1].scatter(x, y, c=e2, vmin=-emax, vmax=emax, cmap="bwr", s=1)) |
491 | 497 | cbar.set_label("e") |
| 498 | + circle = Circle((0, 0), 1.75, color="red", fill=False, linestyle="--") |
| 499 | + axs[1, 1].add_patch(circle) |
492 | 500 | axs[1, 1].text(0.89, 0.92, "e2", transform=axs[1, 1].transAxes, fontsize=10) |
493 | 501 |
|
494 | 502 | # FWHM hist |
|
0 commit comments