Skip to content

Commit

Permalink
fix orientation of imshows for aperture_contour and pixel_by_pixel
Browse files Browse the repository at this point in the history
  • Loading branch information
afeinstein20 committed Aug 24, 2021
1 parent fa3c024 commit 0d36441
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eleanor/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 0d36441

Please sign in to comment.