How can I plot a histogram with a logarithmic X-axis?
59 次查看(过去 30 天)
显示 更早的评论
I would like to plot a histogram of my data, with the x-axis being logarithmic, such as in semilogx
采纳的回答
MathWorks Support Team
2009-6-27
The ability to directly plot a histogram with a logarithmic x-axis is not available in MATLAB.
To work around this issue, use the HIST function to plot the histogram, and them use
set(gca,'xscale','log')
to set the x-axis scale to logarithmic.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!