I'm reading data in from a FITS file and plotting a velocity field. I'm using set_major_formatter('dd:mm')
for the angle on the y-axis, but for every other tick it's only displaying the minutes. I want the full degrees and minutes to show up for each tick label.
fig = plt.figure(dpi=300)
plt.set_cmap('gray')
ax = plt.subplot(111, projection=wcs)
im = ax.imshow(mean_vel, vmin=-115, vmax=-102, origin='lower') # plot data
dec = ax.coords[1]
dec.set_major_formatter('dd:mm')
dec.set_ticks([29.5, 30, 30.5, 31, 31.5, 32, 32.5, 33] *u.deg)
dec.set_ticklabel(size=6)
For example the 00'
on the y-axis should be displayed as 32°00'
instead