I have seen several questions about changing the label pad, and changing the a single x-axis label, but not for changing the label pad for a single x-axis label! I have a graph that I am using to represent a range, and then the user score populates onto it. I want to ensure the score cant be placed on top of the other ticks, so i want to change its pad so that it generates further from the graph while the rest of the labels remain close.
here is an image of said graph:
I have tried a few methods for isolating an x index and then adjusting only its pad, but none seem to work. here are some helpful pieces from the code.
'''
xticks = [0,62.5,125,187.5,230,250]
yticks = ['0%', '25%', '50%', '75%', 'Your Score 92%','100%']
mp.xticks(xticks,yticks, rotation = 37, fontsize=15)
mp.yticks([])
ax.tick_params(axis='x', pad=30)
mp.axis('tight')
mp.savefig('HealthyScore.png', bbox_inches='tight', transparent=True)
mp.show()
'''