Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Specify colours in rasterplot

23 views
Skip to first unread message

Maliha A

unread,
Oct 13, 2023, 10:34:09 AM10/13/23
to NetPyNE Q&A forum
Is there a way to specify the colours for each population in the rasterplot?

Thank you

Valery Bragin

unread,
Oct 13, 2023, 5:57:03 PM10/13/23
to NetPyNE Q&A forum
Hi Maliha,

You can use `popColors` parameter, which takes dictionary of populations labels and colors in the format accepted by matplotlib, e.g.:
{'E2': 'red', 'E4': 'pink', 'I2': 'purple'}

Best regards,
Valery
Reply all
Reply to author
Forward
0 new messages