import matplotlib as mpl
import matplotlib.pyplot as plt
fig,ax1=plt.subplots()
ax1.bar(["a","b","c"],[1,2,3],color='r')
#画柱形图的时候可以通过color参数设定颜色,"r"是红色的简称
ax1.bar(["a","b","c"],[0.5,1,1.5],color='b')
#"b"是蓝色的简称
#还可以这样设定,用四个数字指定,四个数字分别是,r饱和度,g饱和度,b饱和度,透明度
ax1.bar(["a","b","c"],[0.4,0.8,1],color=(1,0.5,0.5,0.8))
#如何想要配色好看,则需要一些美学知识。
#折线图颜色设定是一样的
ax1.plot(["a","b","c"],[1,2,3],color=(0,0,0,1),linewidth=10)
Other Parameters
----------------
color : scalar or array-like, optional
The colors of the bar faces.
想用python的mark功能更改字号大小,但是输入###以后并没有变成标题大字,而是前面多了###,直接显示出来了,如图想问怎么才能在python里面使用MARK功能的时候更改字体大小