From 8613c431a2b20fc25a476fdb34ca340d2cd0bcc8 Mon Sep 17 00:00:00 2001 From: DJ Nieto Date: Fri, 16 Apr 2021 19:10:28 -0600 Subject: [PATCH] Adjusted yticks --- gamestonk_terminal/oanda/oanda_functions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gamestonk_terminal/oanda/oanda_functions.py b/gamestonk_terminal/oanda/oanda_functions.py index d12e5d0131b..07e6f367716 100644 --- a/gamestonk_terminal/oanda/oanda_functions.py +++ b/gamestonk_terminal/oanda/oanda_functions.py @@ -16,6 +16,7 @@ from gamestonk_terminal.helper_funcs import parse_known_args_and_warn, plot_auto import pandas as pd import mplfinance as mpf import matplotlib.pyplot as plt +import matplotlib.ticker as mticker import seaborn as sns from datetime import datetime @@ -483,6 +484,7 @@ def book_plot(df, instrument, book_type): ax.invert_yaxis() plt.title(f"{instrument} {book_type}") sns.despine(left=True, bottom=True) + ax.yaxis.set_major_locator(mticker.MultipleLocator(5)) if gtff.USE_ION: plt.ion() plt.show()