# Mech labeling

**URL:** <https://discourse.vtk.org/t/mech-labeling/10317>\
**Category:** Development\
**Tags:** code\
**Created:** [December 27, 2022, 12:45pm UTC](https://discourse.vtk.org/t/mech-labeling/10317 "2022-12-27T12:45:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mesh](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/b77776/32.png) [@Mesh](https://discourse.vtk.org/u/Mesh)\
**Post date:** [December 27, 2022, 12:45pm UTC](https://discourse.vtk.org/t/mech-labeling/10317/1 "2022-12-27T12:45:02Z")

</div>

Hi All

What is the best way to plot labels?

Thank you

---

<div class="post-metadata">

**Author:** ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)\
**Post date:** [January 4, 2023, 4:51pm UTC](https://discourse.vtk.org/t/mech-labeling/10317/2 "2023-01-04T16:51:31Z")

</div>

Hi,

Can you be more specific?

best,

Paulo

---

<div class="post-metadata">

**Author:** ![Mesh](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/b77776/32.png) [@Mesh](https://discourse.vtk.org/u/Mesh)\
**Post date:** [March 25, 2024, 7:18am UTC](https://discourse.vtk.org/t/mech-labeling/10317/3 "2024-03-25T07:18:47Z")

</div>

Hi,  
I want to plot scalar data of a mesh that contains 1 million cells as this example  
 ![image](https://discourse.vtk.org/uploads/default/original/2X/8/8e0cdca7b23e9c12a4d48f779d629e3c0de03702.png)

thanks for your replay

---

<div class="post-metadata">

**Author:** ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)\
**Post date:** [March 27, 2024, 1:17pm UTC](https://discourse.vtk.org/t/mech-labeling/10317/4 "2024-03-27T13:17:31Z")

</div>

Hello,

So, do you want to plot 1 million labels?

best,

PC

---

<div class="post-metadata">

**Author:** ![Mesh](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/b77776/32.png) [@Mesh](https://discourse.vtk.org/u/Mesh)\
**Post date:** [March 27, 2024, 1:37pm UTC](https://discourse.vtk.org/t/mech-labeling/10317/5 "2024-03-27T13:37:42Z")

</div>

yes

---

<div class="post-metadata">

**Author:** ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)\
**Post date:** [March 27, 2024, 1:44pm UTC](https://discourse.vtk.org/t/mech-labeling/10317/6 "2024-03-27T13:44:57Z")

</div>

That will severely clutter the scene, but feel free to sudy this example: [https://examples.vtk.org/site/Cxx/Visualization/LabeledDataMapper/](https://examples.vtk.org/site/Cxx/Visualization/LabeledDataMapper/) It is based on the `vtkLabeledDataMapper` class: [VTK: vtkLabeledDataMapper Class Reference](https://vtk.org/doc/nightly/html/classvtkLabeledDataMapper.html) .
