Added axes at 0,0

This commit is contained in:
Ceres 2025-10-12 16:00:00 +01:00
parent 00db3aea6f
commit 68db9268d7

View file

@ -54,6 +54,8 @@ def part1(radFactor, orbits):
ax.plot(results.y[0],results.y[1]) # Make the plot ax.plot(results.y[0],results.y[1]) # Make the plot
ax.plot(0,0) ax.plot(0,0)
ax.legend(['Moon']) # and add a key. ax.legend(['Moon']) # and add a key.
ax.axhline(y=0, color='k', linewidth=0.5)
ax.axvline(x=0, color='k', linewidth=0.5)
plt.show() plt.show()