# Create a color map that has a color gradient between 0 and 4 and another color above 4

**URL:** https://discourse.paraview.org/t/create-a-color-map-that-has-a-color-gradient-between-0-and-4-and-another-color-above-4/8986
**Category:** ParaView Support
**Created:** [February 16, 2022, 2:57pm UTC](https://discourse.paraview.org/t/create-a-color-map-that-has-a-color-gradient-between-0-and-4-and-another-color-above-4/8986 "2022-02-16T14:57:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Resa](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/94ad74/32.png) [@Resa](https://discourse.paraview.org/u/Resa)
#### Post date: [February 16, 2022, 2:57pm UTC](https://discourse.paraview.org/t/create-a-color-map-that-has-a-color-gradient-between-0-and-4-and-another-color-above-4/8986/1 "2022-02-16T14:57:34Z")

</div>

Hey there,

I would like to color a buch of spheres in any gradient (for example “X Ray” white to black) between the values 0 to 4. But above 4 I would like to colorize everything in yellow (everything above 4 is nan).

How could I do that?

Thanks!

---

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [February 16, 2022, 3:26pm UTC](https://discourse.paraview.org/t/create-a-color-map-that-has-a-color-gradient-between-0-and-4-and-another-color-above-4/8986/2 "2022-02-16T15:26:42Z")

</div>

First, change the scalar range from 0 to 4 if you have not already. ![image](https://discourse.paraview.org/uploads/default/original/2X/d/dec2bce35105bc8bb33585b22cdae9f94e9b25da.png)

Next, open the color map editor, click the advanced toggle ![image](https://discourse.paraview.org/uploads/default/original/2X/9/9111d6939f0dfcdcceb044a936cd012b3264f815.png) and find the option named `Use Above Color Range`. Turn on the checkbox and set the color you would like.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/d/d98acdc54a3e2fc9d8cea614f0f6e9a39c48fd12.jpeg)
