adjustText icon indicating copy to clipboard operation
adjustText copied to clipboard

I use a adjustText in 28 pairs of FX.

Open david03kimo opened this issue 4 years ago • 0 comments

image

if len(pairs_list)==1,it works perfect when I use plt.figure().But if len(pairs_list)==28,I used plt.subplot(4,7,pair+1),it is'not good. Maybe I put the adjust_text in the wrong place?shall be outside the for loop?

`` for pair in range(len(pairs_list)):

use adjustText to correct text overlap

AdjTexts = [plt.text(x_,y_,text_,fontsize=9) for x_,y_,text_ in zip(x,y,text)] adjust_text(AdjTexts, only_move={'text': 'y'},save_steps=False)

``

image

but if I put outside the for loop, it become no text.

`` for pair in range(len(pairs_list)):

AdjTexts = [plt.text(x_,y_,text_,fontsize=9) for x_,y_,text_ in zip(x,y,text)] adjust_text(AdjTexts, only_move={'text': 'y'},save_steps=False) ``

david03kimo avatar Jan 28 '21 00:01 david03kimo