# How to match the data range of coloar map and color legend ?

**URL:** https://discourse.paraview.org/t/how-to-match-the-data-range-of-coloar-map-and-color-legend/635
**Category:** ParaView Support
**Created:** [September 26, 2018, 4:10am UTC](https://discourse.paraview.org/t/how-to-match-the-data-range-of-coloar-map-and-color-legend/635 "2018-09-26T04:10:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Toshi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@Toshi](https://discourse.paraview.org/u/Toshi)
#### Post date: [September 26, 2018, 4:10am UTC](https://discourse.paraview.org/t/how-to-match-the-data-range-of-coloar-map-and-color-legend/635/1 "2018-09-26T04:10:39Z")

</div>

Hi All,

The data range of color map and color leged does not match if I do follwing procedure.

1. check the checkbox of “Use log scale when mapping data to colors” in color map editor
2. uncheck the checkbox
3. click the “rescale to data range” button

Although there are minus value in the displayed data ,the minimum value of color legend is set to zero.  
On the other hand, the minimun value of color map is set to minimum value of displayed data .

Could you please let me know how to fix the color legend?

Thanks in advance.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [September 26, 2018, 1:05pm UTC](https://discourse.paraview.org/t/how-to-match-the-data-range-of-coloar-map-and-color-legend/635/2 "2018-09-26T13:05:41Z")

</div>

Yep, that’s a bug. I’ve filed a [bug report](https://gitlab.kitware.com/paraview/paraview/issues/18491). Thanks for reporting it!

---

<div class="post-metadata">

### Author: ![Toshi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@Toshi](https://discourse.paraview.org/u/Toshi)
#### Post date: [September 27, 2018, 12:05am UTC](https://discourse.paraview.org/t/how-to-match-the-data-range-of-coloar-map-and-color-legend/635/3 "2018-09-27T00:05:39Z")

</div>

Thank you for your reply.  
I’m waiting to be fixed this issue.

Thanks again.
