2 # $Id: mouselabels.dem,v 1.2 2006/07/10 21:06:11 sfeam Exp $
4 # Demonstrate screen interaction using mouse variables
6 # MOUSE_X MOUSE_Y MOUSE_KEY MOUSE_CHAR
9 set termoption enhanced
11 set title "Demo interactive placement of labels using mouse feedback"
12 set label 1 at graph 0.02, graph 0.9
13 set label 1 "Position mouse at desired start of label and start typing\nEnhanced text syntax may be used\nArrow keys will reposition label as you go\n <del> or <bs> allows editing\n <tab> to terminate this label\n <esc> to terminate demo"
20 plot sin(13*besj0(x))/x
23 # Initialize label identifier
28 # Loop over interactive placement of new labels
39 pause -1 "Hit <cr> to continue"