mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-03 10:33:08 +00:00
avoid single char variable names
This commit is contained in:
@@ -107,8 +107,8 @@ def plot_dataframe(dataframe, pair):
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
# Three subplots sharing x axe
|
||||
f, (ax1, ax2, ax3) = plt.subplots(3, sharex=True)
|
||||
f.suptitle(pair, fontsize=14, fontweight='bold')
|
||||
fig, (ax1, ax2, ax3) = plt.subplots(3, sharex=True)
|
||||
fig.suptitle(pair, fontsize=14, fontweight='bold')
|
||||
ax1.plot(dataframe.index.values, dataframe['close'], label='close')
|
||||
ax1.plot(dataframe.index.values, dataframe['close_30_ema'], label='EMA(60)')
|
||||
ax1.plot(dataframe.index.values, dataframe['close_90_ema'], label='EMA(120)')
|
||||
@@ -129,8 +129,8 @@ def plot_dataframe(dataframe, pair):
|
||||
|
||||
# Fine-tune figure; make subplots close to each other and hide x ticks for
|
||||
# all but bottom plot.
|
||||
f.subplots_adjust(hspace=0)
|
||||
plt.setp([a.get_xticklabels() for a in f.axes[:-1]], visible=False)
|
||||
fig.subplots_adjust(hspace=0)
|
||||
plt.setp([a.get_xticklabels() for a in fig.axes[:-1]], visible=False)
|
||||
plt.show()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user