ZhangZhihui's Blog |
|
||
2022年2月16日
摘要:
Need to set xticks first, then set xticklabels. x = np.arange(len(df_pivot['tla'])) ax2.set_xticks(x) ax2.set_xticklabels(df_pivot['tla']) 阅读全文
摘要:
RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until ex 阅读全文
摘要:
import base64 from datetime import date from io import BytesIO from matplotlib.ticker import MaxNLocator def fig_to_html(fig): """ Convert a matplotli 阅读全文
摘要:
fig_width = fig.get_figwidth() xmargin_ratio, ymargin_ratio = ax.margins() xmargin = fig_width * xmargin_ratio 阅读全文
|
Copyright © 2024 ZhangZhihuiAAA
Powered by .NET 9.0 on Kubernetes |