-1
A
回答
2
你可以用它代替plot
matplotlib
的semilogx
功能使x
轴数。
这里有一个简单的例子:
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(0.01,14,0.01)
y = np.log(100*x)
fig,(ax1,ax2) = plt.subplots(2)
ax1.plot(x,y)
ax1.set_xlim(x[-1],x[0])
ax1.set_title('plot')
ax2.semilogx(x,y)
ax2.set_xlim(x[-1],x[0])
ax2.set_title('semilogx')
plt.show()
1
也考虑 ax.set_xscale("log")
http://matplotlib.org/examples/pylab_examples/aspect_loglog.html
相关问题
- 1. Matplotlib刻度对齐
- 2. 如何使用Matplotlib以对数刻度显示次要刻度标签
- 3. 如何减少Axes3D对象(在Matplotlib中)中的刻度数
- 4. 如何使用matplotlib格式化对数刻度
- 5. matplotlib中的刻度标记
- 6. 在matplotlib中去除对数图上的特定刻度
- 7. 如何在matplotlib中使用极坐标轴上的对数刻度
- 8. 线性刻度对比对数刻度
- 9. Matplotlib:未对齐的颜色条刻度?
- 10. 在matplotlib中设置刻度标签
- 11. 在Matplotlib中移动x或y刻度
- 12. 对数刻度
- 13. Matplotlib日志刻度刻度标签数字格式
- 14. 删除对数图中的特定x轴刻度标签,matplotlib
- 15. 使用d3对数刻度代替线性刻度
- 16. Matplotlib添加字母刻度
- 17. Matplotlib类似轴刻度
- 18. matplotlib - 旋转次刻度
- 19. 定制Matplotlib轴刻度
- 20. Matplotlib日志刻度格式
- 21. Matplotlib默认次要刻度
- 22. matplotlib令pColor轴刻度
- 23. 动画matplotlib轴/刻度
- 24. 如何更改matplotlib中的日志刻度刻度标签
- 25. 在matplotlib中使用SymLogNorm的色条上的等距刻度
- 26. 如何在matplotlib中制作散点图对数刻度(带原始刻度中的标签)
- 27. Python中的对数刻度
- 28. HighCharts:对数刻度
- 29. Teechart +对数刻度
- 30. 在matplotlib中使用科学记数法时定位刻度标签的指数
哪里是你当前的代码段 – phoenix
的[剧情数轴与python中matplotlib]可能的复制( http://stackoverflow.com/questions/773814/plot-logarithmic-axes-with-matplotlib-in-python) – Mel