proplot icon indicating copy to clipboard operation
proplot copied to clipboard

Inconsistent width of axes

Open Yefee opened this issue 1 year ago • 3 comments

Description

The width of axes are inconsistent.

Steps to reproduce

layout = [[1, 1, 2, 2, 3, 3],
          [4, 4, 4, 5, 5, 5]]

fig, axs = pplt.subplots(layout, sharey=False, proj={4:'merc'}, proj_kw={'lon_0': 180},
                         hratios=[1, 1], refnum=4, wratios= [1, 1, 1, 1, 1, 1], journal='nat2')
axs.format(land=True, landcolor='k')



axs[0].plot(np.arange(10))
axs[1].plot(np.arange(10))
axs[2].plot(np.arange(10))


Expected behavior: [What you expected to happen] The axes in the top row, axs[0:3], shall have the same width. Actual behavior: [What actually happened]

axs[1] is wider than the other two.

CleanShot 2022-10-02 at 22 51 40@2x

Proplot version

Matplotlib 3.4.3 Prophet 0.9.5

Yefee avatar Oct 03 '22 02:10 Yefee

I suppose the problem is caused by refnum. The code below works well:

fig, axs = pplt.subplots(layout, sharey=False, proj={4:'merc'}, proj_kw={'lon_0': 180})
image

zxdawn avatar Oct 03 '22 03:10 zxdawn