# How to port the plot parameters from bokeh holoviews Image to matplotlib gif

**URL:** <https://discourse.holoviz.org/t/how-to-port-the-plot-parameters-from-bokeh-holoviews-image-to-matplotlib-gif/3453>\
**Category:** HoloViews\
**Created:** [March 11, 2022, 3:56pm UTC](https://discourse.holoviz.org/t/how-to-port-the-plot-parameters-from-bokeh-holoviews-image-to-matplotlib-gif/3453 "2022-03-11T15:56:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KevinYanesG](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/kevinyanesg/32/3318_2.png) [@KevinYanesG](https://discourse.holoviz.org/u/KevinYanesG)\
**Post date:** [March 11, 2022, 3:56pm UTC](https://discourse.holoviz.org/t/how-to-port-the-plot-parameters-from-bokeh-holoviews-image-to-matplotlib-gif/3453/1 "2022-03-11T15:56:08Z")

</div>

Hello,  
How can I port the plot parameters from bokeh holoviews Image to a matplotlib gif. I know pretty sure that it needs to be possible, because I did it yesterday (s. screenshot from gif:  
 ![image](https://discourse.holoviz.org/uploads/default/original/2X/2/2869e29b57609af5df3ea5915b56a31dcc9d27bc.png)  
the plot params, such as the colorbar were created with bokeh)  
, but somehow I can’t reproduce it anymore, although the code is the same.

The relevant code:

```python
rand, x, y, z, step = np.random.randn(2, 10, 10, 10), np.linspace(0, 10, 10), np.linspace(0, 10, 10), np.linspace(0, 10, 10), [0, 1]
xa2 = xr.DataArray(rand, coords=dict(step=step, x=x, y=y, z=z, )
             , dims=["step", "x", "y", "z"], name="field2") 
hv_dst = hv.Dataset(xa2)
hv_imt = hv_dst.to(hv.Image)
fig = hv.render(hv_imt.opts(colorbar=True, width=500, height=400, cmap='seismic', clim=(-10 **-3, 10** -3)), backend='matplotlib')
test2 = fig.save("testissue.gif", fps=0.5, dpi=200,)

```

I would have expected that testissue.gif contained a `colorbar` and so on, but it doesn’t…

I also tried with `dynamic=True`, but didn’t help.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![KevinYanesG](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/kevinyanesg/32/3318_2.png) [@KevinYanesG](https://discourse.holoviz.org/u/KevinYanesG)\
**Post date:** [March 11, 2022, 3:57pm UTC](https://discourse.holoviz.org/t/how-to-port-the-plot-parameters-from-bokeh-holoviews-image-to-matplotlib-gif/3453/2 "2022-03-11T15:57:04Z")

</div>

This is the result that I got:  
 ![testissue](https://discourse.holoviz.org/uploads/default/original/2X/d/d6d4830fd5c8aeba4cceee130ad35647fb32864e.gif)

No `colorbar` can be seen, the `colormap` is not `seismic` and so on…

---

<div class="post-metadata">

**Author:** ![KevinYanesG](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/kevinyanesg/32/3318_2.png) [@KevinYanesG](https://discourse.holoviz.org/u/KevinYanesG)\
**Post date:** [March 14, 2022, 3:34pm UTC](https://discourse.holoviz.org/t/how-to-port-the-plot-parameters-from-bokeh-holoviews-image-to-matplotlib-gif/3453/3 "2022-03-14T15:34:17Z")

</div>

I was able to fix it with `hv.extension('matplotlib')` instead of `hv.extension('bokeh' ,'matplotlib')`.  
And then `hv.save(hv_imt.opts(colorbar=True, fig_size=500, cmap='seismic', clim=(-10 **-3, 10** -3)), fmt="gif", backend="matplotlib", filename="test3", fps=1)`, without needing to `render`.
