如何使用代码绘制全局边界?

你好,我有使用Python和Matplotlib模块的代码:

import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec

f = plt.figure()

gs0 = gridspec.GridSpec(1,1,figure=f)
gs00 = gridspec.GridSpecFromSubplotSpec(3,3,subplot_spec=gs0[0])

ax1 = f.add_subplot(gs00[:,:-1])
ax2 = f.add_subplot(gs00[:-1,-1])
ax3 = f.add_subplot(gs00[-1,-1])

ax1.axis('off')
ax2.axis('off')
ax3.axis('off')

ax1.text(0.5,0.5,"ax1",va="center",ha="center")
ax2.text(0.5,"ax2",ha="center")
ax3.text(0.5,"ax3",ha="center")

plt.show()

这是我的代码的结果:

Original

我想要的是这样的东西:

Modified

您有解决此问题的想法吗?

非常感谢您!

baidu99150 回答:如何使用代码绘制全局边界?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3129426.html

大家都在问