Python 删除“删除”;这是打印网格的格式:“打印网格”;在Jupyter笔记本中的一个子情节中
在Jupyter笔记本中使用Plotly打印脱机iplot地物和子地块时,在地物获得输出之前:Python 删除“删除”;这是打印网格的格式:“打印网格”;在Jupyter笔记本中的一个子情节中,python,ipython,jupyter-notebook,jupyter,plotly,Python,Ipython,Jupyter Notebook,Jupyter,Plotly,在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
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\u grid
参数设置为False:
fig = pl.tools.make_subplots(cols=4, rows=4, print_grid=False)
这是我在
help(pl.tools.make_subplots)