Filter löschen
Filter löschen

Draw text at screen-space coordinates

4 Ansichten (letzte 30 Tage)
Gebhard Stopper
Gebhard Stopper am 15 Mai 2020
Beantwortet: Ameer Hamza am 15 Mai 2020
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 Kommentar
darova
darova am 15 Mai 2020
You can create additional axes and write text there

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Ameer Hamza
Ameer Hamza am 15 Mai 2020
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.

Kategorien

Mehr zu Visual Exploration finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by