簡體   English   中英

在Jupyter Notebook的繪圖子圖中刪除“這是繪圖網格的格式:”

[英]Remove the “This is the format of your plot grid:” in a plotly subplot in a Jupyter Notebook

當在Jupyter筆記本中使用Plotly繪制帶有子圖的離線iplot圖時,在圖中我獲得輸出:

This is the format of your plot grid: 
[ (1,1) x1,y1 ]    [ (1,2) x2,y2 ]    [ (1,3) x3,y3 ]    [ (1,4) x4,y4 ]  
[ (2,1) x5,y5 ]    [ (2,2) x6,y6 ]    [ (2,3) x7,y7 ]    [ (2,4) x8,y8 ]  
[ (3,1) x9,y9 ]    [ (3,2) x10,y10 ]  [ (3,3) x11,y11 ]  [ (3,4) x12,y12 ]
[ (4,1) x13,y13 ]  [ (4,2) x14,y14 ]  [ (4,3) x15,y15 ]  [ (4,4) x16,y16 ]

如何從輸出中刪除它?

示例代碼:

import plotly as pl
import plotly.graph_objs as go
import numpy as np

fig = pl.tools.make_subplots(cols=4, rows=4)

for col in range(1, 5):
    for row in range(1, 5):
        x = np.random.rand(500)
        trace = go.Histogram(x=x, histnorm='density')
        fig.append_trace(trace, row, col)

pl.offline.iplot(fig)

想出來,將print_grid參數設置為False:

fig = pl.tools.make_subplots(cols=4, rows=4, print_grid=False)

我找到了哪個

help(pl.tools.make_subplots)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM