functions axis graphmode plotx regraph fmenu lw ploty setcolor graph plot plt settextThe above functions have been superceded by the graphical user interface but are available for use on unix machines and in the DOS version. See Graph
obsolete
Fmenu creates, displays, and allows user to move within a menu to select and change a displayed variable value or to execute a command.
The user can create space for a series of menus and execute individual menus with each menu consisting of lists of variables and commands. Menus can execute commands which call other menus and in this way a heirarchical menu system can be constructed. Menus can be navigated by using arrow keys or by typing the first character of a menu item. To exit a menu, either press the Esc key, execute the "Exit" item, or execute a command which has a "stop" statement. A command item is executed by pressing the Return key. A variable item is changed by typeing the new number followed by a Return.
See the file $NEURONHOME/doc/man/oc/menu.tex for a complete description of this function.
obsolete
lw(file)
lw(file, device)
lw()
Lw(file, device)
opens a file to keep a copy of subsequent
plots (file is a string variable or a name enclosed in double
quotes). All graphs which are generated on the screen are saved in
this file in a format given by the integer value of the device argument.
f2ps
translates fig to postscript.
CODRAW
. The file should be opened with the extension,
.DRA
.
Lw keeps copying every plot to the screen until the file is closed with
the command, lw()
. Note that erasing the screen with plt(-3)
or
a (cntrl)E will throw away whatever is in the file and restart the file at the
beginning. Therefore, lw
keeps an accurate representation of the
current graphic status of the screen.
After setting the device once, it remains the same unless changed again by another call with two arguments. The default device is 2.
COM1:
. Then
the following procedure will plot whatever graphics information
happens to be on the screen (not normal text).
lw("temp", 1) proc hp() { plt(-1) lw() system("copy temp com1:") lw("temp") }
Notice that the above procedure closes a file, prints it, and then
re-opens temp
. The initial direct command makes sure the
file is open the first time hp is called.
plt(-1)
command before closing the file to ensure that the last line drawing
is properly terminated.
In our hands the the HP plotter works well at 9600 BAUD and with the line ``\verb+MODE COM1:9600,,,,P+'' in the autoexec.bat file.