Skip to content

Commit daf5c0a

Browse files
authored
examples(lsdyna): fix contact force legend (#2280)
1 parent 7a84633 commit daf5c0a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/14-lsdyna/00-lsdyna_operators.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,12 @@
184184
FY = FC.select_component(1)
185185
FZ = FC.select_component(2)
186186

187-
plt.plot(t_vals, FX.get_field({"interface": 19, "idtype": 0}).data, label="FX, slave")
188-
plt.plot(t_vals, FX.get_field({"interface": 19, "idtype": 1}).data, label="FX, master")
189-
plt.plot(t_vals, FY.get_field({"interface": 19, "idtype": 0}).data, label="FY, slave")
190-
plt.plot(t_vals, FY.get_field({"interface": 19, "idtype": 1}).data, label="FY, master")
191-
plt.plot(t_vals, FZ.get_field({"interface": 19, "idtype": 0}).data, label="FZ, slave")
192-
plt.plot(t_vals, FZ.get_field({"interface": 19, "idtype": 1}).data, label="FZ, master")
187+
plt.plot(t_vals, FX.get_field({"interface": 19, "idtype": 0}).data, label="FX, master")
188+
plt.plot(t_vals, FX.get_field({"interface": 19, "idtype": 1}).data, label="FX, slave")
189+
plt.plot(t_vals, FY.get_field({"interface": 19, "idtype": 0}).data, label="FY, master")
190+
plt.plot(t_vals, FY.get_field({"interface": 19, "idtype": 1}).data, label="FY, slave")
191+
plt.plot(t_vals, FZ.get_field({"interface": 19, "idtype": 0}).data, label="FZ, master")
192+
plt.plot(t_vals, FZ.get_field({"interface": 19, "idtype": 1}).data, label="FZ, slave")
193193
plt.xlabel("Time ({:s})".format(t_field.unit))
194194
plt.xlim([0, 10])
195195
plt.ylabel("Contact Force ({:s})".format(FX.get_field({"interface": 19, "idtype": 0}).unit))

0 commit comments

Comments
 (0)