Turn Keep Lines on in hoc and preserve color info
Turn Keep Lines on in hoc and preserve color info
How can I turn on Keep Lines from the hoc code without using the Graph.family() command? Specifically I have a bunch of different variables being plotted in different colors, and calling family() changes all the colors to black.
-
- Site Admin
- Posts: 6302
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Good question.
Use the Graph class's exec_menu() method. From the Programmer's
Reference this short quotation:
http://www.neuron.yale.edu/neuron/stati ... #exec_menu
Of course this begs another question:
"Suppose I created the graph by using the GUI? How do I know what name
to call the graph?"
Click on the graph's menu box, then move the cursor slightly up and over
to the right to reveal the graph's secondary menu, and then drag the
cursor down to the last item in the secondary menu, which is called
"Object Name". hoc will print the name of the graph object in NEURON's
xterm.
Use the Graph class's exec_menu() method. From the Programmer's
Reference this short quotation:
Read about it here:SYNTAX
g.exec_menu("item name")
DESCRIPTION
Equivalent to pressing and releasing one of the items in the Graph menu with the right mouse button.
http://www.neuron.yale.edu/neuron/stati ... #exec_menu
Of course this begs another question:
"Suppose I created the graph by using the GUI? How do I know what name
to call the graph?"
Click on the graph's menu box, then move the cursor slightly up and over
to the right to reveal the graph's secondary menu, and then drag the
cursor down to the last item in the secondary menu, which is called
"Object Name". hoc will print the name of the graph object in NEURON's
xterm.