zoukankan      html  css  js  c++  java
  • 第3章 决策树

    createPlot.ax1.text(xMid, yMid, txtString)

    createPlot.ax1 是表示: ax1 是函数 createPlot 的一个属性,这个可以在函数里面定义也可以在函数定义后加入也可以
    example:
    def fun():
    fun.x =1
    当你在python的命令窗口下,运行一次fun()后,x 就是 fun()的一个属性,你在命令窗口下输入
    fun.x 后面会显示 1

    也可以 在 函数定义完后加入 属性 如 fun.y = 2,在使用 dir(fun),你就会发现fun有 x,y 这两个属性


    subplot:

    Keyword

    Description

    loc

    a location code

    prop

    the font property (matplotlib.font_manager.FontProperties 对象)

    eg

    song_font = matplotlib.font_manager.FontProperties(fname='simsun.ttc', size=8)

    fontsize

    the font size (和prop互斥,不可同时使用)

    markerscale

    the relative size of legend markers vs. original

    numpoints

    the number of points in the legend for line

    scatterpoints

    the number of points in the legend for scatter plot

    scatteryoffsets

    a list of yoffsets for scatter symbols in legend

    frameon

    if True, draw a frame around the legend. If None, use rc

    fancybox

    if True, draw a frame with a round fancybox. If None, use rc

    shadow

    if True, draw a shadow behind legend

    ncol

    number of columns

    borderpad

    the fractional whitespace inside the legend border

    labelspacing

    the vertical space between the legend entries

    handlelength

    the length of the legend handles

    handleheight

    the length of the legend handles

    handletextpad

    the pad between the legend handle and text

    borderaxespad

    the pad between the axes and legend border

    columnspacing

    the spacing between columns

    title

    the legend title

    bbox_to_anchor

    the bbox that the legend will be anchored.

    bbox_transform

    the transform for the bbox. transAxes if None.

     
  • 相关阅读:
    Css_加载样式
    Mvc4_@RenderBody()和@RenderSection()
    C#_观察者模式
    Mvc4_MvcPager 概述
    Mvc4_Area的应用
    Nginx 服务器性能参数设置
    Nginx变量的实现机制
    天下无雾
    Nginx Http框架的理解
    【转】websocket协议规范
  • 原文地址:https://www.cnblogs.com/captain-dl/p/9510818.html
Copyright © 2011-2022 走看看