代码部分:
import matplotlib
matplotlib.use('Agg')
import numpy as np
import matplotlib.pyplot as plt
x = [15, 20, 30]
text_tag_lst = ['blue','green', 'black']
myfont = matplotlib.font_manager.FontProperties(fname="/usr/share/fonts/truetype/arphic/uming.ttc")
y_pos = np.arange(len(x)) * 10 + 6
size = max(x) + 10