# Disabling hiden interpolation in go.Surface function

**URL:** <https://community.plotly.com/t/disabling-hiden-interpolation-in-go-surface-function/56867>\
**Category:** 📊 Plotly Python\
**Created:** [September 22, 2021, 10:20am UTC](https://community.plotly.com/t/disabling-hiden-interpolation-in-go-surface-function/56867 "2021-09-22T10:20:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bazeiheteuppoi](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@bazeiheteuppoi](https://community.plotly.com/u/bazeiheteuppoi)\
**Post date:** [September 22, 2021, 10:20am UTC](https://community.plotly.com/t/disabling-hiden-interpolation-in-go-surface-function/56867/1 "2021-09-22T10:20:39Z")

</div>

Hey there,

I’m new to the plotly community and I’m enjoying very much this library (using python).  
I’m plotting 3D surface plot representing mountain ridge and snow values using `go.Surface` function.

```auto
fig=go.Figure(data=[go.Surface(x=(datax), y=datay, z=dataz, surfacecolor=datacolor[0], cmax=cmax, cmin=cmin, cmid=cmid, colorscale=cmap, hovertemplate ="x: %{x}"+\
"
y: %{y}"+\
"
z:%{z}"+\
"
color:%{surfacecolor}

")])

```

Here is the problem:  
I’m assigning some snow variable to the surfacecolor argument `surfacecolor=datacolor[0]` but I’m seeing on the results what look like to me bilinear interpolation for surfacecolor.

 ![newplot](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/b/a/baf0b36537546dbb3c521e3f8d9aa240aef8558a.jpeg)  
Here you can see my plotly go surface (plotly makes great plots 🙂 )  
with below a zoom on a specific mountain where you can clearly see the color interpolation  
 ![newplot(1)](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/8/8/88599af29c4a49fb2ccf0bf501b1f3cfe2b75ead.jpeg)

To compare here is raw data i’m feeding surfacecolor with (datacolor[0])

 ![bokeh_plot(1)2](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/d/f/df8ded15d91bfe250e1c56997f738804b004a84f.png)  
you can clearly see on the same mountain without interpolation  
(I know my raw data are pixelated but it is my result and need it to stay that way)  
 ![bokeh_plot(2)](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/5/a/5a5c35dce022e250d89f1144933124f402270d8c.png)

My problem is to find a way to disable this interpolation and show my results data superposed to the 3D mountain.  
I have looked in the documentation and didn’t find any option on an interpolation setting where clearly there is interpolation under the hood.  
If you have any ideas, feel free to suggest.

Thanks

---

<div class="post-metadata">

**Author:** ![bazeiheteuppoi](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@bazeiheteuppoi](https://community.plotly.com/u/bazeiheteuppoi)\
**Post date:** [September 28, 2021, 11:59am UTC](https://community.plotly.com/t/disabling-hiden-interpolation-in-go-surface-function/56867/3 "2021-09-28T11:59:22Z")

</div>

Does any one have a solution ?

---

<div class="post-metadata">

**Author:** ![bazeiheteuppoi](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@bazeiheteuppoi](https://community.plotly.com/u/bazeiheteuppoi)\
**Post date:** [November 23, 2021, 9:17am UTC](https://community.plotly.com/t/disabling-hiden-interpolation-in-go-surface-function/56867/5 "2021-11-23T09:17:52Z")

</div>

Help would be appreciated 🙂

---

<div class="post-metadata">

**Author:** ![empet](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@empet](https://community.plotly.com/u/empet)\
**Post date:** [November 26, 2021, 7:52pm UTC](https://community.plotly.com/t/disabling-hiden-interpolation-in-go-surface-function/56867/6 "2021-11-26T19:52:59Z")

</div>

@bazeiheteuppoi

There is no attribute for for go.Surface to set the interpolation type.
