Hi all,
I'm having trouble with getting SyncLines to show up on the raster plot in tutorial 7. Downloading tut7.py from
the raster plot doesn't even show to begin with. It gives the following error:
Plotting raster...
There was an exception in plotRaster():
'NoneType' object has no attribute 'plot .
To fix this error, I needed to comment out line 55:
simConfig.analysis['plotRaster'] = {'syncLines': True, 'saveFig': True} # Plot a raster ,
and instead put the following line somewhere after line 77:
sim.analysis.plotRaster(timeRange=[0,500],syncLines=True,saveFig=True) ,
which is an alternative way of plotting the raster plot. This fixes the error I was getting before, and I am now getting the raster plot to show up, but it doesn't have any SyncLines plotted. I have also tried plotting SyncLines on some of the other tutorial files, but I run into the same issues. Running the code
print(sim.allSimData['spkt'])
confirms that the spike times are working as intended, so this likely isn't the problem. Any help would be appreciated.
Best,
Ivan