I wish to add the plus sign (“+”) for the positive values in the Declination axis (Y). I tried a lot of solutions. The method set_major_formatter
seems very limited, it only allows a small usecase. It’s crazy because it’s a very simple action in terms of programming, however I’m not able to achieve this through the built-in functions that Astropy has. That’s why I’m asking for your help.
Values lower than 0 already have the “-” sign. I’m preparing sky charts for all public usage, so adding the “+” sign would be helpful for the people.
This is my line of code:
ax.coords[1].set_major_formatter('d')
I tried matplotlib.ticker
. I tried to understand the CoordinatesHelper
class. What can I do then?
Thanks in advance!