资金曲线叠加图
        @Roy T.Burns 2018/05/29 修改百分比显示错误

def plot_assets_curve(self, length=14, height=12):
        """
        资金曲线叠加图
        @Roy T.Burns 2018/05/29 修改百分比显示错误
        """
        plt.style.use('ggplot')
        plt.figure(figsize=(length, height))
        plt.subplot(211)
        plt.title('BASIC INFO', fontsize=12)
        plt.axis([0, length, 0, 0.6])
        plt.axis('off')
        i = 0
        for item in ['account_cookie', 'portfolio_cookie', 'user_cookie']:
            plt.text(
                i,
                0.5,
                '{} : {}'.format(item,
                                 self.message[item]),
                fontsize=10,
                rotation=0,
                wrap=True
            )
            i += (length / 2.8)
        i = 0
        for item in ['benchmark_code', 'time_gap', 'max_dropback']:
            plt.text(
                i,
                0.4,
                '{} : {}'.format(item,
                                 self.message[item]),
                fontsize=10,
                ha='left',
                rotation=0,
                wrap=True
            )
            i += (length / 2.8)
        i = 0
        for item in ['annualize_return', 'bm_annualizereturn', 'profit']:
            plt.text(
                i,
                0.3,
                '{} : {} %'.format(item,
                                   self.message.get(item,
                                                    0) * 100),
                fontsize=10,
                ha='left',
                rotation=0,
                wrap=True
            )
            i += length / 2.8
        i = 0
        for item in ['init_cash', 'last_assets', 'volatility']:
            plt.text(
                i,
                0.2,
                '{} : {} '.format(item,
                                  self.message[item]),
                fontsize=10,
                ha='left',
                rotation=0,
                wrap=True
            )
            i += length / 2.8
        i = 0
        for item in ['alpha', 'beta', 'sharpe']:
            plt.text(
                i,
                0.1,
                '{} : {}'.format(item,
                                 self.message[item]),
                ha='left',
                fontsize=10,
                rotation=0,
                wrap=True
            )
            i += length / 2.8
        plt.subplot(212)
        self.assets.plot()
        self.benchmark_assets.xs(self.benchmark_code, level=1).plot()

        asset_p = mpatches.Patch(
            color='red',
            label='{}'.format(self.account.account_cookie)
        )
        asset_b = mpatches.Patch(
            label='benchmark {}'.format(self.benchmark_code)
        )
        plt.legend(handles=[asset_p, asset_b], loc=0)
        plt.title('ASSET AND BENCKMARK')

        return plt