visualizecell_to_ipython_animationcell_to_animation

cell_to_animation

visualize.cell_to_ipython_animation.cell_to_animation(cell, xlim=None, ylim=None, tstart=245, tend=310, tstep=1, range_vars='Vm', plot_synaptic_input=False, outdir='animation')

Takes a cell object and creates a 2d animation plotting the range_vars vs soma distance over time.

Parameters:
  • outdir (str) – folder, where animation should be saved. The result will be .png files.

  • xlim (tuple) – tuple like (0, 1600) that defines the limits of the x axis. If None, tries to get default values for range var from get_default_axis Default: None.

  • ylim (tuple) – tuple like (-80 0) that defines the limits of the y axis If None, tries to get default values for range var from get_default_axis Default: None.

  • tstart (float) – time when animation should be started

  • tend (float) – time when animation should be stopped

  • tstep (float) – timestep between frames

  • range_vars (str | list) – str or list of str: range vars to display, default: ‘Vm’

Returns:

list of paths to images

Return type:

list

Note

Copyright (c) 2013, Jake Vanderplas All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.