Hi All,
I have this data table for example
![table.PNG table.PNG](https://community.jmp.com/t5/image/serverpage/image-id/15266i29F1CAEF144F5290/image-size/large?v=v2&px=999)
test = Graph Builder(
Variables( X( :X ), Y( :Y ), Color( :Value ) ),
Elements( Points( X, Y, Legend( 23 ) ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
23,
Properties(
0,
{gradient(
{Scale Values( [-2 2] ), Label Format( "Fixed Dec", 15, 3 )}
)},
Item ID( "Value", 1 )
)
)}
)
)
);
I run the above script to get this graph below with the color gradient +/-2 standard deviations. This helps to not show fliers if the data set is large.![orig graph.PNG orig graph.PNG](https://community.jmp.com/t5/image/serverpage/image-id/15267iC74561657856ABE7/image-size/large?v=v2&px=999)
In the graph below the only thing I do is right click on the color gradient and change the scale type to linear (because it's easier to think in linear scales). I'm struggling to script this step.
![update scale.PNG update scale.PNG](https://community.jmp.com/t5/image/serverpage/image-id/15268i626C771B79237197/image-size/large?v=v2&px=999)
Note, I do not want the graph below which is just the default when making the graph before adjusting the gradient.
![default.PNG default.PNG](https://community.jmp.com/t5/image/serverpage/image-id/15271i7E1C002810586B1A/image-size/large?v=v2&px=999)
The closest I've gotten is below but it sets the scaled linearly from -2 to 2 which was what I inputted for the standard deviation limits.
test << Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
3,
Properties(
0,
{gradient(
{ Scale Values[ ], Label Format( "Fixed Dec", 15, 4 ),
Scale Type( "Linear" )}
)},
Item ID( "Entry X Offset", 1 )
)
)}
)
Any thoughts are much appreciated! - Evan