Python学习
ambulancy
这个作者很懒,什么都没留下…
展开
-
Python boxplot去掉横坐标
为了把两个箱型图叠放,需要去掉第一个图的横坐标lns1 = ax1.boxplot(X, widths = 0.4, patch_artist = True, showfliers = False)ax1.set(xticklabels=[])参考链接https://stackoverflow.com/questions/58476654/how-to-remove-or-hide-x-axis-labels-from-a-seaborn-matplotlib-plot...原创 2021-05-03 13:30:28 · 1176 阅读 · 0 评论 -
Python z轴label方向调整
默认的z轴标题label是头顶离轴更近的,与科技论文表述习惯相反。用下面的方法可以调整轴题的方向。参考链接:https://stackoverflow.com/questions/37711538/matplotlib-3d-axes-ticks-labels-and-latexax.zaxis.set_rotate_label(False) #一定要先关掉默认的旋转设置ax.set_zlabel('Weight (kg)', rotation = 90)...原创 2021-05-02 10:22:54 · 3261 阅读 · 1 评论