suny-downstate-medical-center / netpyne

A Python package to facilitate the development, parallel simulation, optimization and analysis of multiscale biological neuronal networks in NEURON.
http://www.netpyne.org
MIT License
144 stars 135 forks source link

Feature for 2D Plotting: ability for user to specify line color #720

Open roopa-pai opened 1 year ago

roopa-pai commented 1 year ago

Feature for 2D Plotting: ability for user to specify line color

The function specs.SimConfig.analysis["plot2Dnet"] currently contains the following if statement:

if con['synMech'] in ['inh', 'GABA', 'GABAA', 'GABAB']: color = 'blue'

In cases where synMechs are named by the user, and differ from the names currently hardcoded, there is no longer the ability to color-code the connection between the cells.

It would be a valuable feature to have to be able, as the user, to specify the list of synMechs that the plotter should treat as inhibitory.

Hassan-gobara commented 1 year ago

So would you like to treat all the synMechs as Inh as long as it’s not defined by the user ?