I cannot change the axes linewidth on a stacked plot, at least in the way that I am able to change the axes linewidth in other types of plots. For example, I have tried the following with no change to the axes linewidth:
figure(1)
stackedplot(time_axis, testdata)
hAx=gca;
hAx.LineWidth=2;

 채택된 답변

Adam Danz
Adam Danz 2021년 2월 27일
편집: Adam Danz 2021년 3월 3일
You have to access the axis handles first.
h = stackedplot(rand(10,4));
ax = findobj(h.NodeChildren, 'Type','Axes'); % use flipud to puts axes in order.
set(ax,'LineWidth',2)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Line Plots에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2021년 2월 26일

댓글:

2021년 3월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by