In astronomy, we divide the night sky up in a way that does not make sense to matplotlib. I am essentially trying to plot something where the x axis looks like this:
200 250 300 350 0 100 150 200
Each integer should be a separate tick on the x axis. I have tried:
import matplotlib as plt
RA = [10, 45, 8, 340, 255]
DEC = [10, 2, 15, 8, 20]
ticks = [200, 250, 300, 350, 0, 100, 150, 200, 249.9999999]
plt.scatter(RA, DEC)
plt.xticks(DEC, tx)
But this returns the error:
UnitsConversionError: Can only apply 'greater' function to dimmensionless quantities when other argument is not a quantity (unless the later is also zero/infinity/nan
I have also tried using the plt.xlim keyword but there is not a clear way that I can see to break the limits into multiple sections. It seems to only take a high and a low number.