Justas
Justas

Reputation: 5962

NEURON python Graph() is blank

When using python interface for NEURON, when I create a g=h.Graph() object in python, with g.addvar(...) to plot a variable, clicking Init & Run results in an empty Graph:

enter image description here

Upvotes: 1

Views: 108

Answers (1)

Justas
Justas

Reputation: 5962

After creating the Graph() object, also add it to the global graphList. It will then be updated during run():

g = h.Graph()
g.addvar(...)

h.graphList[0].append(g)

h.run()

enter image description here

Upvotes: 3

Related Questions