forked from Microno95/xarray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Plotting support for interval coordinates: groupby_bins (pydata#…
…2152) * ENH: Plotting for groupby_bins DataArrays created with e.g. groupy_bins have coords containing of pd._libs.interval.Interval. For plotting, the pd._libs.interval.Interval is replaced with the interval's center point. '_center' is appended to teh label * changed pd._libs.interval.Interval to pd.Interval * Assign new variable with _interval_to_mid_points instead of mutating original variable. Note that this changes the the type of xplt from DataArray to np.array in the line function. * '_center' added to label only for 1d plot * added tests * missing whitespace * Simplified test * simplified tests once more * 1d plots now defaults to step plot New bool keyword `interval_step_plot` to turn it off. * non-uniform bin spacing for pcolormesh * Added step plot function * bugfix: linestyle == '' results in no line plotted * Adapted to upstream changes * Added _resolve_intervals_2dplot function, simplified code * Added documentation * typo in documentation * Fixed bug introduced by upstream change * Refactor out utility functions. * Fix test. * Add whats-new. * Remove duplicate whats new entry. :/ * Make things neater.
- Loading branch information
Showing
6 changed files
with
224 additions
and
24 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
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
Oops, something went wrong.