Output model data as tikz code in latex#
- opstool.vis.save_tikz(input_file, output_file='ModelData.tex', point_size=5, line_width=3, face_opacity=0.6, solid_opacity=0.6, point_opacity=0.8, line_opacity=1.0, color_dict=None)[source]#
Save the
OpenSeesPymodel data as atikzcommand file inlatex, and then you can open it in your local tex editor, or run it online inoverleaf.Parameters#
- input_filestr
The input model data file, e.g., “opstool_output/ModelData.hdf5”.
- output_filestr, optional
The output tex file contains the tikz commands, by default “ModelData.tex”
- point_sizefloat, optional
The point size in
ptunit, by default 5- line_widthfloat, optional
The line width in
ptunit, by default 3- face_opacityfloat, optional
The opacity of face elements, by default 0.75
- solid_opacityfloat, optional
The opacity of solid elements, by default 0.75
- point_opacityfloat, optional
The opacity of point, by default 0.75
- line_opacityfloat, optional
The opacity of line elements, by default 1.0
- color_dictdict, optional
The color of each type of element, by default None. The valid color string must be one of the
xcolorpackage. If None, color_dict = dict(point=”Maroon”, line=”Blue”, face=”Green”, solid=”Violet”, truss=”pink”, link=”SkyBlue”, constraint=”Lime”)