mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
Add ION feature flag
This commit is contained in:
@@ -4,6 +4,7 @@ __docformat__ = "numpy"
|
||||
import os
|
||||
import argparse
|
||||
from typing import List
|
||||
import matplotlib.pyplot as plt
|
||||
from gamestonk_terminal import feature_flags as gtff
|
||||
from gamestonk_terminal.helper_funcs import get_flair
|
||||
from gamestonk_terminal.menu import session
|
||||
@@ -237,6 +238,8 @@ def menu():
|
||||
an_input = input(f"{get_flair()} (scr)> ")
|
||||
|
||||
try:
|
||||
plt.close("all")
|
||||
|
||||
process_input = scr_controller.switch(an_input)
|
||||
|
||||
if process_input is not None:
|
||||
|
||||
@@ -7,7 +7,7 @@ import configparser
|
||||
import yfinance as yf
|
||||
from finvizfinance.screener import ticker
|
||||
from gamestonk_terminal.screener import finviz_view
|
||||
|
||||
from gamestonk_terminal import feature_flags as gtff
|
||||
from gamestonk_terminal.helper_funcs import (
|
||||
parse_known_args_and_warn,
|
||||
plot_autoscale,
|
||||
@@ -173,6 +173,10 @@ def historical(other_args: List[str], preset_loaded: str):
|
||||
plt.grid(b=True, which="minor", color="#999999", linestyle="-", alpha=0.2)
|
||||
# ensures that the historical data starts from same datapoint
|
||||
plt.xlim([max(l_min), df_similar_stock.index[-1]])
|
||||
|
||||
if gtff.USE_ION:
|
||||
plt.ion()
|
||||
|
||||
plt.show()
|
||||
print("")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user