Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions anastruct/fem/plotter/mpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,8 +871,8 @@ def axial_force(
self.plot_structure(
figsize, 1, scale=scale, offset=offset, gridplot=gridplot, axes_i=axes_i
)
assert self.system.element_map[1].axial_force is not None
con = len(self.system.element_map[1].axial_force)
assert list(self.system.element_map.values())[0].axial_force is not None
con = len(list(self.system.element_map.values())[0].axial_force)

if factor is None:
max_force = max(
Expand Down Expand Up @@ -982,8 +982,8 @@ def bending_moment(
self.plot_structure(
figsize, 1, scale=scale, offset=offset, gridplot=gridplot, axes_i=axes_i
)
assert self.system.element_map[1].bending_moment is not None
con = len(self.system.element_map[1].bending_moment)
assert list(self.system.element_map.values())[0].bending_moment is not None
con = len(list(self.system.element_map.values())[0].bending_moment)
if factor is None:
# maximum moment determined by comparing the node's moments and the sagging moments.
max_moment = max(
Expand Down