# Custom Legend with Non Uniform Intervals

**URL:** <https://prepomax.discourse.group/t/custom-legend-with-non-uniform-intervals/3332>\
**Category:** General Questions\
**Created:** [March 11, 2026, 11:32am UTC](https://prepomax.discourse.group/t/custom-legend-with-non-uniform-intervals/3332 "2026-03-11T11:32:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamJordanLloyd](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@SamJordanLloyd](https://prepomax.discourse.group/u/SamJordanLloyd)\
**Post date:** [March 11, 2026, 11:32am UTC](https://prepomax.discourse.group/t/custom-legend-with-non-uniform-intervals/3332/1 "2026-03-11T11:32:27Z")

</div>

Good afternoon.

Is there a way I can setup my legend colours to be as follows for a displacement plot:

Red 0.75mm to 1.00mm  
Green -0.75mm to 0.75mm  
Blue -0.75 to -1.00mm.

Ideally the red and blue regions would rainbow from say yellow to red and light blue to dark blue. I am trying to match my visual output to resemble metrology reporting software (green in tolerance, blue below, red above).

Thank you,

Sam

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [March 11, 2026, 11:44am UTC](https://prepomax.discourse.group/t/custom-legend-with-non-uniform-intervals/3332/2 "2026-03-11T11:44:16Z")

</div>

Currently. you can only change the min/max limit and the number of colors:

 ![image](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/f/f65b41013054e6f7f2c6be86d2f237dd92d512dd.png)

However, you will have many more options including custom spectra if you convert the results to VTK format and open them in ParaView: [Converting results to ParaView format](https://prepomax.discourse.group/t/converting-results-to-paraview-format/453)

 ![image](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/a/a4df93a7bca6a4b38cd8b7c2b3bacf1b9d2cbb38.png)

---

<div class="post-metadata">

**Author:** ![SamJordanLloyd](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@SamJordanLloyd](https://prepomax.discourse.group/u/SamJordanLloyd)\
**Post date:** [March 11, 2026, 11:55am UTC](https://prepomax.discourse.group/t/custom-legend-with-non-uniform-intervals/3332/3 "2026-03-11T11:55:53Z")

</div>

Thank you for your prompt reply

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [March 11, 2026, 5:08pm UTC](https://prepomax.discourse.group/t/custom-legend-with-non-uniform-intervals/3332/4 "2026-03-11T17:08:46Z")

</div>

diverging type of colormap is available in PrePoMax

 ![2026-03-12 00_06_40-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/3/37784a6b2a928b39001901eeb1cf9c82654f2b68.png)

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [March 11, 2026, 5:43pm UTC](https://prepomax.discourse.group/t/custom-legend-with-non-uniform-intervals/3332/5 "2026-03-11T17:43:29Z")

</div>

This is just the Cool-warm colormap (one of the alternatives to Rainbow) with 3 discrete colors and custom min/max limits. But you can’t change the colors of the colormap presets or define non-uniform ranges. ParaView is needed for that.

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [March 11, 2026, 6:03pm UTC](https://prepomax.discourse.group/t/custom-legend-with-non-uniform-intervals/3332/6 "2026-03-11T18:03:14Z")

</div>

coolwarm support gradient from light to dark transition also. Another type of diverging colormaps required ParaView to customized indeed, but it’s rare using green at center and bright one usually.

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [March 11, 2026, 6:10pm UTC](https://prepomax.discourse.group/t/custom-legend-with-non-uniform-intervals/3332/7 "2026-03-11T18:10:28Z")

</div>

Yes, there are quite a few colormaps other than just the default Rainbow in PrePoMax now. More customization is rarely needed, but sometimes it helps to use custom colors to match e.g. maps from measurements. My favorite example is from Abaqus documentation:

 ![image](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/4/4cd9248823ab121d031fd6ee48d4ee752f8c4067.jpeg)
