colorbar range for empty masks plot
@@ -189,6 +189,7 @@ class ReflectedRegionsFinder:
X, Y = geom.get_pix()
ONpixels = PixCoord(X[mask], Y[mask])
+ # find excluded PixCoords
mask_array = np.where(self.reference_map.data < 0.5)
self.excluded_pixcoords = PixCoord(X[mask_array], Y[mask_array])
@@ -233,7 +234,7 @@ class ReflectedRegionsFinder:
See example here: :ref:'regions_reflected'.
"""
- fig, ax, cbar = self.reference_map.plot(fig=fig, ax=ax, cmap="gray")
+ fig, ax, cbar = self.reference_map.plot(fig=fig, ax=ax, cmap="gray", vmin=0, vmax=1)
wcs = self.reference_map.geom.wcs
on_patch = self.region.to_pixel(wcs=wcs).as_artist(color="red", alpha=0.6)
