Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

sdynpy.doc.sdynpy_latex.figure

Signature

def sdynpy.doc.sdynpy_latex.figure(figures, figure_label=None, figure_caption=None, graphics_options='width=0.7\\linewidth', animate_graphics_options='width=0.7\\linewidth,loop', figure_placement='', subfigure_options='[t]{0.45\\linewidth}', subfigure_labels=None, subfigure_captions=None, max_subfigures_per_page=None, max_subfigures_first_page=None, figure_save_names=None, latex_root='', animation_style=None, animation_frames=20, animation_frame_rate=20, geometry=None, geometry_plot_shape_kwargs={})

Adds figures, subfigures, and animations to a running latex document.

Parameters

Returns

Notes

The figures argument must be a list of figures. If only one entry is present in the list, a figure will be made in the latex document. If multiple entries are present, a figure will be made and subfigures will be made for each entry in the list. If an entry in the list is also a list, then that figure or subfigure will be made into an animation.

The list of figures can contain many types of objects that a figure will be made from, including: - A 2D numpy array - A Matplotlib figure - A pyqtgraph plotitem - A bytes object that represents an image - A string to a file name - A GeometryPlotter containing a geometry - A ShapePlotter containing a mode shape - A ShapeArray object containing a mode