Update the expected DataSet plot title after xarray 2022.6.0
#795
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
One test started to fail after the release of xarray 2022.6.0 a couple of days ago. The title set to a plot made from an xarray object is defined by relying on an internal xarray function, this was added in #659. Apparently something changed in xarray, I actually didn't see any obvious change in the particular function that was called so that may be at another level, anyway the scalar coords displayed in the title are not ordered in the same way after the last release. In the failing test
'y = 0, x = 0, time = 0, band = 0'
was replaced by'time = 0, y = 0, x = 0, band = 0'
. The former, i.e. the newer title, appears to be more accurate as respecting the order of the coords declared in one of the original DataArray:hvplot/hvplot/tests/testoptions.py
Line 478 in 912b70f
I've simply updated the test to not fail with the newest releases of xarray, and still pass with the older ones.