save_tikz#

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 OpenSeesPy model data as a tikz command file in latex, and then you can open it in your local tex editor, or run it online in overleaf.

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 pt unit, by default 5

line_widthfloat, optional

The line width in pt unit, 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 xcolor package. If None, color_dict = dict(point=”Maroon”, line=”Blue”, face=”Green”, solid=”Violet”, truss=”pink”, link=”SkyBlue”, constraint=”Lime”)