Need help understanding how to use the get_xticks and get_yticks in my code.
below is the suggested correction recommended to help solve ValueError: Image size of AxB pixels is too large
Unfortunately, the x-coordinates (behind the datetime units) are not fixed in matplotlib (to fix them, you’d need a slightly more complicated coding approach), so the solution here is to use ax.get_xticks() and ax.get_yticks() to see what are the coordinates and then adjust your input coordinates accordingly.
Currently,I am unable to use the ax.text() method due to the inability for me to specific the x coordinate.
I assumed my x coordinates range from 2001 to 2021 (the coordinates used to plot my graphs) but it doesnt work when I try to set the text position with them.