use script to zoom out in bivariate fitHi All
I am very new to sas jmp scripts. I have a lot of data that i routinely plot using fit y by x and i use a script for this, however, I manually have to drag the y-axis in the plot to make the graphs look nice and to have a better overview. Is there any way to change the standard scaling of the y-axis, either by a script or in a setting?
Thanks 
Re: use script to zoom out in bivariate fithere's some starter code that might help, watch the JMP log window for the showProperties and watch the graph for the <
dt = open("$sample_data/big class.jmp");
biv = dt<<BIVARIATE></BIVARIATE>Re: use script to zoom out in bivariate fitThanks for the help, I will need to work more on this. I will return when i have a solution !
Re: use script to zoom out in bivariate fitMasood,
The script I included in my last response, is just an illustration of a simple case. It should not be viewed as being a final solution to whatever the specifics are to your particular problem. The specifics that you provided do not show that what you want can not be done. It also does not show that what I provided is incorrect. Your specific requirements are just a more complex implementation. What you need to do is to take the knowledge you were shown in my example, and expand it to meet the needs of your more complex problem.
Re: use script to zoom out in bivariate fitThanks Jim
The script works excellent when i only have one variable in the "y column". Usually i have 7-8 variables and use the "By(" function and get 7-8 plots. These plots are all on different scales.
The solution i am looking for would zoom to 50% of standard regardless of variable.
MasoodRe: use script to zoom out in bivariate fitHere is the example taken directly from
Help==>Scripting Index==>Axis Box
That illustrates the answer to your question. Almost every element in your graphical displays dan be dynamically modified in JSL. The Scripting Index is the key to learning how to handle all of the options.
Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = Bivariate(
Y( :weight ),
X( :height ),
FitLine
);
rbiv = biv << report;
axisbox = rbiv[axis box( 1 )];
axisbox << Min( 100 );