下面哪个函数可以为图表设置图例( )。
A: plot
B: legend
C: xlim
D: title
A: plot
B: legend
C: xlim
D: title
B
举一反三
- 下列函数中,可以为图表设置图例的是()。 A: legend() B: xlabel() C: title() D: xlim()
- 下列函数中,可以为图表设置标题的是()。 A: xlim() B: xlabel() C: title() D: legend()
- 下面哪个命令可以绘制图像?() A: xlabel B: title C: plot D: legend
- 下列函数中,可以设置当前图形x轴范围的是()。 A: xlabel() B: xlim() C: title() D: legend()
- 以下哪个组件可以设置图表的标题( )? A: title B: legend C: tooltip D: toolbox
内容
- 0
使用matplotlib绘图时,设置图例的函数是()。 A: title B: legend C: xlabel D: text
- 1
使用可视化扩展库matplotlib的模块pyplot中的legend()函数创建和显示图例时,下面哪个参数可以用来设置图例的位置? A: loc B: ncol C: prop D: markerfirst E: shadow F: facecolor G: edgecolor H: title
- 2
使用matplotlib绘图时,设置图表标题的函数是( ) A: legend B: title C: xlabel D: text
- 3
下面哪些函数或者参数与坐标轴的设置有关( )。 A: cex B: xlim C: title D: xlab
- 4
在图表中增加图例时,首先需要设置绘图函数的label属性,然后使用legend()显示图例。 A: 正确 B: 错误