MultiFigure¶
-
class
texfigure.MultiFigure(nrows, ncols, reference='', continuation=False)[source]¶ Bases:
_abcoll.SequenceA Multifigure is a container object for building subfigures from
texfigure.Figureclasses.Parameters: nrows :
intNumber of rows for the MultiFigure.
ncols :
intNumber of columns for the MultiFigure.
Examples
\begin{pycode} muti = texfigure.MultiFigure(1,2) X = [[5,6], [7,8]] Y = [[1,2], [3,4]] for x,y in zip(X,Y): fig = plt.figure() plt.plot(x, y, 'o') Fig1 = texfigure.Figure(fig) multi.append(Fig) \end{pycode} \py|multi|
Attributes
figures ( numpy.ndarray) Array holdingtexfigure.Figureobjects, has a shape of (nrows, ncols).caption ( str) The caption to use when representing the figure. (DefaultFigure reference)label ( str) The latex label assigned to the figure envrionment. (Defaultfig:reference)placement ( str) The figure envrionment placement value. (Defaulth)frontmatter ( str) LaTeX code included in the first line of the figure environment. (Default\centering)Attributes Summary
fig_strMethods Summary
Attributes Documentation
-
fig_str= '\n\\begin{{figure*}}\n {frontmatter}\n {myfig}\n \\caption{{{caption}}}\n \\label{{{label}}}\n\\end{{figure*}}\n'¶
Methods Documentation
-
append(figure)[source]¶ Add a
texfigure.Figureobject to the next empty slot in theMultiFigure.
-