CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

Paraview gray scale from white to black

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 4, 2012, 13:36
Default Paraview gray scale from white to black
  #1
Member
 
Jeong Kim
Join Date: Feb 2010
Posts: 39
Rep Power: 6
enoch is on a distinguished road
I wanted to create a contour plot with the gray scale from white (lowest value) to black (highest value) in paraview.
The default gray scale is opposite to what I want.
How can I make a contour plot with white to black?
Thanks in advance for your help.
Attached Images
File Type: png grayScale.png (73.6 KB, 25 views)
enoch is offline   Reply With Quote

Old   August 4, 2012, 16:23
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,450
Blog Entries: 33
Rep Power: 73
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings Jeong,

Simple:
  1. You export the gray one to an XML file.
  2. Switch the values for "x" in the saved file.
  3. Import the modified file.
Here's the modified file contents:
Code:
<ColorMap name="Grayscale" space="RGB">
  <Point x="0" o="1" r="1" g="1" b="1"/>
  <Point x="1" o="0" r="0" g="0" b="0"/>
  <NaN r="1" g="0" b="0"/>
</ColorMap>
I also swapped the lines of the two "Point" elements.
You can also change the "name" of the "ColorMap".

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   August 4, 2012, 20:16
Default thanks. This works.
  #3
Member
 
Jeong Kim
Join Date: Feb 2010
Posts: 39
Rep Power: 6
enoch is on a distinguished road
Thanks a lot for your tip.


Quote:
Originally Posted by wyldckat View Post
Greetings Jeong,

Simple:
  1. You export the gray one to an XML file.
  2. Switch the values for "x" in the saved file.
  3. Import the modified file.
Here's the modified file contents:
Code:
<ColorMap name="Grayscale" space="RGB">
  <Point x="0" o="1" r="1" g="1" b="1"/>
  <Point x="1" o="0" r="0" g="0" b="0"/>
  <NaN r="1" g="0" b="0"/>
</ColorMap>
I also swapped the lines of the two "Point" elements.
You can also change the "name" of the "ColorMap".

Best regards,
Bruno
enoch is offline   Reply With Quote

Old   March 2, 2014, 08:51
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,450
Blog Entries: 33
Rep Power: 73
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
OK, so somebody who I won't mention, has asked me for more details on this topic.
So here goes a quick step-by-step guide:
  1. Start ParaView.
  2. Load your data file(s).
  3. Turn on the data set you want to represent. Example, see first attached image.
  4. Click on the "Edit Color Map" button, shown in the second image.
  5. Click on the "Choose Preset" button, shown in the third image.
  6. As shown in the fourth image, you can either choose one of the presets or click on the "Import" button to load a manually created file.
  7. Once the preset is chosen, by clicking on it, then click on the OK button and you're good to go!
Best regards,
Bruno
Attached Images
File Type: jpg Screenshot from 2014-03-02 12:43:53.jpg (41.2 KB, 9 views)
File Type: png Colormap button.png (26.3 KB, 8 views)
File Type: png Screenshot from 2014-03-02 12:47:10.png (52.6 KB, 10 views)
File Type: png Screenshot from 2014-03-02 12:48:05.png (33.5 KB, 9 views)
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Paraview color scale problem Jdog OpenFOAM Paraview & paraFoam 1 November 19, 2011 07:49
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41
paraFoam / paraview black screen gfilip OpenFOAM 6 July 13, 2009 05:30
Gray scale Photon Figures Habib Phoenics 2 October 16, 2002 11:45
CFX-Post: black and white legend/plots? Sjoerd Romkes CFX 0 March 8, 2002 12:20


All times are GMT -4. The time now is 16:04.