Is it possible to add labels to contour lines?


(Igor) #1

Hello everyone!

I’m trying to make a visualization of ocean and i’m stuck at labeling contour lines.
For one frame i can add them manually via Text source.

Is there any way to do it automatically?

Expectation:


Reality:


(Cory Quammen (Kitware)) #2

@danlipsa @Scott_Wittenburg Is there anything available in ParaView 5.6 or upcoming in 5.7?


(Walter Alan Scott) #3

Excellent question!!! Here is the feature request, that has been pushed off for a few years. https://gitlab.kitware.com/paraview/paraview/issues/15810. It comes from uservoice, here: https://paraview.uservoice.com/forums/11350-general/suggestions/1350851-create-the-ability-to-automatically-label-contour.

I’m pretty sure this will slip. There just isn’t time to get it into the spring release, and the fall release will be a smaller release, trying to get back on schedule. After that, this feature is towards the top of the queue.


(Aashish Chaudhary) #4

@igor @cory.quammen yes we do have support for contour labels as it can be seen here: https://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/LabelContours but it is not exposed to Paraview. @danlipsa lets plan on adding support for this in Paraview sometime soon.


(Igor) #5

Can it be done via Python shell?
I am new to Paraview and for now I don’t know what Python shell is for :sweat_smile:


(Dan Lipsa) #6

@Aashish Chaudhary Yes, that would be great.


#7

Anyway we could try to label the contour, as a stopgap solution for now?