cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • DownloadSemiconductor Toolkit: Tools to create wafer maps, add wafer geometry to graphics, explore die defects & compare wafers.
  • Discovery Summit 2026: Early User Edition - September 23-24.Register. It's free.
  • See how to design an experiment, explore factor-response relationships, assess tradeoffs, and ID best settings. Register for Sep. 11 Mastering JMP.

Discussions

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

How to change the color of many histogram distributions?

Hi,

I am plotting 64 histogram distributions and stack them together. I like to change the color of each histogram different. You can manually do this but how one can change this automatically?

 

I appreciate your help. Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: How to change the color of many histogram distributions?

The Histogram Color is programatically available to JSL.  You can fairly easily write a script to do this.  Here is the result of just using Customize and then having the platform generate the script for the modification

Distribution(
	Stack( 1 ),
	Continuous Distribution(
		Column( :height ),
		Horizontal Layout( 1 ),
		Vertical( 0 )
	),
	Continuous Distribution(
		Column( :weight ),
		Horizontal Layout( 1 ),
		Vertical( 0 )
	),
	SendToReport(
		Dispatch(
			{"height"},
			"Distrib Histogram",
			FrameBox,
			{DispatchSeg(
				Hist Seg( 1 ),
				{Line Color( {108, 60, 65} ), Fill Color( "Medium Light Green" )}
			)}
		),
		Dispatch(
			{"weight"},
			"Distrib Histogram",
			FrameBox,
			{DispatchSeg(
				Hist Seg( 1 ),
				{Line Color( {108, 60, 65} ), Fill Color( "Red" )}
			)}
		)
	)
);
Jim

View solution in original post

4 REPLIES 4
txnelson
Super User

Re: How to change the color of many histogram distributions?

The Histogram Color is programatically available to JSL.  You can fairly easily write a script to do this.  Here is the result of just using Customize and then having the platform generate the script for the modification

Distribution(
	Stack( 1 ),
	Continuous Distribution(
		Column( :height ),
		Horizontal Layout( 1 ),
		Vertical( 0 )
	),
	Continuous Distribution(
		Column( :weight ),
		Horizontal Layout( 1 ),
		Vertical( 0 )
	),
	SendToReport(
		Dispatch(
			{"height"},
			"Distrib Histogram",
			FrameBox,
			{DispatchSeg(
				Hist Seg( 1 ),
				{Line Color( {108, 60, 65} ), Fill Color( "Medium Light Green" )}
			)}
		),
		Dispatch(
			{"weight"},
			"Distrib Histogram",
			FrameBox,
			{DispatchSeg(
				Hist Seg( 1 ),
				{Line Color( {108, 60, 65} ), Fill Color( "Red" )}
			)}
		)
	)
);
Jim
AT
AT
Level VI

Re: How to change the color of many histogram distributions?

Thanks Jim. Does it mean I have to do this for 64 Histograms that I want to build and stack them together?

txnelson
Super User

Re: How to change the color of many histogram distributions?

The simple answer is yes......however, using a For() loop and Substitution you can just loop through the 64 histograms you want and generate the necessary code

Jim
AT
AT
Level VI

Re: How to change the color of many histogram distributions?

Thanks Jim. I will give it a try.

Recommended Articles