Page 1 of 1

access data of graph

Posted: Wed Feb 22, 2012 9:58 pm
by pfortier
If I code

Code: Select all

...
objectvar g 
g = new Graph(0)
g.addexpr("soma.v(.5)") 
graphList.append(g) 
then the voltage will be displayed as the simulation runs.
Are the x and y data used for this plot available? I know I can save the time and voltage in vectors and then plot them in a graph but I was wondering whether the x and y data from the above code are held in vectors that are accessible.

Re: access data of graph

Posted: Thu Feb 23, 2012 9:43 am
by ted
Can be done manually with the Print & File Window Manager GUI tool--see
output: numbers instead of graph
viewtopic.php?f=15&t=66
I don't know if this is callable from hoc.

Re: access data of graph

Posted: Thu Feb 23, 2012 9:57 am
by ted
PWManager class's printfile() method--see
http://www.neuron.yale.edu/neuron/stati ... #PWManager