# Change number of legend ticks

**URL:** https://discourse.paraview.org/t/change-number-of-legend-ticks/8483
**Category:** ParaView Support
**Created:** [November 24, 2021, 2:58pm UTC](https://discourse.paraview.org/t/change-number-of-legend-ticks/8483 "2021-11-24T14:58:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Popcorn](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/6a8cbe/32.png) [@Popcorn](https://discourse.paraview.org/u/Popcorn)
#### Post date: [November 24, 2021, 2:58pm UTC](https://discourse.paraview.org/t/change-number-of-legend-ticks/8483/1 "2021-11-24T14:58:42Z")

</div>

Hi,

I would like to format and export this legend:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/9/9bc2ef2133716b3d99d41960db9f4c6ac44be40a.png)

I want the ticks (and their labels) to correspond to the color discretisation (done in the color map editor).  
How can I do that ?  
I only found a way to manually set the ticks but I could not opt for such option because I need to mass produce snapshots.

On a side note: I am also interested if somebody has a trick for outputting the legend only, in a quick manner.

Thanks !

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [November 24, 2021, 4:48pm UTC](https://discourse.paraview.org/t/change-number-of-legend-ticks/8483/2 "2021-11-24T16:48:11Z")

</div>

Sorry, this currently cannot be done. A feature request is already in place, here: [https://gitlab.kitware.com/paraview/paraview/-/issues/17641](https://gitlab.kitware.com/paraview/paraview/-/issues/17641).

Not that I know of…

---

<div class="post-metadata">

### Author: ![Popcorn](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/6a8cbe/32.png) [@Popcorn](https://discourse.paraview.org/u/Popcorn)
#### Post date: [November 24, 2021, 5:14pm UTC](https://discourse.paraview.org/t/change-number-of-legend-ticks/8483/3 "2021-11-24T17:14:18Z")

</div>

If there is a way to modify the distribution of these ticks via python, I could tinker some sort of solution… Any thought?

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [November 24, 2021, 5:36pm UTC](https://discourse.paraview.org/t/change-number-of-legend-ticks/8483/4 "2021-11-24T17:36:38Z")

</div>

Sorry, this currently cannot be done. See the referenced feature request…
