Closed astrofrog closed 13 years ago
Thanks for reporting this. This is a bug, and I will commit the fix soon. Meanwhile, I recommend you to manually set the labels with following methods.
ax.axis["bottom"].label.set_text("$l$") ax.axis["left"].label.set_text("$b$")
On the other hand, you're misusing the pywcsgrid2.subplot command. You should not add the axes by yourself, as this is already done by the subplot command (as in the matplotlib). If you do want to do this manually, use Subplot (not subplot).
fig = plt.figure() ax = pywcsgrid2.Subplot(fig, 122, header=h) fig.add_axes(ax)
I hope this solves your issue.
-JJ
With leejjoon/pywcsgrid2@d7ca2af4245664a936fd321f7d388d1e6777eccc, this should work.
I have a FITS image with Galactic WCS coordinates. If I run the following code:
at the end, the labels are still the fk5 labels.