[Paraview] a quick question about color map

Eric E. Monson emonson at cs.duke.edu
Tue Nov 16 09:03:58 EST 2010


Hey Yotam,

Personally, I would first do a Threshold filter to remove the points with value 100 rather than try to adapt the color map to these "unwanted" points or make another data file. Then, just remove the 100 value color from your map and it might be more obvious that it's working.

I'm not sure why it doesn't work the way you have it now, though. When I load this colormap in to ParaView 3.8.1 it looks fine to me. (You're mixing commas and periods for the decimal markers, but it seems to deal with that fine...) If you hit "Edit Color Map" to get to the Color Scale Editor, does the scale (min,max) of your color map range match your data values range? Can you check in the Information tab and make sure your scalar values are getting read in properly?

-Eric

------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group


On Nov 16, 2010, at 3:15 AM, Yotam Avital wrote:

> Hi guys. 
> 
> I'm using paraview to generate a display the results of my lipids simulation. 
> 
> Each runtime I print to file exactly 3008 points which are divided into 4 types:
> 8 stationary particles. I used to set the size of the display as constant (marking the corners positions). They get a value of 100
> 1000 Hydrophilic particles. It doesn't matter what are those, it is only important to know that they get a value of 1
> 1000 Hydrophobic particles which get the value of 2.
> 1000 Hydrophobic particles which are different that those in the previous line but should appear similar on the output. They get a value of 3.
> 
> What I want is to create is an image with 2 colors for each of the 3000 particles. The image should have red color for particle number 1 and any other color for particles number 2 and 3. I also want to remove the 8 stationary particles of value 100 which I think I can do by creating another file. 
> 
> I tried to create a costume color map:
> 
> <ColorMap name="a" space="RGB">
> <Point x="100" o="1" r="0" g="0" b="0"/>
> <Point x="1" o="1" r="1,0" g="0" b="0"/>
> <Point x="2" o="1" r="0" g="1.0" b="0"/>
> <Point x="3" o="1" r="0" g="1.0" b="0"/>
> </ColorMap>
> 
> but I get a gradient between red and black. 
> 
> What have I missed?
> 
> Thanks.
> 
> 
> 
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
> 
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20101116/40827bb0/attachment-0001.htm>


More information about the ParaView mailing list