亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

python - Problems with matplotlib's x-axis display
代言
代言 2017-07-05 10:27:12
0
1
1015

I recently learned pandas and data visualization and made a practice program

         #coding:utf-8
            import tushare as ts
            import pandas as pd
            import matplotlib.pyplot as plt
            import matplotlib.dates as mdate
        
    ......
            
            fig1 = plt.figure(figsize=(15,5))
            ax1.xaxis.set_major_formatter(mdate.DateFormatter('%H:%M'))#設(shè)置時(shí)間標(biāo)簽顯示格式
            plt.xticks(pd.date_range(start='09:00',end='09:10',freq='60S'),rotation=90)
            plt.title('percent')
            plt.plot(real_data_ave,'.-')
            plt.show()

The problem is that when I do this, I can’t see the time on the X-axis. How to solve it?

代言
代言

reply all(1)
黃舟

What is

ax1? No definition~

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template