Draw text at screen-space coordinates

조회 수: 2 (최근 30일)
Gebhard Stopper
Gebhard Stopper 2020년 5월 15일
답변: Ameer Hamza 2020년 5월 15일
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일
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.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by