INNER CODE UNIT · Python
collection
MathCancer/PhysiCell · beta/anim_svg_cycle.py:192
collection = PatchCollection(patches, **kwargs)
if c is not None:
c = np.broadcast_to(c, zipped.shape).ravel()
collection.set_array(c)
collection.set_clim(vmin, vmax)
ax = plt.gca()
ax.add_collection(collection)
ax.autoscale_view()
plt.draw_if_interactive()
if c is not None:
plt.sci(collection)
return collection
#-----------------------------------------------------
def plot_svg():
global current_idx, axes_max
fname = "snapshot%08d.svg" % current_idx