# Different colormaps for different components

**URL:** https://discourse.paraview.org/t/different-colormaps-for-different-components/1562
**Category:** ParaView Support
**Created:** [March 29, 2019, 10:27am UTC](https://discourse.paraview.org/t/different-colormaps-for-different-components/1562 "2019-03-29T10:27:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![soupault](https://discourse.paraview.org/user_avatar/discourse.paraview.org/soupault/32/1238_2.png) [@soupault](https://discourse.paraview.org/u/soupault)
#### Post date: [March 29, 2019, 10:27am UTC](https://discourse.paraview.org/t/different-colormaps-for-different-components/1562/1 "2019-03-29T10:27:43Z")

</div>

Hello,

I’m trying to visualize a section of a 3D scan along with a 3D multi-class segmentation mask. I want to keep the scan in grayscale and, at the same time, to use distinct colors for the different classes in the mask.

Currently, the scan and the mask are loaded as groups of PNG images. Then, I’m using `Coloring -> PNGImage` for both. It seems that if I change the color preset for one component, it is also being changed for another.

Is there a way to overcome this limitation?

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [April 1, 2019, 6:26pm UTC](https://discourse.paraview.org/t/different-colormaps-for-different-components/1562/2 "2019-04-01T18:26:35Z")

</div>

Not sure if I understand fully. However, when you have issues like this, you can use the calculator filter to create a variable that represents what you actually want to paint. Would that work?

---

<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: [April 1, 2019, 7:17pm UTC](https://discourse.paraview.org/t/different-colormaps-for-different-components/1562/3 "2019-04-01T19:17:44Z")

</div>

Assuming that you have loaded two different PNG files (and it sounds like you have), then you can click the `Use Separate Color Map` button ![pqSeparateColorMap24](https://discourse.paraview.org/uploads/default/original/2X/d/da74ba1296ce8a66f3b7027daa02bea1f144a2ed.png) to select a different color map to each object in the pipeline browser.

---

<div class="post-metadata">

### Author: ![soupault](https://discourse.paraview.org/user_avatar/discourse.paraview.org/soupault/32/1238_2.png) [@soupault](https://discourse.paraview.org/u/soupault)
#### Post date: [April 2, 2019, 11:48am UTC](https://discourse.paraview.org/t/different-colormaps-for-different-components/1562/4 "2019-04-02T11:48:31Z")

</div>

Thank you, that is exactly I was looking for! Both of your approaches work just fine.

For the info, `Use Separate Color Map` is not implemented in ParaView 5.4.1, which is distributed via the Ubuntu repos. Anyway, it is available in 5.6.0.
