1
0
mirror of https://gitlab.com/MisterBiggs/aero-astro-calc.git synced 2025-06-15 22:56:47 +00:00

added calculated values to figure

This commit is contained in:
Anson 2020-01-20 11:25:47 -07:00
parent eb03e795d5
commit 8a59fa2836

View File

@ -54,8 +54,32 @@ class PlaneStress:
x=2.5, y=2.6, text=f"\\tau_{{xy}} = {self.tau_xy}", render_mode="css"
)
)
plot.add_layout(Arrow(x_start=-2.5, y_start=2, x_end=-2.5, y_end=-2.2))
plot.add_layout(Arrow(y_start=-2.5, x_start=2, y_end=-2.5, x_end=-2.2))
# Other calculations
plot.add_layout(
LatexLabel(
x=-1.8,
y=1.8,
text=f"\sigma_1 = {round(self.sigma_1,4)}",
render_mode="css",
)
)
plot.add_layout(
LatexLabel(
x=-1.8,
y=1.4,
text=f"\sigma_2 = {round(self.sigma_2,4)}",
render_mode="css",
)
)
plot.add_layout(
LatexLabel(
x=-1.8,
y=1,
text=f"\\tau_{{max}} = {round(self.tau_max,4)}",
render_mode="css",
)
)
show(plot)