Disable ion

This commit is contained in:
Artem Veremey
2021-03-11 23:24:24 -08:00
parent dba17e7b55
commit 949c4b803b
12 changed files with 21 additions and 21 deletions

View File

@@ -150,7 +150,7 @@ def arima(l_args, s_ticker, df_stock):
plt.vlines(
df_stock.index[-1], ymin, ymax, linewidth=1, linestyle="--", color="k"
)
plt.ion()
# plt.ion()
plt.show()
# Print prediction data

View File

@@ -165,7 +165,7 @@ def exponential_smoothing(l_args, s_ticker, df_stock):
linestyle="--",
color="k",
)
plt.ion()
# plt.ion()
plt.show()
# Print prediction data

View File

@@ -81,7 +81,7 @@ def fbprophet(l_args, s_ticker, df_stock):
df_stock["ds"].values[0], get_next_stock_market_days(l_pred_days[-1], 1)[-1]
)
plt.title(f"Fb Prophet on {s_ticker} - {ns_parser.n_days} days prediction")
plt.ion()
# plt.ion()
plt.show()
print("")

View File

@@ -118,7 +118,7 @@ def k_nearest_neighbors(l_args, s_ticker, df_stock):
plt.vlines(
df_stock.index[-1], ymin, ymax, linewidth=1, linestyle="--", color="k"
)
plt.ion()
# plt.ion()
plt.show()
# Print prediction data

View File

@@ -253,7 +253,7 @@ def mlp(l_args, s_ticker, df_stock):
linestyle="--",
color="k",
)
plt.ion()
# plt.ion()
plt.show()
# Print prediction data
@@ -443,7 +443,7 @@ def rnn(l_args, s_ticker, df_stock):
linestyle="--",
color="k",
)
plt.ion()
# plt.ion()
plt.show()
# Print prediction data
@@ -633,7 +633,7 @@ def lstm(l_args, s_ticker, df_stock):
linestyle="--",
color="k",
)
plt.ion()
# plt.ion()
plt.show()
# Print prediction data

View File

@@ -137,7 +137,7 @@ def regression(l_args, s_ticker, df_stock, polynomial):
plt.vlines(
df_stock.index[-1], ymin, ymax, linewidth=1, linestyle="--", color="k"
)
plt.ion()
# plt.ion()
plt.show()
# Print prediction data

View File

@@ -101,7 +101,7 @@ def simple_moving_average(l_args, s_ticker, df_stock):
plt.vlines(
df_stock.index[-1], ymin, ymax, linewidth=1, linestyle="--", color="k"
)
plt.ion()
# plt.ion()
plt.show()
# Print prediction data

View File

@@ -101,7 +101,7 @@ def cci(l_args, s_ticker, s_interval, df_stock):
plt.gca().twinx()
plt.ylim(plt.gca().get_ylim())
plt.yticks([0.2, 0.8], ("OVERSOLD", "OVERBOUGHT"))
plt.ion()
# plt.ion()
plt.show()
print("")
@@ -217,7 +217,7 @@ def macd(l_args, s_ticker, s_interval, df_stock):
plt.minorticks_on()
plt.grid(b=True, which="minor", color="#999999", linestyle="-", alpha=0.2)
plt.xlabel("Time")
plt.ion()
# plt.ion()
plt.show()
print("")
@@ -328,7 +328,7 @@ def rsi(l_args, s_ticker, s_interval, df_stock):
plt.gca().twinx()
plt.ylim(plt.gca().get_ylim())
plt.yticks([0.15, 0.85], ("OVERSOLD", "OVERBOUGHT"))
plt.ion()
# plt.ion()
plt.show()
print("")
@@ -446,7 +446,7 @@ def stoch(l_args, s_ticker, s_interval, df_stock):
plt.gca().twinx()
plt.ylim(plt.gca().get_ylim())
plt.yticks([0.1, 0.9], ("OVERSOLD", "OVERBOUGHT"))
plt.ion()
# plt.ion()
plt.show()
print("")

View File

@@ -96,7 +96,7 @@ def ema(l_args, s_ticker, s_interval, df_stock):
plt.grid(b=True, which="major", color="#666666", linestyle="-")
plt.minorticks_on()
plt.grid(b=True, which="minor", color="#999999", linestyle="-", alpha=0.2)
plt.ion()
# plt.ion()
plt.show()
print("")
@@ -171,7 +171,7 @@ def sma(l_args, s_ticker, s_interval, df_stock):
plt.grid(b=True, which="major", color="#666666", linestyle="-")
plt.minorticks_on()
plt.grid(b=True, which="minor", color="#999999", linestyle="-", alpha=0.2)
plt.ion()
# plt.ion()
plt.show()
print("")
@@ -257,7 +257,7 @@ def vwap(l_args, s_ticker, s_interval, df_stock):
plt.grid(b=True, which="major", color="#666666", linestyle="-")
plt.minorticks_on()
plt.grid(b=True, which="minor", color="#999999", linestyle="-", alpha=0.2)
plt.ion()
# plt.ion()
plt.show()
print("")

View File

@@ -121,7 +121,7 @@ def plot_adx(df_stock, s_ticker, df_ta):
plt.minorticks_on()
plt.grid(b=True, which="minor", color="#999999", linestyle="-", alpha=0.2)
plt.ylim([0, 100])
plt.ion()
# plt.ion()
plt.show()
@@ -221,7 +221,7 @@ def aroon(l_args, s_ticker, s_interval, df_stock):
plt.minorticks_on()
plt.grid(b=True, which="minor", color="#999999", linestyle="-", alpha=0.2)
plt.ylim([-100, 100])
plt.ion()
# plt.ion()
plt.show()
print("")

View File

@@ -106,7 +106,7 @@ def bbands(l_args, s_ticker, s_interval, df_stock):
plt.grid(b=True, which="major", color="#666666", linestyle="-")
plt.minorticks_on()
plt.grid(b=True, which="minor", color="#999999", linestyle="-", alpha=0.2)
plt.ion()
# plt.ion()
plt.show()
print("")

View File

@@ -129,7 +129,7 @@ def ad(l_args, s_ticker, s_interval, df_stock):
plt.grid(b=True, which="major", color="#666666", linestyle="-")
plt.minorticks_on()
plt.grid(b=True, which="minor", color="#999999", linestyle="-", alpha=0.2)
plt.ion()
# plt.ion()
plt.show()
print("")
@@ -222,7 +222,7 @@ def obv(l_args, s_ticker, s_interval, df_stock):
plt.grid(b=True, which="major", color="#666666", linestyle="-")
plt.minorticks_on()
plt.grid(b=True, which="minor", color="#999999", linestyle="-", alpha=0.2)
plt.ion()
# plt.ion()
plt.show()
print("")