# Wrong colors if 2 scalars defined

**URL:** https://discourse.paraview.org/t/wrong-colors-if-2-scalars-defined/15367
**Category:** ParaView Support
**Created:** [September 9, 2024, 9:38pm UTC](https://discourse.paraview.org/t/wrong-colors-if-2-scalars-defined/15367 "2024-09-09T21:38:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![amim](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@amim](https://discourse.paraview.org/u/amim)
#### Post date: [September 9, 2024, 9:38pm UTC](https://discourse.paraview.org/t/wrong-colors-if-2-scalars-defined/15367/1 "2024-09-09T21:38:30Z")

</div>

I have a simple vtk legacy file where I defined 2 SCALAR fields under CELL\_DATA. The first one is of “int” type and uses the default LOOKUP\_TABLE. The second one is of “float” type and uses my own LOOKUP\_TABLE.

When I display the elements and color the elements based on the float value the colors are all wrong. However, if I remove the “int” SCALAR from the file then the colors are displayed correctly.

I’ve included the file. If I display the colors from the cstatus field they are wrong. But if I delete the cuid entry from the file then cstatus displays the right colors.

Can anybody explain how to fix this?

Thanks.  
[simple.vtk](https://discourse.paraview.org/uploads/short-url/uo6rU1x0KTIoGtuKvUgSeYeXKpK.vtk) (2.2 KB)
