# Using slider controls on a 3d surface plot

**URL:** <https://community.plotly.com/t/using-slider-controls-on-a-3d-surface-plot/17315>\
**Category:** 📊 Plotly Python\
**Created:** [December 24, 2018, 4:55am UTC](https://community.plotly.com/t/using-slider-controls-on-a-3d-surface-plot/17315 "2018-12-24T04:55:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![carpenter](https://avatars.discourse-cdn.com/v4/letter/c/bc8723/32.png) [@carpenter](https://community.plotly.com/u/carpenter)\
**Post date:** [December 24, 2018, 4:55am UTC](https://community.plotly.com/t/using-slider-controls-on-a-3d-surface-plot/17315/1 "2018-12-24T04:55:46Z")

</div>

I’m trying to use Plotly’s Python API to create a slider chart that controls a 3d surface plot. In this [link](https://plot.ly/python/sliders/), the example chart controls a line plot. Is there a way that I can replace the line plot with a surface plot similar to one of these [here](https://plot.ly/python/3d-surface-plots/)?

---

<div class="post-metadata">

**Author:** ![jmmease](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jmmease/32/3706_2.png) [@jmmease](https://community.plotly.com/u/jmmease)\
**Post date:** [December 26, 2018, 10:59am UTC](https://community.plotly.com/t/using-slider-controls-on-a-3d-surface-plot/17315/2 "2018-12-26T10:59:27Z")

</div>

Hi @carpenter,

Yes, this should be possible. You’ll need to replace the definition of `data` in the example above with the definition of the surface traces that you want.

```python
...
data = [dict(
        type='surface'
        visible = False,
        z = ...
        for step in np.arange(0,5,0.1)]
...

```

I think the rest of the example should apply as-is.

Hope that helps!  
-Jon
