我尝试了文档中的许多大小调整参数:plotly documentation但是在Jupyter下没有任何东西愿意与我的浏览器合作。在
我有个密码:layout = dict(
title = 'city populations
(Click legend to toggle traces)',
showlegend = True,
geo = dict(
scope='europe',
resolution = 50,
projection=dict( type='mercator' ),
showland = True,
landcolor = "rgb(217, 217, 217)",
subunitcolor="rgb(255, 255, 255)",
countrycolor="rgb(255, 255, 255)",
lonaxis = dict( range= [ 14.0, 24.0 ] ),
lataxis = dict( range= [ 49.0, 55.0 ] ),
autosize=False,
width=1000, height=1000,
margin=dict( l=50, r=50, b=50, t=50, pad=4, autoexpand=True ),
showrivers = True
)
)
想要设置更大的mapbox大小,但是总是一样的(大约是屏幕宽度的30%)。浏览器空间很大。为什么不能调整这个窗口的大小?一直都是350x350像素。在
执行代码:
^{pr2}$
请给我一些提示,因为这是我第一天使用这个很棒的工具。在
编辑:现在可以使用:layout = dict(
title = '2015 Poland city populations
(Click legend to toggle traces)',
showlegend = True,
autosize=False,
width=1000, height=1000,
margin=dict( l=50, r=50, b=50, t=50, pad=4, autoexpand=True ),
geo = dict(
scope='europe',
resolution = 50,
projection=dict( type='mercator' ),
showland = True,
landcolor = "rgb(217, 217, 217)",
subunitcolor="rgb(255, 255, 255)",
countrycolor="rgb(255, 255, 255)",
lonaxis = dict( range= [ 14.0, 24.0 ] ),
lataxis = dict( range= [ 49.0, 55.0 ] ),
showrivers = True
)
)