flins.visualize package¶
Submodules¶
flins.visualize.flat_render module¶
Support for rendering the tracts (and proteins within them) at the current timestep as an SVG. When changing this, [a list of named colors](https://www.december.com/html/spec/colorsvg.html) is useful.
-
flins.visualize.flat_render.
plot_world
(world, params={})[source]¶ Plot a world as a flat, unrolled, svg :Parameters: * world (flins.construct.World) – World to render as svg
params (dict keys in (y_span, y_sep, xm, ym)) – Set how tall tracts are (y_span), how far apart they are (y_sep), and the multipliers used to convert SVG units to pixels (ym, xm)
flins.visualize.movie module¶
Support for movie generation
-
class
flins.visualize.movie.
MovieGen
(outname='out', temp_dir=None, fps=25, zoom=(1.0, 1.0), quiet=False)[source]¶ Bases:
object
Generate a movie from a set of steps in the world or SVGs
Support the creation of movies from runs
- Parameters
outname (str (out)) – Relative path for the output file
temp_dir (str) – Dir where we’ll do our work, deleted on exit if not specified
fps (int) – How many frames per sec for resulting movie
zoom (tuple of floats) – x and y zoom levels
quiet (boolean) – don’t show current status if True
flins.visualize.svg module¶
Support for saving and displaying SVGs
-
flins.visualize.svg.
display
(dwg)[source]¶ Save to a temporary file and open (only on MacOS)
- Parameters
dwg (SVG write.Drawing) – SVG to render to disk and open in Safari
flins.visualize.vis_actin module¶
Plot fancy versions of our proteins on matplotlib axes
This was transferred here from the protein classes themselves and is mostly for storage at this point.
flins.visualize.vis_space module¶
Plot things about our hex spaces and their tracts on matplotlib axes