TroglodyteDerivations
commited on
Commit
•
3a7dbcd
1
Parent(s):
c2332df
Updated lines 59-62 with: ax.annotate('Accelerating rhino = 400 m', (self.meeting_time, disp_acc[-1]), textcoords="offset points", xytext=(-60, 10), ha='center') ax.annotate('Constant speed Rhino = 1200 m', (self.meeting_time, disp_const[-1]), textcoords="offset points", xytext=(-80, -20), ha='center')
Browse files
app.py
CHANGED
@@ -57,9 +57,9 @@ class DisplacementVisualization(RhinoDisplacementPlot):
|
|
57 |
ax.plot(times, disp_acc, label='Accelerating Rhino')
|
58 |
ax.plot(times, disp_const, label='Constant Speed Rhino')
|
59 |
ax.annotate('Accelerating rhino = 400 m', (self.meeting_time, disp_acc[-1]),
|
60 |
-
textcoords="offset points", xytext=(-
|
61 |
ax.annotate('Constant speed Rhino = 1200 m', (self.meeting_time, disp_const[-1]),
|
62 |
-
textcoords="offset points", xytext=(-
|
63 |
ax.set_xlabel('Time (s)')
|
64 |
ax.set_ylabel('Displacement (m)')
|
65 |
ax.legend()
|
|
|
57 |
ax.plot(times, disp_acc, label='Accelerating Rhino')
|
58 |
ax.plot(times, disp_const, label='Constant Speed Rhino')
|
59 |
ax.annotate('Accelerating rhino = 400 m', (self.meeting_time, disp_acc[-1]),
|
60 |
+
textcoords="offset points", xytext=(-60, 10), ha='center')
|
61 |
ax.annotate('Constant speed Rhino = 1200 m', (self.meeting_time, disp_const[-1]),
|
62 |
+
textcoords="offset points", xytext=(-80, -20), ha='center')
|
63 |
ax.set_xlabel('Time (s)')
|
64 |
ax.set_ylabel('Displacement (m)')
|
65 |
ax.legend()
|