# How to make the colour legend white at 0.

**URL:** https://discourse.paraview.org/t/how-to-make-the-colour-legend-white-at-0/10001
**Category:** ParaView Support
**Tags:** vtk
**Created:** [July 13, 2022, 11:35am UTC](https://discourse.paraview.org/t/how-to-make-the-colour-legend-white-at-0/10001 "2022-07-13T11:35:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Paravu](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/5daacb/32.png) [@Paravu](https://discourse.paraview.org/u/Paravu)
#### Post date: [July 13, 2022, 11:35am UTC](https://discourse.paraview.org/t/how-to-make-the-colour-legend-white-at-0/10001/1 "2022-07-13T11:35:56Z")

</div>

Hi, I’d like values above 0 to be varying levels of red, and for values below to be varying levels of blue. I’d like 0 to be white.

How do I do that? Is it even possible?

---

<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: [July 13, 2022, 12:25pm UTC](https://discourse.paraview.org/t/how-to-make-the-colour-legend-white-at-0/10001/2 "2022-07-13T12:25:55Z")

</div>

I think you have a typo in your question. You did not specify the color you want for below 0.

The default color map goes from varying levels of blue at the low end, white in the middle, and varying levels of red at the high end. If blue and red are the colors you want, a simple way to make sure white is at zero is to click `Rescale to Custom Data Range` ![pqResetRangeCustom](https://discourse.paraview.org/uploads/default/original/2X/0/04caa46dd06194fe59ad0618acdde9c61edbbbf4.svg). From there you can set the low range to be the negative value of the high range. This will put the middle of the color bar at 0. Here is an example:

![image](https://discourse.paraview.org/uploads/default/original/2X/f/f45914f0bb8ab7af3208e25c2fbaeb3903929568.png)

In this example, I’ve set the low value to be -2.5 and the high value to be 2.5. You should use a range that is appropriate your data.

If you don’t want blue at the low end of the colors, you can edit the color map directly. Click the `Edit Color Map` button ![pqEditColor](https://discourse.paraview.org/uploads/default/original/2X/7/70aa10023e71939eec764c2b079e9b7c0cc6a4fd.svg) to open the controls to open the color editing controls. ParaView comes with lots of color maps that have one color at the low end, white in the middle, and another color at the high end. To see them, click the `Choose Preset` button ![pqFavorites](https://discourse.paraview.org/uploads/default/original/2X/3/33c5cd230d6bb914fde0b4bb94efc6a461e1e2d9.svg) in the color editor window. I suggest looking at the `Diverging` set of color maps, many of which have white in the middle.

![image](https://discourse.paraview.org/uploads/default/original/2X/7/7a0f4968d1df9700be9440f7b805b40c01b3d9cb.png)

If you need more controls, ParaView lets you specifically set what color should be used for each value. See the _ParaView User’s Guide_ for more information: [2. Color maps and transfer functions — ParaView Documentation 5.10.1 documentation](https://docs.paraview.org/en/v5.10.1/ReferenceManual/colorMapping.html#editing-the-transfer-functions-in-paraview)

---

<div class="post-metadata">

### Author: ![Paravu](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/5daacb/32.png) [@Paravu](https://discourse.paraview.org/u/Paravu)
#### Post date: [July 13, 2022, 12:49pm UTC](https://discourse.paraview.org/t/how-to-make-the-colour-legend-white-at-0/10001/3 "2022-07-13T12:49:10Z")

</div>

My apologies. You’re right, it was a typo - I have fixed it.

Specifically I want above 0 to be red and below to be blue, but for 0 to be white. I can’t use the custom data ranges of equivalent positive and minus values for some of my plots unfortunately. 😕

---

<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: [July 13, 2022, 1:31pm UTC](https://discourse.paraview.org/t/how-to-make-the-colour-legend-white-at-0/10001/4 "2022-07-13T13:31:24Z")

</div>

I don’t understand why you would not be able to edit the data ranges, but if you want, you can open up the color map editor ![image](https://discourse.paraview.org/uploads/default/original/2X/7/70aa10023e71939eec764c2b079e9b7c0cc6a4fd.svg) and move the white control point to be at value 0.

---

<div class="post-metadata">

### Author: ![Paravu](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/5daacb/32.png) [@Paravu](https://discourse.paraview.org/u/Paravu)
#### Post date: [July 13, 2022, 1:39pm UTC](https://discourse.paraview.org/t/how-to-make-the-colour-legend-white-at-0/10001/5 "2022-07-13T13:39:29Z")

</div>

Oh, I can edit them, but they don’t produce a plot that well presents the geometrical differences
