Skip to content

Commit

Permalink
Minor fix for plot envelopes (#90)
Browse files Browse the repository at this point in the history
* Minor fix for plot envelopes

Minor fix on bridge analysis plot envelopes. Bending moment was shown with negative sign and the y-axis was not inverted. Minor fix on "stress resultants".

* Update "stress resultants"
  • Loading branch information
RoccoRaimo authored May 15, 2024
1 parent c35130b commit f109c7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pycba/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,9 @@ def plot_envelopes(self, env: Envelopes):

ax = axsLeft[0]
ax.plot([0, L], [0, 0], "k", lw=2)
ax.plot(x, -env.Mmax, "r")
ax.plot(x, -env.Mmin, "b")
ax.plot(x, env.Mmax, "r")
ax.plot(x, env.Mmin, "b")
ax.invert_yaxis()
ax.grid()
ax.set_ylabel("Bending Moment (kNm)")

Expand Down

0 comments on commit f109c7e

Please sign in to comment.