Search found 4 matches
- Mon Sep 27, 2021 8:52 am
- Forum: The GUI
- Topic: Problem plotting PlotShape
- Replies: 16
- Views: 92805
Re: Problem plotting PlotShape
Hi Ted, Trying to run this on Python version 3.6.8 raises the following error: >>> from neuron import h >>> import matplotlib as pyplot >>> main = h.Section(name='main') >>> dend = h.Section(name='dend') >>> dend.connect(main) dend >>> ps = h.PlotShape(False) >>> ps.plot(pyplot) Traceback (most rece...
- Fri Sep 24, 2021 6:33 am
- Forum: The GUI
- Topic: Problem plotting PlotShape
- Replies: 16
- Views: 92805
Re: Problem plotting PlotShape
On my Mac, I tried running it with python3.7 which worked fine.
So I guess the python version is causing trouble here.
So I guess the python version is causing trouble here.
- Fri Sep 24, 2021 6:32 am
- Forum: The GUI
- Topic: Problem plotting PlotShape
- Replies: 16
- Views: 92805
Re: Problem plotting PlotShape
Hi Ted, Thanks for your reply. I am running Python 3.9.4 with NEURON 8.0 installed via pip on Windows 10. I have also tried it on my macOs (Big Sur 11.2.3), running python 3.9.1 and NEURON 8.0.0 installed using pip. This also gave me an error but actually another one: Segmentation fault: 11 I'm not ...
- Thu Sep 23, 2021 10:53 am
- Forum: The GUI
- Topic: Problem plotting PlotShape
- Replies: 16
- Views: 92805
Problem plotting PlotShape
Hi everyone, I am having trouble plotting a PlotShape in python using pyplot. Below is a very simple example according to the documentation: 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.pl...