我正在尝试自定义一些子图,但是我不明白轴的“锚定”属性的含义。
使用此属性的一些示例在此处:https : //plot.ly/javascript/subplots/。什么yaxis2: {anchor: 'x2'}意思 这是什么anchor=false,或者anchor=free是什么意思?我无法在在线文档中找到解释。
yaxis2: {anchor: 'x2'}
anchor=false
anchor=free
为了回答我自己的问题,我在此处找到axisanchor属性的文档。
anchor
x轴可以锚定到y轴,例如,xaxis2: {anchor: 'y2'}意味着xaxis2在原点加入yaxis2。如果anchor设置为free,则可以使用position属性将轴移动到另一个位置。
xaxis2: {anchor: 'y2'}
free
我不确定是否可以进行设置anchor=false,我在这里看到了在make_subplotsplotly.py API函数中使用的设置,但可能只是python API内部使用的一个值。false
make_subplots
false
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
点击生成二维码
我来说两句