How do position coordinates work on a subplot?
Mostrar comentarios más antiguos
I have a subplot filled with one video up top and two graphs underneath. In order to get the ratio right I used a subplot(4,4,1:12) for the video, subplot(4,4,13:14) for one graph and subplot(4,4,15:16) for the other. I am now trying to use insertText() and insertShape() to add labels on top of the video but I'm not sure how the position works in those two functions. Can anyone clariffy?
Respuesta aceptada
Más respuestas (1)
It appears that those [x,y] positions are the image indices from the upper left of the image. If you look at the two examples and where the text is inserted, the y position is lower in the image as the position increases and moves to the right as x postion increases. That would be consistent with images in MATLAB on axes with y-axis decreasing.
I don't have the TB so that's just reading the doc and looking at the examples...a little experimentation out to answer the question pretty quickly.
Categorías
Más información sobre Image Arithmetic en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!