Module Expr Str ImportFrom alias Import alias identifier Import alias identifier ImportFrom alias identifier ImportFrom alias Import alias ClassDef bases body Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam defaults Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Print BinOpAdd BinOpAdd BinOpAdd NameLoad Str Call NameLoad NameLoad Str Assign NameStore Call NameLoad BinOpDiv NameLoad NameLoad Assign NameStore Call NameLoad BinOpDiv NameLoad NameLoad If CompareGt NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Print AttributeLoad NameLoad attr Print BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad Call NameLoad NameLoad Str Call NameLoad Call NameLoad BinOpDiv BinOpMult SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Num Str Assign NameStore BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num Num Return SubscriptLoad NameLoad Slice NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad BinOpMult NameLoad Num Assign NameStore Call NameLoad BinOpMult NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Num Assign NameStore Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore BinOpMult Call AttributeLoad NameLoad attr Call NameLoad Num Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Num Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad Num Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad Num Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num ListLoad Num ListLoad Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Index Num Slice Num Num SubscriptLoad NameLoad ExtSlice Index Num Slice Num Num SubscriptLoad NameLoad ExtSlice Index Num Slice Num Num keyword Num Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Index Num Slice Num Num SubscriptLoad NameLoad ExtSlice Index Num Slice Num Num SubscriptLoad NameLoad ExtSlice Index Num Slice Num Num keyword Num Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Index Num Slice Num Num SubscriptLoad NameLoad ExtSlice Index Num Slice Num Num SubscriptLoad NameLoad ExtSlice Index Num Slice Num Num keyword Num Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Index Num Slice Num Num SubscriptLoad NameLoad ExtSlice Index Num Slice Num Num SubscriptLoad NameLoad ExtSlice Index Num Slice Num Num keyword Num Index Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad BinOpMult ListLoad Num NameLoad BinOpMult ListLoad Num NameLoad BinOpMult ListLoad Num NameLoad BinOpMult ListLoad Num NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad Call NameLoad NameLoad Index Num Slice NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad Call NameLoad NameLoad Index Num Slice NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad Call NameLoad NameLoad Index Num Slice NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad Call NameLoad NameLoad Index Num Slice NameLoad NameLoad If BoolOpOr CompareEq NameLoad Num CompareEq NameLoad Num CompareEq NameLoad Num CompareEq NameLoad Num CompareEq NameLoad Num body Print Str NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num keyword Num keyword NameLoad Assign NameStore Str Assign NameStore Num Assign NameStore Call AttributeLoad Dict Str Str Str Str attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str keyword Num keyword ListLoad Str Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad Print Str
N/A N/A 
Matplotlib Animation Example

author: Jake Vanderplas
email: vanderplas@astro.washington.edu
website: http://jakevdp.github.com
license: BSD
Please feel free to use and modify this, but keep the above information. Thanks!
 brian2 * N/A numpy np N/A mpl_toolkits.mplot3d.axes3d p3 matplotlib pyplot plt matplotlib animation N/A h5py Anim3dScatterPlot N/A N/A N/A plottingTimeRange 300 openHdf5 N/A N/A self hdf5name permision N/A w N/A N/A N/A self hdf N/A N/A h5py File hdf5name permision N/A closeHdf5 N/A N/A self N/A N/A N/A N/A N/A N/A self hdf close N/A getData N/A N/A self group level N/A N/A N/A N/A N/A self hdf N/A N/A N/A N/A / group / N/A str level N/A getDownsampleData N/A N/A self group start end screenSize N/A 1024 N/A N/A bestLevel 1 N/A data N/A N/A self getData group bestLevel N/A N/A N/A N/A group  has been downsampled  N/A str bestLevel  times N/A start N/A int N/A start bestLevel N/A end N/A int N/A end bestLevel N/A N/A end N/A N/A data shape N/A 0 N/A N/A N/A data shape N/A N/A N/A N/A N/A WARNING: you requested end =  N/A str N/A float end  seconds but data length is  N/A str N/A float N/A N/A N/A N/A data shape N/A 0 bestLevel 10000  seconds N/A end N/A N/A N/A data shape N/A 0 1 N/A N/A data N/A start end N/A incorperateData N/A N/A self group start end N/A N/A N/A start N/A int N/A start 10000 N/A end N/A int N/A end 10000 N/A voltage N/A N/A self getDownsampleData voltage start end N/A spikes N/A N/A self getDownsampleData spikes start end N/A N/A voltage spikes N/A create3dAnim N/A N/A self N/A N/A N/A plottingTimeRange N/A self plottingTimeRange N/A N/A N/A self openHdf5 simulation.hdf5 permision r N/A start 0.001 N/A end 0.3 N/A N/A voltage spikes N/A N/A self incorperateData voltage start end N/A times N/A N/A N/A np array N/A range 0 N/A len voltage 0.001 N/A fig N/A N/A plt figure N/A ax N/A N/A p3 Axes3D fig N/A N/A N/A ax set_xlim3d N/A 0.0 3.0 N/A N/A N/A ax set_xlabel Neuron N/A N/A N/A ax set_ylim3d N/A -0.03 0.3 N/A N/A N/A ax set_ylabel Time in ms*10 N/A N/A N/A ax set_zlim3d N/A -70.0 15.0 N/A N/A N/A ax set_zlabel Voltage N/A N/A N/A ax set_title Neuron voltage N/A N/A N/A ax view_init elev 15.0 azim -10 N/A c N/A N/A np array N/A N/A 0 N/A 0 N/A 0 N/A 0 N/A line N/A N/A N/A ax plot N/A c N/A N/A 0 N/A 0 1 N/A c N/A N/A 1 N/A 0 1 N/A c N/A N/A 2 N/A 0 1 lw 4 N/A 0 N/A line2 N/A N/A N/A ax plot N/A c N/A N/A 0 N/A 0 1 N/A c N/A N/A 1 N/A 0 1 N/A c N/A N/A 2 N/A 0 1 lw 4 N/A 0 N/A line3 N/A N/A N/A ax plot N/A c N/A N/A 0 N/A 0 1 N/A c N/A N/A 1 N/A 0 1 N/A c N/A N/A 2 N/A 0 1 lw 4 N/A 0 N/A line4 N/A N/A N/A ax plot N/A c N/A N/A 0 N/A 0 1 N/A c N/A N/A 1 N/A 0 1 N/A c N/A N/A 2 N/A 0 1 lw 4 N/A 0 N/A xVals N/A N/A np array N/A N/A N/A 0.0 plottingTimeRange N/A N/A 1 plottingTimeRange N/A N/A 2 plottingTimeRange N/A N/A 3 plottingTimeRange generateLine N/A N/A timePoint N/A N/A N/A timePointEnd N/A timePoint plottingTimeRange N/A N/A N/A line set_data N/A xVals N/A 0 N/A times N/A 0 plottingTimeRange N/A N/A N/A line set_3d_properties N/A N/A N/A transpose voltage N/A 0 N/A timePoint timePointEnd N/A N/A N/A line2 set_data N/A xVals N/A 1 N/A times N/A 0 plottingTimeRange N/A N/A N/A line2 set_3d_properties N/A N/A N/A transpose voltage N/A 1 N/A timePoint timePointEnd N/A N/A N/A line3 set_data N/A xVals N/A 2 N/A times N/A 0 plottingTimeRange N/A N/A N/A line3 set_3d_properties N/A N/A N/A transpose voltage N/A 2 N/A timePoint timePointEnd N/A N/A N/A line4 set_data N/A xVals N/A 3 N/A times N/A 0 plottingTimeRange N/A N/A N/A line4 set_3d_properties N/A N/A N/A transpose voltage N/A 3 N/A timePoint timePointEnd N/A N/A N/A timePoint 100 N/A timePoint 200 N/A timePoint 400 N/A timePoint 600 N/A timePoint 800 N/A N/A rendering timePoint:	 timePoint N/A N/A line_ani N/A N/A animation FuncAnimation fig generateLine frames 1000 interval 0.01 blit False N/A ext mp4 N/A fps 30 N/A codec N/A N/A N/A mp4 webm libx264 libvpx get ext mpeg4 N/A N/A N/A line_ani save testVoltage.mp4 fps 30 extra_args N/A -vcodec libx264 N/A N/A N/A plt show N/A __init__ N/A N/A self N/A N/A N/A N/A N/A self create3dAnim N/A N/A self closeHdf5 N/A N/A main N/A N/A N/A N/A N/A run3dAnim N/A Anim3dScatterPlot N/A N/A N/A __name__ __main__ N/A N/A N/A main N/A done