home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 360284536

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/1852#issuecomment-360284536 https://api.github.com/repos/pydata/xarray/issues/1852 360284536 MDEyOklzc3VlQ29tbWVudDM2MDI4NDUzNg== 10050469 2018-01-24T21:46:58Z 2018-01-24T21:46:58Z MEMBER

I agree that pcolormesh ultimately works with the mesh corners, I am pretty sure passing coordinates of the same length also works.

Passing N coordinates will crop the data of one pixel and plot N-1 pixels. For example:

```python import matplotlib.pyplot as plt

data = [[1, 2], [3, 4]] f, (ax1, ax2) = plt.subplots(1, 2) ax1.pcolormesh([1, 2, 3], [2, 3, 4], data) ax1.set_title('N+1 coords') ax2.pcolormesh([1, 2], [2, 3], data) ax2.set_title('N coords') plt.savefig('example.png') ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  291103680
Powered by Datasette · Queries took 0.864ms · About: xarray-datasette