[Paraview] Non-uniform colormaps in Paraview

Ruggiero Guida ruggiero.guida at gmail.com
Thu Apr 7 08:16:24 EDT 2016


Hi,

I am trying to create a non-uniform colormap in Paraview 4.4 (OSX).

The final goal is to generate a contour with discrete bands based on the
colours in this image

http://james-ramsden.com/wp-content/uploads/2015/07/UTCI_scale.png

My current colormap file is

<ColorMaps>
    <ColorMap name="UTCILabels" space="RGB">
        <Point x="-99.0" o="1.0" r="0.011765" g="0.090196" b="0.564706"/>
        <Point x="-40.0" o="1.0" r="0.023529" g="0.141176" b="0.792157"/>
        <Point x="-27.0" o="1.0" r="0.035294" g="0.188235" b="0.984314"/>
        <Point x="-13.0" o="1.0" r="0.000000" g="0.474510" b="1.000000"/>
        <Point x="0.0" o="1.0" r="0.000000" g="0.792157" b="1.000000"/>
        <Point x="9.0" o="1.0" r="0.000000" g="0.772549" b="0.000000"/>
        <Point x="26.0" o="1.0" r="1.000000" g="0.568627" b="0.000000"/>
        <Point x="32.0" o="1.0" r="0.996078" g="0.152941" b="0.000000"/>
        <Point x="38.0" o="1.0" r="0.800000" g="0.113725" b="0.000000"/>
        <Point x="46.0" o="1.0" r="0.576471" g="0.066667" b="0.000000"/>
        <Point x="99.0" o="1.0" r="0.576471" g="0.066667" b="0.000000"/>
    </ColorMap>
</ColorMaps>

I am struggling as is seems that PV keeps adding datapoints in the wrong
place. Also, the band above 26 becomes one single color.
I should note that I am using the 'Color Discretization' Option with 11
colors.

Is it possible to do this? The other alternative that I see is to create an
additional output from my code with the actual labels and then use
'Interpret Values As Categories'.

Thanks
Ruggiero
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160407/9e7f5d9f/attachment.html>


More information about the ParaView mailing list