# Tick lines with vtkScalarBarActor

**URL:** https://discourse.vtk.org/t/tick-lines-with-vtkscalarbaractor/2268
**Category:** Support
**Created:** [December 13, 2019, 1:05am UTC](https://discourse.vtk.org/t/tick-lines-with-vtkscalarbaractor/2268 "2019-12-13T01:05:26Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![banesullivan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/banesullivan/32/7143_2.png) [@banesullivan](https://discourse.vtk.org/u/banesullivan)
#### Post date: [December 13, 2019, 1:05am UTC](https://discourse.vtk.org/t/tick-lines-with-vtkscalarbaractor/2268/1 "2019-12-13T01:05:26Z")

</div>

Is it possible to draw tick lines with the `vtkScalarBarActor`? Every example I’ve seen with VTK does not have tick lines. It’s odd to me that the method `vtkScalarBarActor.SetDrawTickLabels` exists to draw the labels but no “ticks” are shown.

ParaView has tick lines - is this from a custom class in ParaView?:

![11%20PM](https://discourse.vtk.org/uploads/default/original/2X/6/674be5cf2b9241eb3aa088ae4e02f1d850734b19.png)

---

<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: [December 13, 2019, 9:24pm UTC](https://discourse.vtk.org/t/tick-lines-with-vtkscalarbaractor/2268/2 "2019-12-13T21:24:09Z")

</div>

It doesn’t work indeed. It’s a bug. Tested with C++.

---

<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: [December 13, 2019, 9:31pm UTC](https://discourse.vtk.org/t/tick-lines-with-vtkscalarbaractor/2268/3 "2019-12-13T21:31:29Z")

</div>

Bug reported: [https://gitlab.kitware.com/vtk/vtk/issues/17751](https://gitlab.kitware.com/vtk/vtk/issues/17751)

---

<div class="post-metadata">

### Author: ![banesullivan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/banesullivan/32/7143_2.png) [@banesullivan](https://discourse.vtk.org/u/banesullivan)
#### Post date: [December 13, 2019, 9:50pm UTC](https://discourse.vtk.org/t/tick-lines-with-vtkscalarbaractor/2268/4 "2019-12-13T21:50:29Z")

</div>

Thanks for raising that issue in the repo, @Paulo_Carvalho

Is it a bug or just a feature that was never introduced?

---

<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: [December 13, 2019, 9:54pm UTC](https://discourse.vtk.org/t/tick-lines-with-vtkscalarbaractor/2268/5 "2019-12-13T21:54:52Z")

</div>

For me, a public API that doesn’t do as documented is a bug. You’re welcome.

---

<div class="post-metadata">

### Author: ![embeddedmz](https://discourse.vtk.org/user_avatar/discourse.vtk.org/embeddedmz/32/12_2.png) [@embeddedmz](https://discourse.vtk.org/u/embeddedmz)
#### Post date: [December 25, 2019, 7:50pm UTC](https://discourse.vtk.org/t/tick-lines-with-vtkscalarbaractor/2268/6 "2019-12-25T19:50:09Z")

</div>

@banesullivan I dissected ParaView scalar bar widget (which is superior to the one bundled with VTK): [https://github.com/embeddedmz/ParaViewScalarBarWidget](https://github.com/embeddedmz/ParaViewScalarBarWidget) and I successfully used it with a VTK project (vtkMap).

---

<div class="post-metadata">

### Author: ![banesullivan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/banesullivan/32/7143_2.png) [@banesullivan](https://discourse.vtk.org/u/banesullivan)
#### Post date: [January 15, 2020, 3:27am UTC](https://discourse.vtk.org/t/tick-lines-with-vtkscalarbaractor/2268/7 "2020-01-15T03:27:36Z")

</div>

Ah this is awesome! thanks @embeddedmz

Now I’m wondering if i can compile that against the VTK-python bindings… to have something usable in a Python environment
