ax.GridAlphaMode = 'auto' don't use default transparency value of 0.15

조회 수: 4 (최근 30일)
Eugene
Eugene 2018년 2월 7일
댓글: Birdman 2018년 2월 7일
Help says:
GridAlphaMode — Selection mode for GridAlpha
'auto' (default) | 'manual'
Selection mode for the GridAlpha property, specified as one of these values:
'auto' Use default transparency value of 0.15.
'manual' Use the manually specified transparency value. To specify the value, set the GridAlpha property.
Example: ax.GridAlphaMode = 'auto'
But I can't use it.
x = 0:pi/360:2*pi;
y = sin(x+pi);
hFigure = figure;
hAxes = subplot(1,1,1);
hLine = plot(x,y);
hAxes.XGrid = 'on';
hAxes.YGrid = 'on';
hAxes.XLim = [0 2*pi];
hAxes.XTick = 0 : pi/6 : 2*pi;
hAxes.GridAlpha = 0.5;
hAxes.GridAlphaMode = 'auto';
% Axes plot grids with GridAlpha=0.5
hAxes.GridAlpha = 0.15;
% Axes plot grids with GridAlpha=0.15
hAxes.GridAlphaMode = 'auto';
% Axes plot grids with GridAlpha=0.15
Is it ok?

답변 (1개)

Eugene
Eugene 2018년 2월 7일
The example is the little part of my programm. You must use to debug and set the breakpoint to first mentioning GridAlpha and then you must use step.

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by