cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Kelly
Level III

How do I change legend color on graph builder with box plots?

Hello,

 

I am trying to change the second item in the legend to be black instead of red.

 

 

Inside of my graph builder function I use the following line of code to do this. (line color 0 = black)

Dispatch( {}, "400", ScaleBox, {Legend Model( 3, Properties( 1, {Line Color( 0 )}, Item ID("4TB", 1 ) ) )} )

This is how my plot turns out:

 

Kelly_1-1579047658332.png

 

 

The box plot turns black, but the legend is blue, and the outlier data points are blue. They should be black. 
Am I missing an extra line of code to change the data points to be black?

Thanks for the help!

 

 

2 REPLIES 2

Re: How do I change legend color on graph builder with box plots?

Make the changes interactively in Graph Builder, then click the red triangle at the top and select Save Script > To Script Window. You will see the code that necessary to get all the changes that you want.

Kelly
Level III

Re: How do I change legend color on graph builder with box plots?

 

I realized that it is another problem. I can make the graph as @Mark_Bailey suggested by saving the script and running that. But when I save as journal and open it the plot has the wrong color.

 

On the left I have the plot I created with age = 15 set to black.
On the right is the same plot but it has been saved as journal and opened. Now age = 15 has a green data point that should be black.

Kelly_0-1579126105497.png

 

Thanks,

Kelly

 

Recommended Articles