/* graphfaq.dlg *! VERSION 1.0.0 29Apr2003 Jean Marie Linhart This sample dialog is an example of how to use various graphics .idlg files in your own dialog. This dialog runs a scatter plot, with options from the various included tabs. */ VERSION 8.0 INCLUDE graph_header /* this includes std_graph.idlg, which includes _graph.idlg, which defines _dlgwd = 760 and _dlght = 350 */ INCLUDE header /* CANCEL, SUBMIT, OK buttons */ HELP hlp1, view("help scatter") /* A HELP button */ RESET res1 /* a RESET button */ DIALOG main, label("graphfaq -- Example dialog for graphics idlg files") /// tabtitle("Main") BEGIN INCLUDE _glist_def /* a must include for graphics tabs, this goes here */ TEXT tx_faq 10 10 740 20, label("Scatter plot variables:") VARLIST vl_faq @ +20 @ @ , label("Variables") END INCLUDE _glist_sc /* a must include for graphics tabs */ INCLUDE gby /* use as many or as few of these as you want */ INCLUDE gyaxis INCLUDE gxaxis INCLUDE gtitle INCLUDE gcaption INCLUDE glegend INCLUDE gregion PROGRAM command BEGIN put "scatter " varlist main.vl_faq beginoptions put /program gby_output /* this is how you generate */ put /program gyaxis_output /* the command output for the */ put /program gxaxis_output /* various tabs */ put /program gtitle_output put /program gcaption_output put /program glegend_output put /program gregion_output endoptions END