I draw a unit circle:
Due to the intersection of the circle and the axes, xticks and yticks labels are invisible. How can I place these tick labels to nearby places while keeping previous labels?
I draw a unit circle:
Due to the intersection of the circle and the axes, xticks and yticks labels are invisible. How can I place these tick labels to nearby places while keeping previous labels?
You can add text to the figure using plt.axis(x,y,'text')
to effectively position tick labels wherever you want:
# Remove tick labels
ax.set_xticklabels('')
ax.set_yticklabels('')
# Add more visible tick labels with a slight offset
plt.text(0.05,0.05,'0')
plt.text(1.05,0.05,'1')
plt.text(0.05,1.05,'1')
plt.text(-0.95,0.05,'-1')
plt.text(0.05,-0.95,'-1')