Draw text at screen-space coordinates

HI,
is it possible to draw e.g. text or simple shapes in screen-space coordinates onto an axes?
The idea is that I can zoom in and pan a graph, but the text (or shapes) stays at a fixed location and maintains the same size on the screen, independent of the "zoom" and X/Y limits.
Best,
Gebhard

댓글 수: 1

darova
darova 2020년 5월 15일
You can create additional axes and write text there

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

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 5월 15일

0 개 추천

See annotation(): https://www.mathworks.com/help/releases/R2020a/matlab/ref/annotation.html. Use 'textbox' to write text in figure coordinates. The text will not move if you move the axes.

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

질문:

2020년 5월 15일

답변:

2020년 5월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by