From 54793a5fce25fe794f4d378a8a2a2157257113c8 Mon Sep 17 00:00:00 2001 From: colin99d Date: Sun, 22 May 2022 08:09:02 -0400 Subject: [PATCH] Added the legend --- openbb_terminal/stocks/options/yfinance_view.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openbb_terminal/stocks/options/yfinance_view.py b/openbb_terminal/stocks/options/yfinance_view.py index 18886d654369..aaefc179f594 100644 --- a/openbb_terminal/stocks/options/yfinance_view.py +++ b/openbb_terminal/stocks/options/yfinance_view.py @@ -554,6 +554,7 @@ def plot_payoff( ax.set_title(f"Option Payoff Diagram for {ticker} on {expiration}") ax.set_ylabel("Profit") ax.set_xlabel("Underlying Asset Price at Expiration") + ax.legend() ax.xaxis.set_major_formatter("${x:.2f}") ax.yaxis.set_major_formatter("${x:.2f}") theme.style_primary_axis(ax)