matplotlib(legend)
2017-07-18 10:53
417 查看
matplotlib legend的各个参数的作用: | |
bbox_to_anchor :matplotlib.transforms.BboxBaseinstance or tuple of floats(设置legend的在任意位置) | loc='upper right', bbox_to_anchor=(0.5, 0.5) |
ncol : integer(每列legend的个数) | |
prop:None ormatplotlib.font_manager.FontPropertiesor dict(设置legend的字体属性) | |
fontsize:字体大小 | |
numpoints : None or int | |
shadow : None or bool(控制阴影) | |
framealpha : None or float(控制legend背景的透明度) | |
facecolor : None or “inherit” or a color spec(控制legend的背景颜色) | |
edgecolor : None or “inherit” or a color spec(控制legend背景的边界颜色) | |
mode : {“expand”, None}('expand'的话会让legend和坐标轴一样长) | |
title : str or None(legend的标题,注意只有一个t) | |
borderpad : float or None(legend周围空白的多少) | |
labelspacing : float or None(legend之间的垂直距离) | |
handlelength : float or None(legend的句柄的长短,指的是文字前面图的长短) | |
handletextpad : float or None(句柄和文字之间的距离) | |
borderaxespad : float or None(legend与坐标轴之间的距离) | |
columnspacing : float or None(每列之间的距离) | |
相关文章推荐
- matplotlib如何改变legend的字号
- matplotlib的legend函数解释说明
- 关于使用matplotlib-legend方法失效问题
- python 绘图添加图例显示UserWarning: Legend does not support [<matplotlib.lines.Line2D object at 0x07FA3210>]
- matplotlib学习笔记--Legend
- matplotlib命令与格式:图例legend语法及设置
- matplotlib-legend()
- Matplotlib--legend
- Python第三方库——Matplotlib_在同个figure中绘制多个图并给出legend
- matplotlib: pyplot.legend
- matplotlib中的legend()——用于显示图例
- matplotlib: legend()
- Python 添加图例出错:UserWarning: Legend does not support [<matplotlib.lines.Line2D object at 0x07FA3210>]
- matplotlib中的legend()—显示图例
- Python学习笔记(八)-(2)matplotlib作图之legend
- matplotlib的基本用法(四)——设置legend图例
- matplotlib中legend位置调整解析
- matplotlib设置legend图例代码示例
- matplotlib中legend位置调整
- python画图matplotlib的Legend(显示图中的标签)