Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Problem with indexers in plot operations #285

Closed
forman opened this issue Jul 7, 2017 · 0 comments
Closed

Problem with indexers in plot operations #285

forman opened this issue Jul 7, 2017 · 0 comments
Assignees
Milestone

Comments

@forman
Copy link
Member

forman commented Jul 7, 2017

All plot_ operations have an indexer input allowing callers to specify the data slice to be plotted given dim1=label1, dim2=label2, ... of a coordinate variable dim.

Expected behavior

If indexers is given, xarray indexing methods should always be nearest.

Actual behavior

Indexing methods is nearest only if a label is not of type int. If user types lat=12 the plot call will fail, because ``12is anint`.

Steps to reproduce the problem

See unit tests in plotting.

Specifications

0.9.0dev3

@forman forman added the bug label Jul 7, 2017
@forman forman added this to the IPM6 milestone Jul 7, 2017
@forman forman self-assigned this Jul 7, 2017
@forman forman closed this as completed in c6335fd Jul 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant