Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hey try this. Will help you extract your time and then separate your data into a list format rather than the default dictionary. Once you have this, you can plot it with Matplotlibs. Let me know how you go

import dyntools

# Run dyntools to extract the data
chnfobj = dyntools.CHNF(os.path.join(folder, outfile))
sh_ttl, ch_id, ch_data = chnfobj.get_data()

# Extract time as a variable
time = ch_data['time']

# Number of channels, (-1 as 'time' is represented in channel data)
count = len(ch_id) - 1

# Extract channel data
data = [ch_data[x + 1] for x in xrange(count)]