# Displacement contours

**URL:** https://forum.itascainternational.com/t/displacement-contours/528
**Category:** FLAC3D
**Created:** [May 15, 2022, 4:28pm UTC](https://forum.itascainternational.com/t/displacement-contours/528 "2022-05-15T16:28:45Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Sureka](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Sureka](https://forum.itascainternational.com/u/Sureka)
#### Post date: [May 15, 2022, 4:28pm UTC](https://forum.itascainternational.com/t/displacement-contours/528/1 "2022-05-15T16:28:46Z")

</div>

Is there any option to filter out the range of values that appear in the legend for contours?

For example, I want displacements less than 1/1000 mm to be displayed as zero.

---

<div class="post-metadata">

### Author: ![sb\_guido](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@sb\_guido](https://forum.itascainternational.com/u/sb_guido)
#### Post date: [May 15, 2022, 6:37pm UTC](https://forum.itascainternational.com/t/displacement-contours/528/2 "2022-05-15T18:37:36Z")

</div>

I was thinking the same thing yesterday! Seems like the legend options are quite limited… I was trying to apply the same color for a range of values (in bins) : e.g., 0-10 red, 10-20 yellow, 20-30 blue, \>30 purple. I don’t think this is possible neither…

For your specific problem, one suggestion would be to create an extra variable and to apply your rule: “ **if** disp \< 1/1000, 0, **else** disp” with _Python_. You could then plot this variable instead of the original disp. Not ideal, but a workaround!

Obviously, the same could be done for my problem (using labels instead of contours)…

---

<div class="post-metadata">

### Author: ![cheng](https://avatars.discourse-cdn.com/v4/letter/c/ecccb3/32.png) [@cheng](https://forum.itascainternational.com/u/cheng)
#### Post date: [May 16, 2022, 8:05pm UTC](https://forum.itascainternational.com/t/displacement-contours/528/3 "2022-05-16T20:05:31Z")

</div>

In the contour attribute, reset the min value to be 0.001, uncheck Below-Auto, select the same color with the lower bound of contour. Then in the figure, all values below 0.001 will have the same contour color. This is a quick (not so strict) workaround for visualization.

You can also use a small FISH function to reset those displacement values \< 1/1000 to be zero, or store the modified values into gp.extra. Just a few lines’ work.

---

<div class="post-metadata">

### Author: ![Sureka](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Sureka](https://forum.itascainternational.com/u/Sureka)
#### Post date: [May 17, 2022, 5:07am UTC](https://forum.itascainternational.com/t/displacement-contours/528/4 "2022-05-17T05:07:37Z")

</div>

Thank you. It helped.
