commit a499d4e3ff0e42a008e23584950a7ac163c96760 Author: geoffrey Date: Tue Dec 16 19:52:49 2025 +0100 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ab3e11f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +**.swp +__pycache__/ diff --git a/main.py b/main.py new file mode 100644 index 0000000..a406d75 --- /dev/null +++ b/main.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python3 + +from math import log, log10 +import matplotlib.pyplot as plt + +# If error ImportError: numpy.core.multiarray failed to import +# Unintall numpy: pip3 uninstall numpy +# Install version pip3 install "numpy<2" + + +fig, ax = plt.subplots() +x = list() +y = list() +for i in range(1, 100): + # print(log(i)) + x.append(i) + y.append(log(i)) # By defualt, base e + +ax.plot(x, y, linewidth=2, label=r"log") +ax.legend(fontsize=14) +plt.show()