我一直在使用不完整的matplot库库进行调整,ggplot不允许我。python ggplot legend size
p = ggplot(aes(x='meh',y='mah'),data=df)
t = theme_gray()
t._rcParams['font.size'] = 30
t._rcParams['xtick.labelsize'] = 20
t._rcParams['ytick.labelsize'] = 20
p = p + t
这个按预期工作。我现在希望增加的传说,这我通过添加color
参数创建的尺寸:
p = ggplot(aes(x='meh',y'mah',color='week'),data=df)
从here,我可以看到下面的参数编辑传说:
t._rcParams['legend.fontsize'] = 20
尽管没有错误,这不会对图例文字大小做任何事情。
'y mah'在代码可靠地返回一个错误。有几种方法可以更改图例字体大小,这里给出了一个:http://stackoverflow.com/questions/20407773/increase-legend-font-size-ggplot2 – tagoma
不幸的是'r'。 – LearningSlowly
对不起,我没有注意语言。 – tagoma