I’m currently trying to plot the data I recieve from an API (Hypixel), by pushing the values into an array and using that array as input for a matplotlib graph. I wanted to make sure it worked, so I made a test program (see below), and sure enough I couldn’t get it to work. I’m completely lost, so I just wanted to ask if any of you knew how to use an array as input for a matplotlib. Thanks :)
import matplotlib.pyplot as plt
import numpy
ab = [1, 2, 3, 4, 5]
ord = [1, 2, 3, 4, 5]
fig, ax = plt.subplots()
ax.plot([ab], [ord])