home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 488005900

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/pull/2729#issuecomment-488005900 https://api.github.com/repos/pydata/xarray/issues/2729 488005900 MDEyOklzc3VlQ29tbWVudDQ4ODAwNTkwMA== 35968931 2019-04-30T15:47:40Z 2019-04-30T15:47:40Z MEMBER

I've done some more work on this, you can now:

Plot multiple animated lines

```python dat2d = air.isel(lat=[10, 15, 20])

anim = dat2d.plot(animate='time', hue='lat') anim.save('line.gif', writer='imagemagick') plt.show() ```

Add static lines to an animated plot

```python

draw animated line

anim = dat1d.plot(animate='time', label='evolving')

draw static line

plot will be drawn on to current axes unless ax argument given

dat1d.mean(dim='time').plot(color='g', label='average')

plt.legend(loc='upper right')

anim.save('average.gif', writer='imagemagick') plt.show() ```

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