# Clip colours in a contour plot

**URL:** https://discourse.paraview.org/t/clip-colours-in-a-contour-plot/7552
**Category:** ParaView Support
**Created:** [July 5, 2021, 1:59pm UTC](https://discourse.paraview.org/t/clip-colours-in-a-contour-plot/7552 "2021-07-05T13:59:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Tobermory](https://discourse.paraview.org/user_avatar/discourse.paraview.org/tobermory/32/7053_2.png) [@Tobermory](https://discourse.paraview.org/u/Tobermory)
#### Post date: [July 5, 2021, 1:59pm UTC](https://discourse.paraview.org/t/clip-colours-in-a-contour-plot/7552/1 "2021-07-05T13:59:48Z")

</div>

In the post-processing packages for commercial CFD codes, there is often a feature where you can “clip the colour scale” on a contour plot, so that values that are off the end of your defined legend scale are plotted as transparent. For example, if my legend scale goes from 0 to 10, red to blue, then areas of the contour plot that have values 0 to 10 will be coloured, values less than zero or more than 10 will be transparent (if I select the clipping feature).

Is there such a functionality in paraview?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [July 5, 2021, 2:07pm UTC](https://discourse.paraview.org/t/clip-colours-in-a-contour-plot/7552/2 "2021-07-05T14:07:36Z")

</div>

It is not automatic but easy to do in ParaView

- Open your data
- Color by the array you want
- Click on the “Edit color map” button
- Rescale the color map with the bounds you want
- Click on the “Enable Opacity for surfaces”
- Use the attached square opacity function as shown

 ![a](https://discourse.paraview.org/uploads/default/original/2X/a/a3f8584469948e4de937cd65c22b510f0b33524f.jpeg)

---

<div class="post-metadata">

### Author: ![Tobermory](https://discourse.paraview.org/user_avatar/discourse.paraview.org/tobermory/32/7053_2.png) [@Tobermory](https://discourse.paraview.org/u/Tobermory)
#### Post date: [July 5, 2021, 2:35pm UTC](https://discourse.paraview.org/t/clip-colours-in-a-contour-plot/7552/3 "2021-07-05T14:35:23Z")

</div>

Perfect @mwestphal - many thanks!
