This image is plot using:
subplot(1,2,1)
hist(...)
subplot(1,2,2)
text(...)
But I don't want the border of second plot and I want the text on the upper left of the plot. How can I make it?
This image is plot using:
subplot(1,2,1)
hist(...)
subplot(1,2,2)
text(...)
But I don't want the border of second plot and I want the text on the upper left of the plot. How can I make it?
Try this:
subplot(1,2,1)
hist(...)
ax2 = subplot(1,2,2)
ax2.set_xticks([])
ax2.set_yticks([])
for spine in ax2.spines.values():
spine.set_visible(False)
ax2.invert_yaxis()
ax2.text(..., verticalalignment="top")
Update:
As pointed out in the comments, you can also just do:
subplot(1,2,1)
hist(...)
ax2 = subplot(1,2,2)
ax2.axis("off")
ax2.invert_yaxis()
ax2.text(..., verticalalignment="top")
Although this will remove the default axis background too (depending on your settings and Matplotlib version, this may leave you with a gray background color).