add text into generated figure
Afficher commentaires plus anciens
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 commentaires
Walter Roberson
le 29 Mar 2019
You should be able to text() or legend() afterwards, putting in the text yourself. The seqlogo function itself will not do it for you.
You might have to create a second axes with the same position as the original. I looked at the function last week and I seem to recall that it manages to parent some graphics directly to a uipanel instead of to an axes in the uipanel. I would need to go back to confirm that though.
Walter Roberson
le 29 Mar 2019
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 :(
Réponses (0)
Catégories
En savoir plus sur Annotations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!