add text into generated figure

조회 수: 4 (최근 30일)
Schen
Schen 2019년 3월 29일
댓글: Walter Roberson 2019년 3월 29일
Hi,
I am using the seqlogo function to generate quite many figures of peptides sequences. To better identify the order of the pictures, i would like to add some text to each generated figures. However, the seqlogo function doesn't accept any 'legend','annimation'....
Is ther any way can add some text to the figures generated by seqlogo? Thanks
seqlogo(sequences, 'Alphabet','AA','SSCorrection',0, 'ALPHABET', 'AA')
  댓글 수: 3
Schen
Schen 2019년 3월 29일
편집: Schen 2019년 3월 29일
Hi Walter,
Thanks for the reply.
following the seqlogo function to generate a figure window of my plot, text() and legend() will open another new figure window and put the text to the new window. I also tried to put the handle of the figure, but it will give a error. How can i force the text() and legend() function to put text a specific logo window?
Thanks
Walter Roberson
Walter Roberson 2019년 3월 29일
When I look this time, I see that the figure that seqlogo() creates has a toolbar (normal) and has a JavaWrapper. so there is no axes to draw on.
My tests with annotation() do not show up.
You could try adding an axes to the figure, with InnerPosition [0 0 1 1] and draw inside that. At the moment I do not know if it will work -- really that is what annotation() does and if annotation() does not show up... Yup, confirmed that it will not show up :(

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by