issues: 1338173609
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1338173609 | I_kwDOAMm_X85Pwuip | 6914 | plt.imshow() vs xarray_dataset.plot.imshow() not rendering correctly | Potential Bug | 32569566 | closed | 0 | 4 | 2022-08-14T08:40:56Z | 2023-03-22T20:46:23Z | 2023-03-22T20:46:23Z | NONE | What is your issue?I have 2d data which I want to visualise. The visuals look completely different if I use plt.imshow() vs xarray_dataset.plot.imshow() There are mainly two issues - First, the array is flipped. (I think this is manageable but inconsistent) - Secondly, the plots don't look correct. This can be best illustrated by the figures themselves. For example this is the xarray code I am using.
And this is the image that I get.
Secondly, when I use the matplotlib to plot the values.
Since it is a discharge data I would expect to see the second plot. Can someone tell me what is the issue here? P.S. This is how day_data looks like.
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/6914/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |