You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wcsaxes.coords.set_axeslabel_position not working for y axis #11929
Welcome to Astropy 👋 and thank you for your first issue!
A project member will respond to you as soon as possible; in the meantime, please double-check the guidelines for submitting issues and make sure you've provided the requested details.
If you feel that this issue has not been responded to in a timely manner, please leave a comment mentioning our software support engineer @embray, or send a message directly to the development mailing list. If the issue is urgent or sensitive in nature (e.g., a security vulnerability) please send an e-mail directly to the private e-mail [email protected].
This is a subtle bug in the example you posted - set_axislabel_position does not take e.g. right or left - but one character per axis you want to show it on, r for right`, tfor top, etc. Since the word 'right' contains bothrandt``, it is placed on the right and top. The correct call is:
ax.coords['lat'].set_axislabel_position('r')
Having said this, I'm surprised we don't error on invalid axis names. I'll investigate.
Activity
github-actions commentedon Jul 8, 2021
Welcome to Astropy 👋 and thank you for your first issue!
A project member will respond to you as soon as possible; in the meantime, please double-check the guidelines for submitting issues and make sure you've provided the requested details.
If you feel that this issue has not been responded to in a timely manner, please leave a comment mentioning our software support engineer @embray, or send a message directly to the development mailing list. If the issue is urgent or sensitive in nature (e.g., a security vulnerability) please send an e-mail directly to the private e-mail [email protected].
astrofrog commentedon Jun 19, 2025
This is a subtle bug in the example you posted -
set_axislabel_positiondoes not take e.g.rightorleft- but one character per axis you want to show it on,rforright`,tfor top, etc. Since the word 'right' contains bothrandt``, it is placed on the right and top. The correct call is:Having said this, I'm surprised we don't error on invalid axis names. I'll investigate.