The following script demonstrates how to set a graphs colors, fonts etc.
[macro gui_colors_example #standalone=1] // // create display, graph and dialog // and configure, display cursors // if '$#standalone' == 1 then if '$(load macrocode $scriptdirectory\gui_basic_example.sts)' > 0 em $rc ; $#mac - $emsg gui_basic_example 0 if '$(load macrocode $scriptdirectory\gui_cursors_example.sts)' > 0 em $rc ; $#mac - $emsg gui_cursors_example 0 end // // configure graph // // the title (top left) of the graph $myGraph title on 'arial:13:italic' black 'Graph Title' // axis data range, units and title // this data is used for the labels as well as the cursor // position data. $myGraph xscale 0 $#nValues-1 'X Unit' 'X Title' $myGraph yscale 0 $#nValues-1 'Y Unit' 'Y Title' // colors / fonts / labels etc // specify the background color $myGraph bgcolor hlgray white // specify which axes labels to display, the font and color to use $myGraph axis below left 'courier:10' gray below left 'arial:12:bold' black on on // specify which axes to display and whether to display a grid or not // and the number of steps between labels (ticks). $myGraph frame below left gray both gray 5 5 -20 -10 // plot type and data source $myGraph y 0 * * 1 red lines solid 3 // cursors $myGraph cursormode both cross on 0 off off red yellow /Apply // // set the display position // $myDisplay enabled restored 100 100 800 800 // // process messages until display is close // by the user // setmsghandler display $myDisplay gui_colors_example_mh AppMode := 1 do while '$AppMode' != '0' GetMessage end setmsghandler display $myDisplay // // clean up // delete $myGraph $myDisplay $myDialog $mySpu $myCursors exit [MACRO gui_colors_example_mh #objtype #objname #msgid #msgpar] if '$#objtype' == display || '$#objtype' == shell then if '$#msgid' == Close || '$#msgId' == Exit then AppMode := 0 end end exit 1