Choose Language Hide Translation Bar
Highlighted
Elofar
Level II

Re: JSL - Check box to select variable to then plot in graph builder

I'm not sure to understand
I see the point of using the column dialog to ask the operator to select the column but still I don't know how to link that with automatic graph building after?
Highlighted

Re: JSL - Check box to select variable to then plot in graph builder

Example:

 

Names Default to Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dialog = Column Dialog(
	col = Col List( "X, Factor", Min Col( 1 ), Max Col( 1 ) )
);

If( dialog["Button"] == -1, Throw( "User cancelled" ) );
Remove From( dialog );
Eval List( dialog );

x = col[1];

dt << Graph Builder(
	Size( 534, 454 ),
	Show Control Panel( 0 ),
	Variables( X( x ), Y( :weight ) ),
	Elements( Points( X, Y, Legend( 3 ) ) )
);
Learn it once, use it forever!
Highlighted
Thomas1
Level V

Re: JSL - Check box to select variable to then plot in graph builder

Thanks Martin, for this helpful script.
Highlighted

Re: JSL - Check box to select variable to then plot in graph builder

kudos goes to Mark
Highlighted
Thomas1
Level V

Re: JSL - Check box to select variable to then plot in graph builder

Sorry for that. Meanwhile I did kudos Mark as well.
Article Labels

    There are no labels assigned to this post.