You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
explore_math/ch2_graphing/simple_graphs.py

17 lines
263 B
Python

"""
Simple matplotlib example
"""
import numpy as np
import matplotlib.pyplot as plt
x_numbers = np.array([1, 2, 3])
y_numbers = np.array([2, 4, 6])
fig, ax = plt.subplots()
ax.plot(x_numbers, y_numbers, marker="o")
if __name__ == "__main__":
plt.show()