CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Paraview gray scale from white to black

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

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2012, 12:36
Default Paraview gray scale from white to black
  #1
Member
 
Jeong Kim
Join Date: Feb 2010
Posts: 42
Rep Power: 16
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, 112 views)
enoch is offline   Reply With Quote

Old   August 4, 2012, 15:23
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 19:16
Default thanks. This works.
  #3
Member
 
Jeong Kim
Join Date: Feb 2010
Posts: 42
Rep Power: 16
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, 07:51
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 73 views)
File Type: png Colormap button.png (26.3 KB, 82 views)
File Type: png Screenshot from 2014-03-02 12:47:10.png (52.6 KB, 101 views)
File Type: png Screenshot from 2014-03-02 12:48:05.png (33.5 KB, 81 views)
Luttappy likes this.
__________________
wyldckat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM] Black Screen with Paraview 5.6.0 on Ubuntu 18.04 after OpenFOAM update ksmithgall ParaView 12 August 29, 2019 11:52
[OpenFOAM] Paraview client/server does not work with ParaView 5.0.1 snak ParaView 0 October 17, 2016 10:22
paraFoam / paraview black screen gfilip OpenFOAM 6 July 13, 2009 04:30
[OpenFOAM] Suface data displayed as a black color aerovargas ParaView 1 September 10, 2008 19:22
CFX-Post: black and white legend/plots? Sjoerd Romkes CFX 0 March 8, 2002 11:20


All times are GMT -4. The time now is 12:45.