필터 지우기
필터 지우기

How to set "TightInset" globally?

조회 수: 27 (최근 30일)
William Greenway
William Greenway 2022년 3월 14일
댓글: William Greenway 2022년 3월 14일
I'm trying to set up a MATLAB script that needs to print multiple figures. I want to set up the settings globally so that I don't have to paste the code each time. How do I set up "TightInset" globally so that I don't have to paste it each time. At the moment I have been using:
set(gca,'LooseInset', max(get(gca,'TightInset'), 0.02))
But want this to be set globally similar to
set(0, 'defaultFigureUnits', 'inches', 'defaultFigurePosition', [0 0 3.5 3]);

답변 (1개)

Walter Roberson
Walter Roberson 2022년 3월 14일
You cannot control TightInset: it is read-only.
You can set a default LooseInset though.
set(groot, 'defaultAxesLooseInset', [0.04 0.05 0.02 0.02])
  댓글 수: 1
William Greenway
William Greenway 2022년 3월 14일
Thanks very much! What's the difference between using
set(groot,...)
and
set(0,...)
???
Thanks!

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

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by