how to make zoom in and out

조회 수: 1 (최근 30일)
Shehab Tarek
Shehab Tarek 2020년 5월 20일
답변: Walter Roberson 2020년 5월 21일
zoom in and out the text

채택된 답변

Walter Roberson
Walter Roberson 2020년 5월 21일
text objects have different possible FontUnits. All of the possibilities except Normalized relate to physical display size, and when you zoom because the physical display does not change, the on-screen size stays the same. normalized is proportional to the physical size of the axes, but since that does not change when you zoom, the size of the text does not change.
None of the text size options are in data units.
In order to change the text size when zooming, you have two choices:
  1. use the zoom postactioncallback to change the font size; or
  2. make the plot into an image with the text "burned in" to the image, and then the apparent size would change as you zoom.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by