From 68db9268d7ef2e626e2e6e6ce6996cb50e21601a Mon Sep 17 00:00:00 2001 From: Ceres Date: Sun, 12 Oct 2025 16:00:00 +0100 Subject: [PATCH] Added axes at 0,0 --- Exercise 1/exercise1.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Exercise 1/exercise1.py b/Exercise 1/exercise1.py index be3f3ba..274230a 100644 --- a/Exercise 1/exercise1.py +++ b/Exercise 1/exercise1.py @@ -54,6 +54,8 @@ def part1(radFactor, orbits): ax.plot(results.y[0],results.y[1]) # Make the plot ax.plot(0,0) 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()