日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問(wèn)題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
創(chuàng)新互聯(lián)Python教程:python中pyg2plot如何使用?

1、渲染出完整的 HTML

這種情況可以用于:

服務(wù)端 html 直出的場(chǎng)景

生成可交互可視化分享

Excel 等工具嵌入的場(chǎng)景

from pyg2plot import Plot
 
line = Plot("Line")
 
line.set_options({
  "data": [
    { "year": "1991", "value": 3 },
    { "year": "1992", "value": 4 },
    { "year": "1993", "value": 3.5 },
    { "year": "1994", "value": 5 },
    { "year": "1995", "value": 4.9 },
    { "year": "1996", "value": 6 },
    { "year": "1997", "value": 7 },
    { "year": "1998", "value": 9 },
    { "year": "1999", "value": 13 },
  ],
  "xField": "year",
  "yField": "value",
})
 
# 1. render html file named plot.html
line.render("plot.html")
 
# 2. render html string
line.render_html()

2、在 Jupyter notebook 中預(yù)覽

from pyg2plot import Plot
 
line = Plot("Line")
 
line.set_options({
  "height": 400, # set a default height in jupyter preview
  "data": [
    { "year": "1991", "value": 3 },
    { "year": "1992", "value": 4 },
    { "year": "1993", "value": 3.5 },
    { "year": "1994", "value": 5 },
    { "year": "1995", "value": 4.9 },
    { "year": "1996", "value": 6 },
    { "year": "1997", "value": 7 },
    { "year": "1998", "value": 9 },
    { "year": "1999", "value": 13 },
  ],
  "xField": "year",
  "yField": "value",
})
 
line.render_notebook()

在我們做數(shù)據(jù)分析教程的過(guò)程中,可以將我們的數(shù)據(jù)使用 PyG2Plot 進(jìn)行可視化并預(yù)覽出來(lái),十分方便!

以上就是python中pyg2plot的使用,希望能對(duì)大家有所幫助。更多Python學(xué)習(xí)指路:創(chuàng)新互聯(lián)Python教程


網(wǎng)頁(yè)名稱:創(chuàng)新互聯(lián)Python教程:python中pyg2plot如何使用?
網(wǎng)頁(yè)地址:http://www.5511xx.com/article/djgisog.html