필터 지우기
필터 지우기

Set a custom default label text

조회 수: 4 (최근 30일)
J. van Delft
J. van Delft 2015년 4월 8일
Almost all my plots have time on the x-axis so I was wondering if I could change the label to read 'Time [sec]' by default.
I have been looking into the get(groot,'factoryAxes') properties and it seems I can change the xlabel with set(groot,'defaultAxesXlabel'). However, when I change it to set(groot,'defaultAxesXlabel','Time [sec]') I get an error:
Error using gca
While setting the 'Parent' property of Axes:
Value must be a handle.
Error in newplot (line 68)
ax = gca(fig);
Is this the right approach? Is it even possible to do this?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by