home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 377550475

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/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
Powered by Datasette · Queries took 0.53ms · About: xarray-datasette