# 2D colormap

**URL:** https://discourse.paraview.org/t/2d-colormap/12772
**Category:** ParaView Support
**Created:** [August 29, 2023, 6:15pm UTC](https://discourse.paraview.org/t/2d-colormap/12772 "2023-08-29T18:15:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![cyrille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cyrille/32/11214_2.png) [@cyrille](https://discourse.paraview.org/u/cyrille)
#### Post date: [August 29, 2023, 6:15pm UTC](https://discourse.paraview.org/t/2d-colormap/12772/1 "2023-08-29T18:15:18Z")

</div>

Hello,

I’m looking for a way to visualize two continuous scalars with one 2D-colormap. I’ve seen that there is a feature for volume rendering, allowing to tune the opacity based on a scalar field. But it my case, I would like to avoid the use of opacity, as I’m working with slices. So it is really about having two “mixed colorscales”.  
A possible colormap could be like the following :

 ![2D-colormap](https://discourse.paraview.org/uploads/default/original/2X/1/13b4bd5c599295ad00f24558e35d74fcd6f6d0c1.png)

Do you know if it’s is allready possible to implement this in Paraview (maybe a programmable filter) ? Or should I add it as feature request ?

Thank you very much !

Cyrille

---

<div class="post-metadata">

### Author: ![Venke](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/6de8d8/32.png) [@Venke](https://discourse.paraview.org/u/Venke)
#### Post date: [August 30, 2023, 6:54am UTC](https://discourse.paraview.org/t/2d-colormap/12772/2 "2023-08-30T06:54:09Z")

</div>

Hi Cyrille  
Just an idea… Maybe you could use the RGB coloring keeping one channel fixed and mapping the scalars to the two remaining channels? E.g. map scalar 1 to red, scalar 2 to green and keep blue at zero? (For RGB coloring, this might help: [https://discourse.paraview.org/t/coloring-surface-by-predefined-rgb-values/6011](https://discourse.paraview.org/t/coloring-surface-by-predefined-rgb-values/6011))  
Cheers,  
Venke

---

<div class="post-metadata">

### Author: ![cyrille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cyrille/32/11214_2.png) [@cyrille](https://discourse.paraview.org/u/cyrille)
#### Post date: [August 30, 2023, 1:29pm UTC](https://discourse.paraview.org/t/2d-colormap/12772/3 "2023-08-30T13:29:21Z")

</div>

Thanks,  
I think that will work very well. As soon as I will have work through it, I will share it.

Cyrille
