-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct
TiledDataset.plot
mosaic ordering (#504)
* Axis grid produced by `TiledDataset.plot` now has origin at lower left Previously it had been the matplotlib default of the upper left, which didn't look right. * Add option to have correctly-ordered limits in tiled dataset plot * Add changelog fragments * Add test coverage that non-square TiledDatasets are plotted correctly And update image hashes * Add test coverage for `limits_from_wcs` option Needed to flip sample dataset WCS to have the option actually do anything * Split test of non-square and swapped `TiledDataset.plot` into new test * Whitespace adjustments * Use `ax.wcs` instead of passing a different WCS object They should be the same * Replace automatic WCS flipping with a simple switch for users The automatic logic was becoming increasingly fragile and complicated. Much easier to let the user decide what they want to do. * Add `DKISTUserWarning` if calling `TiledDataset.plot` on stale metadata file * Catch warnings caused by currently stale sample data * Update changelog fragment talking about new `.plot` kwarg
- Loading branch information
Showing
6 changed files
with
121 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Add `swap_tile_limits` kwarg to `TiledDataset.plot`. | ||
This option allows the user to invert plot limits on either axes to account for WCS values that decrease compared to the pixel axes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Update grid orientation of `TiledDataset.plot`. | ||
The grid now has MAXIS1 columns and MAXIS2 rows where MINDEX1 corresponds to column and MINDEX2 corresponds to row. | ||
Additionally, the origin for the grid is now in the lower-left as opposed to the upper-left. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters