python-3.x - 创建具有精确 x 轴值的 matplot
问题描述
我想要一个带有“触及”左右轴的绘图数据的图表。如何生成精确水平值在 0 到 1024 之间的图?
axes.xaxis.set_ticklabels([])
axes.set_yticks([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15])
axes.set_yticklabels(["0","","","","","5","","","","","10","","","","","15"],fontweight="bold")
plt.savefig('/Users/Desktop/blah.png',bbox_inches='tight')
解决方案
推荐阅读
- angular - 如何在 Jasmine 中模拟课程
- angular - 多层 Web 应用程序用户注册选项
- javascript - 我在 html 中有 datetime-local 类型的输入,我应该将默认值与 angular 绑定
- android - Android Studio 强制执行 Google 风格
- javascript - 如何将外部 .js 文件用于 Acrobat 脚本?
- floating-point - 好奇的图形计算器滞后
- python - Dask Cluster 不处理任何数据,只是在一段时间后闲置,几周前工作得非常好
- c++ - 指向二维数组的指针如何在 C++ 中工作?
- flutter - 无法连接到 Gradle 守护程序
- docker - 主机问题,使用 minikube + nginx 入口