Changing axes linewidth on a stacked plot

9 visualizaciones (últimos 30 días)
Elliot Tseng
Elliot Tseng el 26 de Feb. de 2021
Comentada: Elliot Tseng el 8 de Mzo. de 2021
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;

Respuesta aceptada

Adam Danz
Adam Danz el 27 de Feb. de 2021
Editada: Adam Danz el 3 de Mzo. de 2021
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)

Más respuestas (0)

Categorías

Más información sobre Graphics Object Programming en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by