Skip to content Skip to sidebar Skip to footer

Plotting A Scatter Plot For List/array In Matplotlib

I have wasted so much time looking through the examples given on internet. But I just cant figure out why can't I plot a simple graph of a list of datetime.date objects against a l

Solution 1:

I figured out what the problem was. There were indeed some string values in the date_list so the plt.plot complained. The plt.plot works just fine with a list of datetime.date values. There is no need to convert the datetime.date to any other format.


Post a Comment for "Plotting A Scatter Plot For List/array In Matplotlib"