cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
CLC
CLC
Level I

How to apply same color themes to all graphs in contour plot function?

Dear sirs,

 

My JMP version is 16.2 pro.
Recently, I made some contour plot graphs by different conditions, and I wanted to apply all of them by same color theme (gradient funcition).

However, I could't find the method to apply them simultaneously.
I could only revise the color theme one by one graph.

Belows are my options list and gradient photo:

CLC_1-1661476761368.png

CLC_2-1661476877496.png

If someone has good idea, please don't hesitate to advise me.
Thanks!

 

 

 

 

3 REPLIES 3
Thierry_S
Super User

Re: How to apply same color themes to all graphs in contour plot function?

Hi,

Have you considered applying an identical Color Gradient property to your data columns?

  1. Select all data columns
  2. Right-click on one of the column header
  3. Select Standardized Attributes
  4. In the interactive menu, Column Properties > Color Gradient
  5. Define the Color Theme, Minimum, Maximum, and Center

If this does not do the trick, you may want to explore scripting this operation with JSL.

Best,

TS

Thierry R. Sornasse
Thierry_S
Super User

Re: How to apply same color themes to all graphs in contour plot function?

NOTE: Sorry, this method does not apply to your specific question. I replied too quickly.

Thierry R. Sornasse
pauldeen
Level VI

Re: How to apply same color themes to all graphs in contour plot function?

The only way I can think of is to do a little scripting, here is an example on big class:

Open( "$SAMPLE_DATA/Big Class.jmp" );
Data Table( "Big Class" ):age << Set Modeling Type( "Continuous" );
cp = Contour Plot(
	SendToByGroup( {:sex == "F"} ),
	X( :height, :weight ),
	Y( :age ),
	Show Data Points( 1 ),
	Fill Areas( 1 ),
	Label Contours( 0 ),
	By( :sex ),
);
For( i = 1, i <= N Items( cp ), i++,
	cp[i] << SendToReport(
		Dispatch(
			OutlineBox(1),
			"1111",
			ScaleBox,
			{Legend Model(
				1,
				Type( 0, 262144, Item ID( "age", 1 ) ),
				Properties(
					0,
					{gradient( {Color Theme( "Blue to Gray to Red" )} )},
					Item ID( "age", 1 )
				)
			)}
		)
	)
);