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

[General] label contour values in paraview

Register Blogs Community New Posts Updated Threads Search

Like Tree10Likes
  • 10 Post By Flowkersma

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 9, 2015, 10:23
Default label contour values in paraview
  #1
New Member
 
mohamed mohsen
Join Date: Oct 2012
Posts: 29
Rep Power: 13
sehs15 is on a distinguished road
Hello guys, is there a way to label the contour values in Paraview 4.4 ??!
sehs15 is offline   Reply With Quote

Old   October 18, 2015, 18:29
Default
  #2
Senior Member
 
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 12
Flowkersma is on a distinguished road
Hi,

Here is a way to label the contour lines:
  1. Select points where you want the labels by activating "Interactive Select Points On" (hold ctrl for multiple points)
  2. Open Display Inspector from View->Selection Display Inspector
  3. From "Point Labels", select the variable you want to show
  4. The label style can be edited by clicking the first wheel button. For example if you want to show float number with two decimal places put "%.2f" to Point Label input.

Regards,
Mikko
Flowkersma is offline   Reply With Quote

Old   January 18, 2018, 10:20
Default
  #3
Member
 
Jingxue Wang
Join Date: Sep 2017
Posts: 58
Rep Power: 8
Jingxue Wang is on a distinguished road
Hi,Flowkersma

Many thanks for your information.

May I ask that why not only one values are added even for a select point? it means that there are many points?I think it is better to use one.

Also, I am not so understand about put "%.2f" .You mean put these cahracters to the values behind?
Jingxue Wang is offline   Reply With Quote

Old   January 18, 2018, 13:12
Default
  #4
Senior Member
 
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 12
Flowkersma is on a distinguished road
Hi Jingxue,

If you have a scalar value then you should see only one label per grid point. For a vector you should see three values.

If you click the wheel icon "Edit selection label properties" a new menu pops up where you can modify the label style. %.2f is a Python string format operation
Flowkersma is offline   Reply With Quote

Old   January 18, 2018, 20:07
Default
  #5
Member
 
Jingxue Wang
Join Date: Sep 2017
Posts: 58
Rep Power: 8
Jingxue Wang is on a distinguished road
hi, Flowkersma

May I know what is your version of your paraview?I could not find the Edit selection label properties. I attached a screenshot of my screen. Mine is paraview 5.4.0
Jingxue Wang is offline   Reply With Quote

Old   January 19, 2018, 07:29
Default
  #6
Member
 
Jingxue Wang
Join Date: Sep 2017
Posts: 58
Rep Power: 8
Jingxue Wang is on a distinguished road
The followings attaches the screenshot of my Paraview.

Many thanks!
Attached Images
File Type: jpg screenshot.jpg (112.9 KB, 367 views)
Jingxue Wang is offline   Reply With Quote

Old   January 19, 2018, 07:29
Default
  #7
Member
 
Jingxue Wang
Join Date: Sep 2017
Posts: 58
Rep Power: 8
Jingxue Wang is on a distinguished road
I forgot to attached my screenshot. Sorry!
Jingxue Wang is offline   Reply With Quote

Old   October 21, 2018, 22:36
Question
  #8
New Member
 
kcheng
Join Date: Aug 2017
Posts: 5
Rep Power: 8
kchengCFD is on a distinguished road
Quote:
Originally Posted by Flowkersma View Post
Hi,

Here is a way to label the contour lines:
  1. Select points where you want the labels by activating "Interactive Select Points On" (hold ctrl for multiple points)
  2. Open Display Inspector from View->Selection Display Inspector
  3. From "Point Labels", select the variable you want to show
  4. The label style can be edited by clicking the first wheel button. For example if you want to show float number with two decimal places put "%.2f" to Point Label input.

Regards,
Mikko
Hi Mikko,
I have the same problem with Jingxue Wang. I followed your suggestions and the contour lines (for fluid pressure) are labelled successfully. However, after the contour lines are labelled, the contour lines are sheltered by the nephogram of the fluid pressure. Have you ever encountered this problem?




Regards,


Kuang
kchengCFD is offline   Reply With Quote

Old   February 11, 2020, 09:11
Default
  #9
New Member
 
gittagawa
Join Date: Jun 2017
Posts: 24
Rep Power: 8
gittagawa is on a distinguished road
Hello guys!

The wheel is beside "Selection color". Click on it. Then, you'll find "Point label format" on the bottom of the window. Just enter "%.2f".

Best,

Gittagawa
gittagawa is offline   Reply With Quote

Old   January 19, 2021, 04:31
Default
  #10
Senior Member
 
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8
aerosayan is on a distinguished road
Quote:
Originally Posted by Flowkersma View Post
Hi,

Here is a way to label the contour lines:
  1. Select points where you want the labels by activating "Interactive Select Points On" (hold ctrl for multiple points)
  2. Open Display Inspector from View->Selection Display Inspector
  3. From "Point Labels", select the variable you want to show
  4. The label style can be edited by clicking the first wheel button. For example if you want to show float number with two decimal places put "%.2f" to Point Label input.

Regards,
Mikko

This question was from 2015, has there been any improvements in paraview to label contour lines?



This is a very importatnt visualization feature, hopefully something new is available.


Flowkersma's method works, but the mouse pointer will only snap to a point in the mesh. Thus, if the contour line doesn't pass through or very near to a mesh point, I can't label the contour line.
aerosayan is offline   Reply With Quote

Reply


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
Fluent give me opposite stream function contour values kbaker FLUENT 7 August 14, 2017 12:47
[General] Passing simple values between custom filters in ParaView fernanor ParaView 0 March 23, 2016 09:24
[snappyHexMesh] How to define to right point for locationInMesh Mirage12 OpenFOAM Meshing & Mesh Conversion 7 March 13, 2016 14:07
Add values of points from two different files with paraview nunoloureiro OpenFOAM 0 May 5, 2010 03:30
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 21:41


All times are GMT -4. The time now is 07:03.