How to plot a range with stackedplot()

조회 수: 1 (최근 30일)
Ricardo López
Ricardo López 2020년 12월 2일
편집: Adam Danz 2020년 12월 4일
Good morning,
I would like to plot a range of data (19:42) on a stackedplot(), but i keep having an error. I tried to create a stackedlinechart and change the properties but keep having the following error:
Error using matlab.graphics.chart.StackedLineChart/set.XData
Unable to specify 'XData' and 'YData' values when the 'SourceTable' value is nonempty
Any clue?
Thanks!
  댓글 수: 1
KALYAN ACHARJYA
KALYAN ACHARJYA 2020년 12월 2일
Which MATLAB version are you using? Also please provide
whos data?

댓글을 달려면 로그인하십시오.

답변 (1개)

Adam Danz
Adam Danz 2020년 12월 2일
편집: Adam Danz 2020년 12월 4일
As the error message indicates, you cannot specify both the Source Table and the XData/YData.
You can either use indexing the specify the inputs within your desired range or you can plot all of the data and then set the XLimits value to your specified range.
For additional help, share your input values and the code used to generate the stackedplot.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by