Sep-14-2021, 03:02 PM
(This post was last modified: Sep-14-2021, 03:05 PM by deanhystad.)
This works fine for me:
import math import numpy as np import matplotlib.pyplot as plt degrees = np.arange(0, 360, 1) my_data = [math.sin(math.radians(deg)) for deg in degrees] plt.plot(degrees, my_data) plt.show()Both my_data and degrees look like flat lists. My guess is csv_reader is returning something other than a flat list. What do you see when you print my_data?