Hi, I would like to use the function "get platform preferences(distribution(count axis))" or something similar, and store the result of this in a boolean or integer, but I'm not sure how to do it. I'm on JMP11 / 12.
I have a script that generates reference lines on the distribution platform plot output. Note that this is not adding reference lines to the axis property of a column, which stays with the table. These are lines that get added to the plot output only, and disappear when the report window is closed. To do this, i need to modify the axisbox(n) property of the report. For my preferences (count axis = 0, density axis = 0, prob axis = 0), n = 1. But if any of those axes are enabled, n increases to 2, 3 or 4. I would like to detect these user settings and modify n accordingly.
Here's what I figured I would do (and some minor variations of this), but these pref variables don't contain strings or integers. I'm not sure how to access them, other than seeing values in the log. Any ideas? My work around would be to just turn off these 3 axes for my script regardless of user settings, but I figured this was worth a shot first.
pref1 = Get Platform Preference( Distribution( count axis ) );
Show( pref1 );
pref2 = Get Platform Preferences( distribution( prob axis ) );
Show( pref2 );
pref3 = Get Platform Preferences( distribution( density axis ) );
Show( pref3 );
n = 1;
If( Contains( Char( pref1 ), "(1)" ),
n
++);
If( Contains( pref2, "(1)" ),
n
++);
If( Contains( pref3, "(1)" ),
n
++);
//edit, i forgot about stack...
pref4 = Get Platform Preferences( distribution( stack ) );
If( pref4 == 0, n = 1 );
//end edit
then just modify axis box (n)
BTW, log shows:
pref1 = Platform Preferences(Distribution(Count Axis(0)));
pref2 = Platform Preferences(distribution(Prob Axis(0)));
pref3 = Platform Preferences(distribution(Density Axis(0)));
along with an error on the contains(pref2) because the string comparison didn't work as i hoped. char(pref1) didn't work either. it becomes "."
Thanks,
Mike