- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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:
If someone has good idea, please don't hesitate to advise me.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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?
- Select all data columns
- Right-click on one of the column header
- Select Standardized Attributes
- In the interactive menu, Column Properties > Color Gradient
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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 )
)
)}
)
)
);