[Paraview] [EXTERNAL] Possibilities of using different color ramps for different extractions of the same dataset?
Scott, W Alan
wascott at sandia.gov
Tue Nov 4 14:58:19 EST 2014
Your question obviously has to do with python scripts, however in ParaView this can be done using the Calculator filter. We just create another copy of the data with a different name – and then ParaView will allow you to use a different color table for this second array. Could you do something like that? Or, did I miss your point?
Alan
From: ParaView [mailto:paraview-bounces at paraview.org] On Behalf Of jlih
Sent: Monday, November 03, 2014 8:17 PM
To: paraview at paraview.org
Subject: [EXTERNAL] [Paraview] Possibilities of using different color ramps for different extractions of the same dataset?
Dear all,
I am creating extractions from a NetCDF data. I am wondering if I can create separate color ramps for different extractions of the same array for comparisons. I tried the process within Paraview Desktop but I was not able to set different color ramps because the array name is the same for all extractions.
Sample code:
SetActiveSource(ncreader)
ExtractSubset1 = ExtractSubset()
ExtractSubset1.VOI = [0, 50,0, 50,0, 8]
DataRepresentation1 = Show(ExtractSubset1)
DataRepresentation1.Representation = 'Volume'
DataRepresentation1.ColorArrayName = ('CELL_DATA', varname)
DataRepresentation1.ColorAttributeType = 'CELL_DATA'
DataRepresentation1.LookupTable = GetLookupTableForArray(varname...
Any suggestions?
Thanks,
Jing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20141104/49ba7758/attachment.html>
More information about the ParaView
mailing list