plt.subplots sharex,sharey,我设置投影后不再工作
fig, ax=plt.subplots(6, 4,figsize=(14, 14), sharex=True, sharey=True, subplot_kw=dict(projection=fwcs[:,1,1]), gridspec_kw={'hspace': 0.5, 'wspace': 0.3})
这就是我创建轴以沿数据中不同视线绘制24个图的轴的方式。看到我有sharex = true and sharey = true。但是,这就是我的数字的样子:
,如果我删除位subplot_kw = dict(propjective = fwcs [:,1,1]) 然后sharex和sharey的表现如预期:
fig, ax=plt.subplots(6, 4,figsize=(14, 14), sharex=True, sharey=True, subplot_kw=dict(projection=fwcs[:,1,1]), gridspec_kw={'hspace': 0.5, 'wspace': 0.3})
This is how I'm creating my axes to plot 24 plots along different line of sights in my data. See that I have sharex=True and sharey=True in there. However, this is what my figure looks like:
However, if I remove the bit subplot_kw=dict(projection=fwcs[:,1,1])
then sharex and sharey behave as expected:
Why is the addition of the bit setting the projection correct stopping the sharex and sharey?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论