cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

JMP Wish List

We want to hear your ideas for improving JMP. Share them here.
Choose Language Hide Translation Bar

"Color Code()" JSL Function

It will be convenient if there is a function that accepts a value and a name of a color gradient and returns a color code.

4 Comments
Craige_Hales
Super User

Check out the HeatColor( value, <<theme ) function. It was originally named for a single theme that returned blue-to-gray-to-red representing cold to hot.

Also see GetColorThemeNames(). Both are in the scripting index for JMP 14, maybe earlier.

drawing rectangles from the color themedrawing rectangles from the color theme

also https://community.jmp.com/t5/Uncharted/Can-JSL-use-custom-Heat-Colors/ba-p/34010

 

nao
Level IV
Thanks! That's exactly what I wanted. Accept my apologies for bothering. I hope this page will also help someone else.
Jeff_Perkinson
Community Manager
Status changed to: Already Offered
 
Ryan_Gilmore
Community Manager
Status changed to: Delivered