I am having trouble plotting a PlotShape in python using pyplot.
Below is a very simple example according to the documentation:
Code: Select all
from neuron import h
from matplotlib import pyplot
main = h.Section(name='main')
dend = h.Section(name='dend')
dend.connect(main)
ps = h.PlotShape(False)
ps.plot(pyplot)
pyplot.show()
Code: Select all
Traceback (most recent call last):
File "path\to\file", line 16, in <module>
ps.plot(pyplot)
File "c:\nrn\lib\python\neuron\__init__.py", line 1147, in __call__
return _do_plot_on_matplotlib_figure(fig)
File "c:\nrn\lib\python\neuron\__init__.py", line 1005, in _do_plot_on_matplotlib_figure
variable, varobj, lo, hi, secs = get_plotshape_data(ctypes.py_object(self._data))
OSError: exception: access violation reading 0x0000000000000010
Many thanks!