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/2030#issuecomment-497739327,https://api.github.com/repos/pydata/xarray/issues/2030,497739327,MDEyOklzc3VlQ29tbWVudDQ5NzczOTMyNw==,1550771,2019-05-31T14:55:56Z,2019-05-31T14:55:56Z,NONE,"Small update in the syntax, which also happens to make it easier to set fps:

```python
import xarray as xr
import holoviews as hv
hv.extension('matplotlib')

air = xr.tutorial.open_dataset('air_temperature').load()
ds = hv.Dataset(air.isel(time=range(100)))
images = ds.to(hv.Image, ['lon', 'lat']).options(fig_inches=(10, 5), colorbar=True, cmap='viridis')
hv.save(images, 'hv_anim.mp4', fps=4)
```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,309965118
https://github.com/pydata/xarray/issues/2030#issuecomment-497722295,https://api.github.com/repos/pydata/xarray/issues/2030,497722295,MDEyOklzc3VlQ29tbWVudDQ5NzcyMjI5NQ==,21049064,2019-05-31T14:09:35Z,2019-05-31T14:09:35Z,NONE,"@philippjfr 

How do you change the `fps` in the code that you posted [above](https://github.com/pydata/xarray/issues/2030#issuecomment-377550475)

Thanks for your help!","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,309965118
https://github.com/pydata/xarray/issues/2030#issuecomment-377571072,https://api.github.com/repos/pydata/xarray/issues/2030,377571072,MDEyOklzc3VlQ29tbWVudDM3NzU3MTA3Mg==,13205162,2018-03-30T17:02:40Z,2018-03-30T17:03:09Z,CONTRIBUTOR,"@philippjfr Even with the alteration I still get a `HoloMap type not found` (using HV 1.9.5) error. I can still see the animation, though. And switching to 'Agg' did allow me to save the animation in mp4, which is good. All workarounds aside, this works pretty well. Thanks a lot to all.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,309965118
https://github.com/pydata/xarray/issues/2030#issuecomment-377570022,https://api.github.com/repos/pydata/xarray/issues/2030,377570022,MDEyOklzc3VlQ29tbWVudDM3NzU3MDAyMg==,1550771,2018-03-30T16:58:11Z,2018-03-30T16:58:11Z,NONE,"@benbovy Yes that's right, my apologies, I always work with the bleeding edge and forget what was merged before the last release. What I posted will be valid in 1.10.0, due to be released next week.","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,309965118
https://github.com/pydata/xarray/issues/2030#issuecomment-377569501,https://api.github.com/repos/pydata/xarray/issues/2030,377569501,MDEyOklzc3VlQ29tbWVudDM3NzU2OTUwMQ==,4160723,2018-03-30T16:56:05Z,2018-03-30T16:56:05Z,MEMBER,"In the example above I had to change this line: 

```python
images = ds.to(hv.Image, ['lon', 'lat']).options(fig_inches=(10, 5), colorbar=True, cmap='viridis')
```

to 

```python
images = ds.to(hv.Image, ['lon', 'lat']).options('Image', fig_inches=(10, 5), colorbar=True, cmap='viridis')
```

in order to avoid 

```python-traceback
ValueError: HoloMap type not found, could not apply options.
```

(Holoviews version 1.10.0a2)
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,309965118
https://github.com/pydata/xarray/issues/2030#issuecomment-377566839,https://api.github.com/repos/pydata/xarray/issues/2030,377566839,MDEyOklzc3VlQ29tbWVudDM3NzU2NjgzOQ==,1550771,2018-03-30T16:44:35Z,2018-03-30T16:44:35Z,NONE,"> I hand't found anything like that.

Yes, the ``Plotting with Matplotlib`` section in the user guide should cover it but it appears to be broken in the last website build.

>For me, %%output isn't a recognized magic command

That will only work in the notebook after you have run ``hv.extension('matplotlib')``.

>fails for me with a tkinter-related error (can't invoke ""wm"" command), so I really couldn't see anything yet.

You might have to switch to a different matplotlib GUI toolkit or forego one entirely and use agg, either by declaring it in your matplotlib.rc or by setting the backend before importing holoviews, e.g.:

```
import matplotlib
matplotlib.use('Agg')
```

","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,309965118
https://github.com/pydata/xarray/issues/2030#issuecomment-377565812,https://api.github.com/repos/pydata/xarray/issues/2030,377565812,MDEyOklzc3VlQ29tbWVudDM3NzU2NTgxMg==,13205162,2018-03-30T16:40:02Z,2018-03-30T16:40:02Z,CONTRIBUTOR,"@philippjfr Thanks for the comment. I hand't found anything like that. For me, `%%output` isn't a recognized magic command, and the `renderer.save` command fails for me with a tkinter-related error (can't invoke ""wm"" command), so I really couldn't see anything yet. But I believe I'll be able to solve that eventually.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,309965118
https://github.com/pydata/xarray/issues/2030#issuecomment-377550475,https://api.github.com/repos/pydata/xarray/issues/2030,377550475,MDEyOklzc3VlQ29tbWVudDM3NzU1MDQ3NQ==,1550771,2018-03-30T15:31:45Z,2018-03-30T15:44:24Z,NONE,">The fact that it can't create an animation file (as far as I could tell so far) does mean I can't use it, though

You can create animation files using the matplotlib backend in holoviews, as a simple example:

```python
import xarray as xr
import holoviews as hv
hv.extension('matplotlib')

air = xr.tutorial.load_dataset('air_temperature')
ds = hv.Dataset(air.isel(time=range(100)))
images = ds.to(hv.Image, ['lon', 'lat']).options(fig_inches=(10, 5), colorbar=True, cmap='viridis')
```

To display it in the notebook:

```python
%%output holomap='mp4'
images
```

To save it to file:

```python
renderer = hv.renderer('matplotlib')
renderer.save(images, 'hv_anim', 'mp4')
```","{""total_count"": 5, ""+1"": 5, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,309965118
https://github.com/pydata/xarray/issues/2030#issuecomment-377543021,https://api.github.com/repos/pydata/xarray/issues/2030,377543021,MDEyOklzc3VlQ29tbWVudDM3NzU0MzAyMQ==,13205162,2018-03-30T15:00:44Z,2018-03-30T15:00:44Z,CONTRIBUTOR,"I didn't know holoviews existed, thanks for pointing that out to me. The fact that it can't create an animation file (as far as I could tell so far) does mean I can't use it, though. So I'll still try to pursue the matplotlib animation option, although maybe for most users holoviews+xarray might already be enough (I don't know).","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,309965118
https://github.com/pydata/xarray/issues/2030#issuecomment-377487248,https://api.github.com/repos/pydata/xarray/issues/2030,377487248,MDEyOklzc3VlQ29tbWVudDM3NzQ4NzI0OA==,4160723,2018-03-30T09:26:46Z,2018-03-30T09:26:46Z,MEMBER,"@tomchor Note that [holoviews](http://holoviews.org/) supports xarray objects.

You can find an example of an animation made using holoviews and xarray here:
http://nbviewer.jupyter.org/gist/benbovy/e9d4f3d3be076de24b8842dae109d6e7","{""total_count"": 1, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 1, ""rocket"": 0, ""eyes"": 0}",,309965118
https://github.com/pydata/xarray/issues/2030#issuecomment-377439646,https://api.github.com/repos/pydata/xarray/issues/2030,377439646,MDEyOklzc3VlQ29tbWVudDM3NzQzOTY0Ng==,13205162,2018-03-30T04:02:24Z,2018-03-30T04:16:17Z,CONTRIBUTOR,"Unfortunately I don't have any example with DataArray right now. Since I never could take advantage of DataArray's plotting capabilities for animations, I always did animations using pure Numpy. However, I'm talking about the standard matplotlib animations. Here's an example taken from [here](https://matplotlib.org/examples/animation/basic_example_writer.html):

```import numpy as np
import matplotlib
matplotlib.use(""Agg"")
import matplotlib.pyplot as plt
import matplotlib.animation as animation


def update_line(num, data, line):
    line.set_data(data[..., :num])
    return line,

# Set up formatting for the movie files
Writer = animation.writers['ffmpeg']
writer = Writer(fps=15, metadata=dict(artist='Me'), bitrate=1800)


fig1 = plt.figure()

data = np.random.rand(2, 25)
l, = plt.plot([], [], 'r-')
plt.xlim(0, 1)
plt.ylim(0, 1)
plt.xlabel('x')
plt.title('test')
line_ani = animation.FuncAnimation(fig1, update_line, 25, fargs=(data, l),
                                   interval=50, blit=True)
line_ani.save('lines.mp4', writer=writer)
```

If you have some directions on a smart way to bring xarray into the picture, maybe I can try to come up with an example that might evolve into a contribution.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,309965118
https://github.com/pydata/xarray/issues/2030#issuecomment-377437490,https://api.github.com/repos/pydata/xarray/issues/2030,377437490,MDEyOklzc3VlQ29tbWVudDM3NzQzNzQ5MA==,5635139,2018-03-30T03:43:44Z,2018-03-30T03:44:10Z,MEMBER,"Sounds interesting and thanks for your first issue.

What's an example of an animation?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,309965118