Fix support for x/y, horizontal/verticalalignment and loc for plt.x/ylabel in WCSAxes
Open
Bug
visualization.wcsaxes
- Dominant language
- Python
- Stars
- 5.3k
- Forks
- 2.2k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 74
Description
While fixing https://github.com/astropy/astropy/pull/9875 I noticed that we don't properly support the ``x``, ``y``, ``horizontalalignment``, ``verticalalignment`` and ``loc`` arguments to ``plt.xlabel`` and ``plt.pylabel`` in WCSaxes. We should fix this! (I consider this a bug, so we could backport to 4.0.x)
Contributor guide
Research direction
Start by locating WCSAxes handling for plt.xlabel and plt.ylabel, then compare its support for x, y, horizontalalignment, verticalalignment, and loc with the corresponding Matplotlib behavior. Verify that each argument works for both axis-label helpers and add or run focused tests demonstrating the expected placement and alignment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100