Freely Rotate WCS Axis Labels

Hello all,

I am trying to rotate the y-axis label of a WCS plot to a specified angle. Specifically I would like to override the default that forces the text to go from top to bottom when on the right-hand-side of the plot. I’ve tried passing rotation arguments to the WCS axis, or to the matplotlib axis but nothing seems to work. Is there a way to do this? If I pass other arguments, such as color, or fontsize, those are incorporated as expected.

Minimal working example:

fig = pyplot.figure()
ax = fig.add_subplot(projection = wcs)
ax.coords['dec'].set_axislabel_position('r')
ax.set_axislabel('Declination',rotation=90)