You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何将WCSAxesSubplot从窗口底部偏移以适配matplotlib控件

问题:调整WCSAxesSubplot位置以留出控件空间

我尝试在matplotlib中将WCSAxesSubplot从绘图底部偏移,以便为多个滑块和按钮留出空间,但尚未找到可行方法。目前使用以下代码:

ax = plt.subplot(projection = was_data)

scatter = ax.scatter(x_data, y_data, transform=ax.get_transform('fk5'))

image = ax.imshow(image_data, cmap = 'Greys')

figure = plt.gcf()
figure.set_size_inches(5, 7.8) 

该方式虽能留出空间,但会导致标题上方出现较大空白。由于matplotlib的小工具不支持WCSAxesSubplot,这是唯一不会导致脚本崩溃的方法。

内容的提问来源于stack exchange,提问作者Hunter Brooks

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.30 10:52:02