使用自定义频率值创建直方图
我想创建一个具有已知频率值的直方图图。直方图就像 - 直方图图。我可以使用Web Plot Digitiser找到所需的“数量密度”/Y轴值,现在想用每个特定垃圾箱的数量密度的正确Y轴值重新创建该图。我已经查找了Matplotlib和其他相关问题的教程,但似乎无法完成。假设在Python甚至其他语言中是否可以使用它,那么对此的任何帮助/资源都会有所帮助。
编辑 - 我期望的输出应该有点像这样(我知道它很粗糙) - 输出
我要绘制为直方图的数据可以假定为
-4.2 nm至4.3 nm -0%(此范围内无值)
4.3 nm至4.4 nm -33%
4.4 nm至4.5 nm -40%
I want to create a histogram plot with already known values of the frequency. The histogram is like - histogram plot. I can find the required 'number density'/y-axis values using web plot digitiser and now want to recreate this plot with the correct y-axis values of the number density of each particular bin. I have looked up tutorials of matplotlib and other related questions but it does not seem like it can be done with it. Any help/resource regarding this would be helpful, assuming if it is possible in python or even another language.
Edit - The output I am expecting should be somewhat like this (I know its quite crude) - output
The data I want to plot as a histogram could be assumed to be like -
4.2 nm to 4.3 nm - 0%(no values in this range)
4.3 nm to 4.4 nm - 33%
4.4 nm to 4.5 nm - 40%
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设您已经有一个列表,每个垃圾箱和垃圾箱中心都有百分比
Supposing you already have a list with the percentages in each bin and the bin centers