python - Placing of text by specifying distance from axes -



python - Placing of text by specifying distance from axes -

i wondering, when using ax.text command on 2 different plots plot same figure in paper, e.g.:

axscatter_scatter.text(38.20, 2.76, r'$\mathrm{(a)}$', fontsize=12) axscatter_hist.text(2.8, 284.5, r'$\mathrm{(b)}$', fontsize=12)

is possible, rather specifying rough xy co-ordinates, specify standard distance axes? both (a) , (b) label positions exact?

any thoughts on much appreciated, can't seem find in literature or through other means.

as documentation of text explains can utilize transform argument:

axscatter_scatter.text(0.1, 0.1, r'$\mathrm{(a)}$', fontsize=12, transform=axscatter_scatter.transaxes) axscatter_hist.text(0.1, 0.1, r'$\mathrm{(b)}$', fontsize=12, transform=axscatter_hist.transaxes)

now coordinates text objects interpreted fractions of axes.

python matplotlib

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -