# How to change color to white outside contour range?

**URL:** <https://community.plotly.com/t/how-to-change-color-to-white-outside-contour-range/60198>\
**Category:** 📊 Plotly Python\
**Created:** [January 18, 2022, 6:18pm UTC](https://community.plotly.com/t/how-to-change-color-to-white-outside-contour-range/60198 "2022-01-18T18:18:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![roudan](https://avatars.discourse-cdn.com/v4/letter/r/51bf81/32.png) [@roudan](https://community.plotly.com/u/roudan)\
**Post date:** [January 18, 2022, 6:18pm UTC](https://community.plotly.com/t/how-to-change-color-to-white-outside-contour-range/60198/1 "2022-01-18T18:18:15Z")

</div>

Hi

I am using below to plot contour, I’d like to set color the white(not shown) if value is outside contour range like below z\_min. For my plot, everything below z\_min is still blue color. I saw it is working from the below example after setting start=, end= inside contour=dict(). Thanks for your help.

> **[Contour Plots](https://plotly.com/python/contour-plots/)**
>
> How to make Contour plots in Python with Plotly.

```
fig.add_trace(go.Contour(
                            # last column, either pressure or temperature
                            z = Z.T,
                            x = X[:,0], 
                            y = Y[0], 
                            colorscale='Jet',
                            contours=dict(
                                    start=z_min,
                                    end=z_max,
                                    size=25,
                                    coloring="heatmap"),
                            zmin=z_min,
                            zmax=z_max
    
                          )
                              )
```
