Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

completed the fixes for pixel_by_pixel() orientation #277

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions eleanor/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ def pixel_by_pixel(self, colrange=None, rowrange=None, cmap='viridis',
inner = gridspec.GridSpecFromSubplotSpec(ncols, nrows, hspace=0.1, wspace=0.1,
subplot_spec=outer[1])

i, j = rowrange[0], colrange[0]
# start from the highest row, to be consistent with the small pixel plot
# using `ax.imshow(plotflux, origin='lower', ...)` below
i, j = rowrange[1] - 1, colrange[0]

if mask is None:
q = self.obj.quality == 0
Expand Down Expand Up @@ -252,7 +254,7 @@ def pixel_by_pixel(self, colrange=None, rowrange=None, cmap='viridis',

j += 1
if j == colrange[1]:
i += 1
i -= 1
j = colrange[0]

if ylim is None:
Expand Down
Loading