<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3492" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=789215117-22122008><FONT face=Arial 
color=#0000ff size=2>Random color maps really aren't that hard to create, using 
a trick.&nbsp; Basically, you split the color map into ranges, for instance 
0-0.1=black, 0.100001-0.2=blue, etc.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=789215117-22122008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=789215117-22122008><FONT face=Arial 
color=#0000ff size=2>Here is a random color map that uses 24 colors.&nbsp; 
Notice that this isn't perfect, but it works pretty well.&nbsp; You can test it 
using disk_out_ref.exo, and looking at color.&nbsp; Obviously, you can easily 
break this into more colors.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=789215117-22122008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=789215117-22122008><FONT face=Arial 
color=#0000ff size=2>Cut and paste the following XML into a file, for instance 
colorMap24Random.xml.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=789215117-22122008><FONT face=Arial 
color=#0000ff size=2>Open your object.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=789215117-22122008><FONT face=Arial 
color=#0000ff size=2>Edit Color Map/ Choose Preset/ Import/ 
colorMap24Random.xml.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=789215117-22122008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=789215117-22122008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=789215117-22122008><FONT face=Arial 
color=#0000ff size=2>The other way may be to make a "random number variable" 
using your partitions number as input.&nbsp; This is done using the calculator 
and some random number formula.&nbsp; For an example, see the ParaView wiki, 
ParaView 3 Tutorial, Beginning Filters, Calculator.&nbsp; <A 
href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</A>.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=789215117-22122008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=789215117-22122008><FONT face=Arial 
color=#0000ff size=2>Alan</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=789215117-22122008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=789215117-22122008><FONT size=2>
<P>&lt;ColorMap name="25 Random Colors" space="RGB"&gt;</P>
<P>&lt;Point x="0.000" o="1" r="1.0" g="0.0" b="0.0"/&gt;</P>
<P>&lt;Point x="0.040" o="1" r="1.0" g="0.0" b="0.0"/&gt;</P>
<P>&lt;Point x="0.041" o="1" r="0.0" g="1.0" b="0.0"/&gt;</P>
<P>&lt;Point x="0.080" o="1" r="0.0" g="1.0" b="0.0"/&gt;</P>
<P>&lt;Point x="0.081" o="1" r="0.0" g="0.0" b="1.0"/&gt;</P>
<P>&lt;Point x="0.120" o="1" r="0.0" g="0.0" b="1.0"/&gt;</P>
<P>&lt;Point x="0.121" o="1" r="1.0" g="1.0" b="0.0"/&gt;</P>
<P>&lt;Point x="0.160" o="1" r="1.0" g="1.0" b="0.0"/&gt;</P>
<P>&lt;Point x="0.161" o="1" r="1.0" g="0.0" b="1.0"/&gt;</P>
<P>&lt;Point x="0.200" o="1" r="1.0" g="0.0" b="1.0"/&gt;</P>
<P>&lt;Point x="0.201" o="1" r="0.0" g="1.0" b="1.0"/&gt;</P>
<P>&lt;Point x="0.240" o="1" r="0.0" g="1.0" b="1.0"/&gt;</P>
<P>&lt;Point x="0.241" o="1" r="0.5" g="0.0" b="0.0"/&gt;</P>
<P>&lt;Point x="0.280" o="1" r="0.5" g="0.0" b="0.0"/&gt;</P>
<P>&lt;Point x="0.281" o="1" r="0.0" g="0.5" b="0.0"/&gt;</P>
<P>&lt;Point x="0.320" o="1" r="0.0" g="0.5" b="0.0"/&gt;</P>
<P>&lt;Point x="0.321" o="1" r="0.0" g="0.0" b="0.5"/&gt;</P>
<P>&lt;Point x="0.360" o="1" r="0.0" g="0.0" b="0.5"/&gt;</P>
<P>&lt;Point x="0.361" o="1" r="0.5" g="1.0" b="0.0"/&gt;</P>
<P>&lt;Point x="0.400" o="1" r="0.5" g="1.0" b="0.0"/&gt;</P>
<P>&lt;Point x="0.401" o="1" r="0.5" g="0.0" b="1.0"/&gt;</P>
<P>&lt;Point x="0.440" o="1" r="0.5" g="0.0" b="1.0"/&gt;</P>
<P>&lt;Point x="0.441" o="1" r="0.0" g="0.5" b="1.0"/&gt;</P>
<P>&lt;Point x="0.480" o="1" r="0.0" g="0.5" b="1.0"/&gt;</P>
<P>&lt;Point x="0.481" o="1" r="0.75" g="0.0" b="0.0"/&gt;</P>
<P>&lt;Point x="0.520" o="1" r="0.75" g="0.0" b="0.0"/&gt;</P>
<P>&lt;Point x="0.521" o="1" r="0.0" g="0.75" b="0.0"/&gt;</P>
<P>&lt;Point x="0.560" o="1" r="0.0" g="0.75" b="0.0"/&gt;</P>
<P>&lt;Point x="0.561" o="1" r="0.0" g="0.0" b="0.75"/&gt;</P>
<P>&lt;Point x="0.600" o="1" r="0.0" g="0.0" b="0.75"/&gt;</P>
<P>&lt;Point x="0.601" o="1" r="0.75" g="1.0" b="0.0"/&gt;</P>
<P>&lt;Point x="0.640" o="1" r="0.75" g="1.0" b="0.0"/&gt;</P>
<P>&lt;Point x="0.641" o="1" r="0.75" g="0.0" b="1.0"/&gt;</P>
<P>&lt;Point x="0.680" o="1" r="0.75" g="0.0" b="1.0"/&gt;</P>
<P>&lt;Point x="0.681" o="1" r="0.0" g="0.75" b="1.0"/&gt;</P>
<P>&lt;Point x="0.720" o="1" r="0.0" g="0.75" b="1.0"/&gt;</P>
<P>&lt;Point x="0.721" o="1" r="0.25" g="0.0" b="0.0"/&gt;</P>
<P>&lt;Point x="0.760" o="1" r="0.25" g="0.0" b="0.0"/&gt;</P>
<P>&lt;Point x="0.761" o="1" r="0.0" g="0.25" b="0.0"/&gt;</P>
<P>&lt;Point x="0.800" o="1" r="0.0" g="0.25" b="0.0"/&gt;</P>
<P>&lt;Point x="0.801" o="1" r="0.0" g="0.0" b="0.25"/&gt;</P>
<P>&lt;Point x="0.840" o="1" r="0.0" g="0.0" b="0.25"/&gt;</P>
<P>&lt;Point x="0.841" o="1" r="0.25" g="1.0" b="0.0"/&gt;</P>
<P>&lt;Point x="0.880" o="1" r="0.25" g="1.0" b="0.0"/&gt;</P>
<P>&lt;Point x="0.881" o="1" r="0.25" g="0.0" b="1.0"/&gt;</P>
<P>&lt;Point x="0.920" o="1" r="0.25" g="0.0" b="1.0"/&gt;</P>
<P>&lt;Point x="0.921" o="1" r="1.0" g="0.0" b="0.25"/&gt;</P>
<P>&lt;Point x="0.960" o="1" r="1.0" g="0.0" b="0.25"/&gt;</P>
<P>&lt;Point x="0.961" o="1" r="0.0" g="0.25" b="1.0"/&gt;</P>
<P>&lt;Point x="1.000" o="1" r="0.0" g="0.25" b="1.0"/&gt;</P>
<P>&lt;/ColorMap&gt;</P></FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> paraview-bounces@paraview.org 
[mailto:paraview-bounces@paraview.org] <B>On Behalf Of </B>Chaman Singh 
Verma<BR><B>Sent:</B> Saturday, December 20, 2008 10:50 AM<BR><B>To:</B> 
paraview@paraview.org<BR><B>Subject:</B> [Paraview] Random 
Colormap<BR></FONT><BR></DIV>
<DIV></DIV>Hello,<BR><BR>I have one specific requirement and hope ParaView can 
do a good job. I am interested in<BR>Visualizing Graph Partitioned Domain. Since 
number of Partitions could be very large,<BR>it is important that neighbouring 
domain to have high contrasting color. A smoothly<BR>varying colormap doesn't do 
good job for large domains. <BR><BR>Is there any way to create random colormap 
in ParaView ?<BR><BR>Thanks.<BR>csv<BR>&nbsp;<BR></BODY></HTML>