proplot-dev / proplot

🎨 A succinct matplotlib wrapper for making beautiful, publication-quality graphics
https://proplot.readthedocs.io
MIT License
1.07k stars 96 forks source link

Wrong position of xlabel in Cartesian subplot mixed with Geographic subplots #365

Open zxdawn opened 2 years ago

zxdawn commented 2 years ago

Description

The location of xlabel is usually in the middle of subplots. But, it doesn't work for Cartesian and Geographic mixed plots.

Steps to reproduce

import proplot as pplt
fig, axs = pplt.subplots(nrows=2, ncols=2, proj=['npstere', 'npstere', None, 'npstere'])

axs[2].format(xlabel='xlabel for Cartesian subplot')

Expected behavior:

The xlabel in the middle of subplot3 xaxis.

Actual behavior: image

Proplot version

3.5.1
0.9.5.post202
zxdawn commented 2 years ago

Sorry, I forgot to pass share=0.

lukelbd commented 1 year ago

Think spanning labels across axes with different projections should be disabled automatically. I'll look into fixing that