plot_truss_responses¶
- opstool.vis.plotly.plot_truss_responses(odb_tag=1, ele_tags=None, slides=False, show_values=True, resp_type='axialForce', alpha=1.0, show_outline=False, line_width=1.5)[source]¶
Visualizing Truss Response.
Parameters¶
- odb_tag: Union[int, str], default: 1
Tag of output databases (ODB) to be visualized.
- ele_tags: Union[int, list], default: None
The tags of truss elements to be visualized. If None, all truss elements are selected.
- slides: bool, default: False
Display the response for each step in the form of a slideshow. Otherwise, show the step with the largest response.
- show_values: bool, default: True
Whether to display the response value.
- resp_type: str, default: “axialForce”
Response type, optional, one of [“axialForce”, “axialDefo”, “Stress”, “Strain”].
- alpha: float, default: 1.0
Scale the size of the response graph.
Note
You can adjust the scale to make the response graph more visible. A negative number will reverse the direction.
- show_outline: bool, default: False
Whether to display the outline of the model.
- line_width: float, default: 1.5.
Line width of the response graph.
Returns¶
- fig: plotly.graph_objects.Figure
You can use fig.show() to display, You can also use fig.write_html(“path/to/file.html”) to save as an HTML file, see Interactive HTML Export in Python