Search found 18 matches
- Sat Dec 14, 2013 11:15 am
- Forum: NEURON + Python
- Topic: nrnpython+matplotlib gui thread hangs
- Replies: 1
- Views: 5026
nrnpython+matplotlib gui thread hangs
I'm having some issues using matplotlib plots from the hoc side with nrnpython due to threading issues. The problem is that the matplotlib gui thread seems to prevent response from the hoc interpreter. Previously, the code sequence below was effective in dealing with this issue (similar to ipython i...
- Mon Oct 28, 2013 12:13 pm
- Forum: Specific models
- Topic: X-axis changes scale when adding color to plot
- Replies: 2
- Views: 29816
Re: X-axis changes scale when adding color to plot
Hi Sanjay, You just need to pass the correct arguments to the Vector plot function. Here are the docs for that: http://www.neuron.yale.edu/neuron/static/new_doc/programming/math/vector.html#Vector.plot Since you want to specify a dt and a color you'll have to use this call: vec.plot(graphobj, x_incr...
- Tue Jun 26, 2012 1:39 pm
- Forum: NEURON + Python
- Topic: python & hoc strings
- Replies: 1
- Views: 14242
python & hoc strings
I am trying to modify a hoc string from within a mod file (strtest.mod code below) and want to be able to do this using both hoc and python. When I call the code in test.py there's no error when running using NEURON h(command) syntax, but when using h.variablename syntax, I get an error. Although th...