# How to colorise unstructured grid by values (discrete or continious)

**URL:** https://discourse.vtk.org/t/how-to-colorise-unstructured-grid-by-values-discrete-or-continious/7137
**Category:** Support
**Created:** [November 10, 2021, 12:46pm UTC](https://discourse.vtk.org/t/how-to-colorise-unstructured-grid-by-values-discrete-or-continious/7137 "2021-11-10T12:46:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![user2](https://discourse.vtk.org/user_avatar/discourse.vtk.org/user2/32/4245_2.png) [@user2](https://discourse.vtk.org/u/user2)
#### Post date: [November 10, 2021, 12:46pm UTC](https://discourse.vtk.org/t/how-to-colorise-unstructured-grid-by-values-discrete-or-continious/7137/1 "2021-11-10T12:46:54Z")

</div>

Hi , i’m new to VTK. Result of creating and plotting UnstructeredGrid is left image

![kov](https://discourse.vtk.org/uploads/default/original/2X/5/54bb0648e10c72b41bd2e19f54cb09bfe6a23843.png)

How can i obtain result close to right image? Do i have to render or to colorise Grid, how to add color legend? Reading docs without examples didn’t help much

---

<div class="post-metadata">

### Author: ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)
#### Post date: [November 10, 2021, 11:05pm UTC](https://discourse.vtk.org/t/how-to-colorise-unstructured-grid-by-values-discrete-or-continious/7137/2 "2021-11-10T23:05:38Z")

</div>

This example may help, it shows you how to add a legend [ReadLegacyUnstructuredGrid](https://kitware.github.io/vtk-examples/site/Cxx/IO/ReadLegacyUnstructuredGrid/). This is old but may help: [https://public.kitware.com/pipermail/vtkusers/2013-February/078465.html](https://public.kitware.com/pipermail/vtkusers/2013-February/078465.html)

---

<div class="post-metadata">

### Author: ![user2](https://discourse.vtk.org/user_avatar/discourse.vtk.org/user2/32/4245_2.png) [@user2](https://discourse.vtk.org/u/user2)
#### Post date: [November 11, 2021, 4:57am UTC](https://discourse.vtk.org/t/how-to-colorise-unstructured-grid-by-values-discrete-or-continious/7137/3 "2021-11-11T04:57:42Z")

</div>

Thanks!
