from datetime import datetime from decimal import Decimal import matplotlib.pyplot def display( simulated: tuple[list[datetime], list[Decimal]], measured: list[tuple[datetime, Decimal]], ) -> None: matplotlib.pyplot.plot( list(simulated[0]), # type: ignore [float(i) for i in simulated[1]], label="Simulated", ) matplotlib.pyplot.plot( [i[0] for i in measured], # type: ignore [float(i[1]) for i in measured], label="Measured", marker="x", linestyle="None", ) matplotlib.pyplot.xlabel("Time") matplotlib.pyplot.ylabel("Money") matplotlib.pyplot.legend() matplotlib.pyplot.xticks(rotation=45) matplotlib.pyplot.show()