Skip to content

Commit

Permalink
fix drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
wprzadka committed Sep 14, 2023
1 parent 39552c6 commit 459a1a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conmech/plotting/drawer.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, state, config: Config):
self.state = state
self.config = config
self.mesh = state.body.mesh
self.node_size = 2 + (300 / len(self.mesh.initial_nodes))
self.node_size = 2 + (300 / len(self.mesh.nodes))
self.line_width = self.node_size / 2
self.deformed_mesh_color = "k"
self.original_mesh_color = "0.7"
Expand Down Expand Up @@ -123,7 +123,7 @@ def set_axes_limits(self, axes, foundation):
def draw_meshes(self, axes):
if self.original_mesh_color is not None:
self.draw_mesh(
self.mesh.initial_nodes,
self.mesh.nodes,
axes,
label="Original",
node_color=self.original_mesh_color,
Expand Down

0 comments on commit 459a1a0

Please sign in to comment.