素闻Python matplotlib 绘图功能强大,特地在网上搜索资源尝试了一下,综合各位大神的笔记,编写了一个绘制western blot表达量柱状图的小程序
#!coding:utf-8
import numpy as np #导入numpy函数
import matplotlib.pyplot as plt #导入matplotlib函数
n_groups = 3 #设定初始值
zh = [1, 1,1 ] #数据1
fh = [3.20,3.88,3.64] #数据2
eh = [2.9,4.7,3.65]
err1 = [0,0,0] #数据1的标准差
err2 = [0.44,0.38,0.32] #数据2的标准差
err3 = [0.38,0.33,0.61]
ax = plt.subplot(1,1,1) #设定图像长宽高
ax.spines['right'].set_visible(True) #Flase