<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hey Yotam,<div><br></div><div>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.</div><div><br></div><div>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?</div><div><br></div><div>-Eric</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div>------------------------------------------------------</div><div>Eric E Monson</div><div>Duke Visualization Technology Group</div><div><span class="Apple-style-span" style="font-size: medium;"><br></span></div></span>
</div>
<br><div><div>On Nov 16, 2010, at 3:15 AM, Yotam Avital wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi guys.&nbsp;<div><br></div><div>I'm using paraview to generate a display the results of my lipids simulation.&nbsp;</div><div><br></div><div>Each runtime I print to file exactly 3008 points which are divided into 4 types:</div>

<div><ol><li>8 stationary particles. I used to set the size of the display as constant (marking the corners positions). They get a value of 100</li><li>1000 Hydrophilic particles. It doesn't matter what are those, it is only important to know that they get a value of 1</li>

<li>1000 Hydrophobic particles which get the value of 2.</li><li>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.</li></ol><div>

<br></div></div><div>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.&nbsp;</div>

<div><br></div><div>I tried to create a costume color map:</div><div><br></div><div><font class="Apple-style-span" face="verdana, sans-serif">&lt;ColorMap name="a" space="RGB"&gt;</font></div><div><font class="Apple-style-span" face="verdana, sans-serif">&lt;Point x="100" o="1" r="0" g="0" b="0"/&gt;</font></div>

<div><font class="Apple-style-span" face="verdana, sans-serif">&lt;Point x="1" o="1" r="1,0" g="0" b="0"/&gt;</font></div>

<div><font class="Apple-style-span" face="verdana, sans-serif">&lt;Point x="2" o="1" r="0" g="1.0" b="0"/&gt;</font></div>

<div><font class="Apple-style-span" face="verdana, sans-serif">&lt;Point x="3" o="1" r="0" g="1.0" b="0"/&gt;</font></div>

<div><font class="Apple-style-span" face="verdana, sans-serif">&lt;/ColorMap&gt;</font></div><div><br></div><div>but I get a gradient between red and black.&nbsp;</div><div><br></div><div>What have I missed?</div><div><br></div>

<div>Thanks.</div><div><br></div><div><br></div><div><br></div><div><br></div></div>
_______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br></blockquote></div><br></div></body></html>