草庐IT

axScatter

全部标签

python - matplotlib:使用 append_axes 时,如何指示要将子面板添加到的轴?

我一直在看这个例子"scatterhist"在Matplotlib画廊中。此时x/y子图分别在顶部和右侧,即:divider=make_axes_locatable(axScatter)axHistx=divider.append_axes("top",1.2,pad=0.1,sharex=axScatter)axHisty=divider.append_axes("right",1.2,pad=0.1,sharey=axScatter)但是,如果我将子图位置更改为:divider=make_axes_locatable(axScatter)axHistx=divider.append