Manually set the ticklabels of `CoordinateHelper`

Are there any ways to manually set the tick labels of Coordinate Helper?

I tried
ax.coords[2].set_ticklabel(text=['1','2','3'])
or directly accessing
ax.coords[2].ticklabels.text['t'] = ['1','2','3']

Both failed.

Hello @yjzhu-solar,

Sorry for the late reply!

There is no good answer for this, the best bet is to use the new astropy 7.0 release which contains this PR: Allow major formatter to be a callable in WCSAxes by astrofrog · Pull Request #17020 · astropy/astropy · GitHub but its still pretty unintuitive and I am not sure if there is any documentation on how best to use this.