如何用对数刻度绘制历史 [英] How to plot hist with log scale

查看:60
本文介绍了如何用对数刻度绘制历史的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

x = [1: 1000]
hist(x)

然后,有显示直方图的图,但是如果我将axiss属性和Y轴设置为log.我在图中看不到任何东西.如何用对数刻度绘制直方图.

then, there are figure showing the histogram, but if i set the axes property and Y-axis to log. I cannot see anything in the figure. How to plot the histogram with log scale.

推荐答案

尝试使用set(gca, 'Xscale', 'log')在X轴上绘制日志.它对我有用,我正在使用7.12.0或2011a.查看轴参考以获取更多帮助.

Try set(gca, 'Xscale', 'log') for plotting log on X axis. It worked for me I am using 7.12.0 or 2011a. Check the axis reference for more help.

这篇关于如何用对数刻度绘制历史的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆