• 2022-06-03
    下面哪个函数可以为图表设置图例( )。
    A: plot
    B: legend
    C: xlim
    D: title
  • B

    内容

    • 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: 错误