Changing axes linewidth on a stacked plot

9 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by