Skip to content

Commit

Permalink
Tool: better plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
kbumsik committed Mar 24, 2018
1 parent b1465ab commit fed3a9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/plot.py
Expand Up @@ -19,8 +19,9 @@
fig, axes = plt.subplots(nrows=2, ncols=1)
speeds = df[["Speed_Left", "Speed_Right", "T_setpoint", "R_setpoint"]]
pwms = df[["Output_Left", "Output_Right"]]
speeds.plot(ylim=(0,speeds["T_setpoint"].max()+10), ax=axes[0])
pwms.plot(ylim=(-10,pwms["Output_Left"].max()), ax=axes[1])

speeds.plot(ax=axes[0]) #, ylim=(0,speeds["T_setpoint"].max()+10),
pwms.plot(ax=axes[1]) #, ylim=(-10,pwms["Output_Left"].max()),
# df.plot(secondary_y=["Output_Left", "Output_Right"], mark_right=False)
plt.show()

Expand Down

0 comments on commit fed3a9d

Please sign in to comment.