Add ion to Discovery/Sectors view

This commit is contained in:
Artem Veremey
2021-03-28 13:12:45 -07:00
parent 8856fb7826
commit c5b4f74bf4

View File

@@ -3,6 +3,7 @@ import matplotlib.pyplot as plt
from alpha_vantage.sectorperformance import SectorPerformances
from gamestonk_terminal import config_terminal as cfg
from gamestonk_terminal.helper_funcs import parse_known_args_and_warn
from gamestonk_terminal import feature_flags as gtff
def sectors(l_args):
@@ -27,5 +28,9 @@ def sectors(l_args):
plt.title("Real Time Performance (%) per Sector")
plt.tight_layout()
plt.grid()
if gtff.USE_ION:
plt.ion()
plt.show()
print("")