“ValueError: year is out of range” when attempting to use matplotlib pyplot
问题 I am attempting to get a matplotlib plotting function to be able to produce a graph with the x-axis set as a time axis. However, when I attempt to plot some values against UNIX times, I encounter the error ValueError: year is out of range . What is going wrong and how can it be addressed? import os import time import matplotlib.dates import matplotlib.pyplot import shijian def main(): data = [ [1484611200.0, 844.4333], [1484524800.0, 783.3373], [1484438400.0, 774.194 ], [1484352000.0, 769