Python绘制频率分布百分比图 [英] Python Draw graph with percent of frequency distribution

查看:76
本文介绍了Python绘制频率分布百分比图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Python 并且以前从未使用过它来绘制绘图,并且想知道是否有办法执行以下操作.我有一个包含百分比(DNA 甲基化数据)列的文件.我想绘制分布频率(可能使用 10 个 bin)来显示数据.有没有办法在python中做到这一点.

I'm using Python and have never used it before to draw a plot and was wondering if there's a way to do the following. I have a file containing a column with percents (of DNA methylation data). I would like to plot the distribution frequency (perhaps using bins of 10) to display the data. Is there any way to do this in python.

推荐答案

Matplotlib 是您想要探索的工具.这是一个不错的教程,请尝试完成该教程中的示例.http://bespokeblog.wordpress.com/2011/07/11/basic-data-plotting-with-matplotlib-part-3-histograms/

Matplotlib is the tool that you want to explore. Here is a nice tutorial, try working through the examples in that tutorial. http://bespokeblog.wordpress.com/2011/07/11/basic-data-plotting-with-matplotlib-part-3-histograms/

本教程包括在 ubuntu 中安装 matplotlib.如果您使用的是 Windows,您应该从 http://matplotlib.org/downloads.html 下载安装程序

The tutorial includes installation of matplotlib in ubuntu. If you are using windows, you should download the installer from http://matplotlib.org/downloads.html

这篇关于Python绘制频率分布百分比图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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