フィルターのクリア

Draw text at screen-space coordinates

4 ビュー (過去 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 Center および File ExchangeVisual Exploration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by