• pyecharts v1 版本 学习笔记 散点图


    散点图

    基本案例

    from example.commons import Faker
    from pyecharts import options as opts
    from pyecharts.charts import EffectScatter
    from pyecharts.globals import SymbolType
    c = (
            EffectScatter()
           .add_xaxis(["衬衫", "毛衣", "领带", "裤子", "风衣", "高跟鞋", "袜子"])
         .add_yaxis('商家A', [114, 55, 27, 101, 125, 27, 105])
           .add_yaxis('商家B',[57, 134, 137, 129, 145, 60, 49])
            .set_global_opts(title_opts=opts.TitleOpts(title="EffectScatter-基本示例"))
        )
    c.render_notebook()

    散点图显示分割线

    from example.commons import Faker
    from pyecharts import options as opts
    from pyecharts.charts import EffectScatter
    from pyecharts.globals import SymbolType
    c = (
            EffectScatter()
           .add_xaxis(["衬衫", "毛衣", "领带", "裤子", "风衣", "高跟鞋", "袜子"])
         .add_yaxis('商家A', [114, 55, 27, 101, 125, 27, 105])
           .add_yaxis('商家B',[57, 134, 137, 129, 145, 60, 49])
    #         .set_global_opts(title_opts=opts.TitleOpts(title="EffectScatter-基本示例"))
        .set_global_opts(
                title_opts=opts.TitleOpts(title="EffectScatter-显示分割线"),
                xaxis_opts=opts.AxisOpts(splitline_opts=opts.SplitLineOpts(is_show=True)),
                yaxis_opts=opts.AxisOpts(splitline_opts=opts.SplitLineOpts(is_show=True)),
            )
        )
    c.render_notebook()

  • 相关阅读:
    Office2007界面风格的绿色软件针式个人知识库管理系统[V3.5]
    Mentor工具简介
    Xilinx网站资源导读
    FPGA时钟问题的探讨汇总
    FPGA中竞争冒险问题的研究
    一些IC前端设计工具
    SPI协议简介
    USB接口定义
    TTL与CMOS电平的区别
    Synopsys工具简介
  • 原文地址:https://www.cnblogs.com/baili-luoyun/p/11058718.html
Copyright © 2020-2023  润新知