morphogen.viz¶
Visualization: images without dependencies, figures with matplotlib ([plot]).
morphogen.viz.png: colour maps, sections and PNG encoding (standard library);morphogen.viz.figures: sections, periodic tilings, 3D surfaces, histories, transformation kinetics, animated GIFs of the formation of structures, the beams of frames coloured by their forces or energies and the replicas of networks of non-identical beams.
Public names¶
colormap— RGB (uint8) of real values with a viridis-like map.decode_png— RGB array of PNG bytes written byencode_png()(for tests).encode_png— PNG bytes of an RGB (h, w, 3) or grey (h, w) uint8 array.slice_of— A 2D section of a 3D array (middle section by default), displayed with the first remaining axis horizontal and the second vertical (rows from the top).to_rgb— Colours of a 2D array:phase(palette),labelsorfield(colour map);autopicks phases for small non-negative integers and a colour map otherwise.upscale— Nearest-neighbour enlargement (crisp voxels in small images).