Hi,
There are many people in this community that are better than me for answering questions about scripting.
However, I wonder if setting the color theme as a column property might prevent the problems that you are having.
Below is an example of changing a Color Gradient column property.
I hope this helps,
Phil
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
//Set Color Gradient column property for Weight to "Magma"
:weight << Set Property(
"Color Gradient",
{"Magma", Range( {64, 172, 105} )}
);
dt << Graph Builder(
Size( 522, 408 ),
Show Control Panel( 0 ),
Variables( Y( :weight ), Color( :weight ) ),
Elements( Points( Y, Legend( 5 ) ) ),
SendToReport(
Dispatch(
{},
"Graph Builder",
FrameBox,
{Marker Size( 6 ), Marker Drawing Mode( "Normal" )}
)
)
);