From 0d3644172638b350c8213d07224cd9c86b69d473 Mon Sep 17 00:00:00 2001 From: Adina Feinstein Date: Tue, 24 Aug 2021 11:49:08 -0500 Subject: [PATCH] fix orientation of imshows for aperture_contour and pixel_by_pixel --- eleanor/visualize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eleanor/visualize.py b/eleanor/visualize.py index 388fb36..365d1c9 100755 --- a/eleanor/visualize.py +++ b/eleanor/visualize.py @@ -72,7 +72,7 @@ def aperture_contour(self, aperture=None, ap_color='w', ap_linewidth=4, ax=None, if aperture is None: aperture = self.obj.aperture - ax.imshow(self.obj.tpf[0], **kwargs) + ax.imshow(self.obj.tpf[0], origin='lower', **kwargs) f = lambda x,y: aperture[int(y),int(x) ] g = np.vectorize(f) @@ -170,7 +170,7 @@ def pixel_by_pixel(self, colrange=None, rowrange=None, cmap='viridis', plotflux = np.nanmedian(self.flux[:, rowrange[0]:rowrange[1], colrange[0]:colrange[1]], axis=0) - c = ax.imshow(plotflux, + c = ax.imshow(plotflux, origin='lower', vmax=np.percentile(plotflux, 95), cmap=cmap) divider = make_axes_locatable(ax)