Error in matlab.graphics.chart.StackedLineChart/get.AxesProperties
조회 수: 3 (최근 30일)
이전 댓글 표시
I want to specify Y limits for every plots in the stackedplot graph using the script below, as well as modify the x axes format. I was following the procedures in here https://uk.mathworks.com/help/matlab/ref/matlab.graphics.chart.internal.stackedplot.stackedaxesproperties-properties.html but none worked.
nearfield = [21418 21413 21419 21416 21415];
new = {};
for i=1:length(nearfield)
newYlabels = {nearfield(i)};
new = [new newYlabels];
end
figure
s=stackedplot(tm(1:halfdat),urutan(3:halfdat+2,1:5),...
'DisplayLabels',new);
s.LineWidth=1;
c = s.AxesProperties(3).YLimits
so far only the last line that didn't work. Anyone knows what happened and how to solve this? Thanks
댓글 수: 8
Walter Roberson
2020년 8월 16일
If you comment out the xlabel() do you get the same problem?
Which release are you using?
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!