Why Pyplot(matplotlib) Is Joining Points Randomly?
Why is pyplot joining points randomly when I run this code? def plot_date_value(single_data_frame): date_axis_data = [] value_axis_data = [] date_ticks = [] for ite
Solution 1:
It connects the points in the order given. Your dates are not sorted.
Try changing the for
loop to:
for item in sorted(single_data_frame):
Post a Comment for "Why Pyplot(matplotlib) Is Joining Points Randomly?"