# 需要导入模块: from statsmodels import api [as 别名]
# 或者: from statsmodels.api import qqplot [as 别名]
def plot_A_share(self, ticker):
self.setting()
fig = plt.figure(tight_layout=True)
ax1 = fig.add_subplot(5, 2, 1)
ax2 = fig.add_subplot(5, 2, 2)
ax3 = fig.add_subplot(5, 2, 3)
ax4 = fig.add_subplot(5, 2, 4)
ax5 = fig.add_subplot(5, 2, 5)
ax6 = fig.add_subplot(5, 2, 6)
ax7 = fig.add_subplot(5, 2, 7)
ax8 = fig.add_subplot(5, 2, 8)
ax9 = fig.add_subplot(5, 2, 9)
ax10 = fig.add_subplot(5, 2, 10)
# 左边
self.close_df(ticker).plot(ax=ax1, sharex=ax5)
self.balance_df.plot(ax=ax3)
self.cash_df.plot(ax=ax5, sharex=ax5)
analysis.get_drawdown_df(self.balance_df).plot(ax=ax9, sharex=ax5)
holding_pnl = self.env.record