summaryrefslogtreecommitdiff
path: root/finance/visualize.py
diff options
context:
space:
mode:
Diffstat (limited to 'finance/visualize.py')
-rw-r--r--finance/visualize.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/finance/visualize.py b/finance/visualize.py
index c7a7c60..66943c7 100644
--- a/finance/visualize.py
+++ b/finance/visualize.py
@@ -5,12 +5,12 @@ import matplotlib.pyplot
def display(
- simulated: tuple[list[datetime], list[Decimal]],
+ simulated: list[tuple[datetime, Decimal]],
measured: list[tuple[datetime, Decimal]],
) -> None:
matplotlib.pyplot.plot(
- list(simulated[0]), # type: ignore
- [float(i) for i in simulated[1]],
+ [i[0] for i in simulated], # type: ignore
+ [float(i[1]) for i in simulated],
label="Simulated",
)
matplotlib.pyplot.plot(