Bar Graph legend & x axis
조회 수: 1 (최근 30일)
이전 댓글 표시
why the legends are showing same colour if i have 1 than 1 data ? if only 1 data then the legend is showing correctly.
how to assign x as each day of month like 1 to 31st july, i need "x" only as date realtime. not as datetime
댓글 수: 0
채택된 답변
Scott MacKenzie
2021년 7월 6일
편집: Scott MacKenzie
2021년 7월 6일
Change line 3 from
t = datetime;
to
t = linspace(datetime('yesterday'), datetime('tomorrow'), length(InspectionPlan));
For plotting, t needs to be the same size as InspectionPlan. The line above achieves this, but ideally you should probably intialize t so each entry is the date/time of the corresponding entry in InspectionPlan.
추가 답변 (1개)
Christopher Stapels
2021년 7월 6일
This looks like an interesteing application. Can you tell us more about what you are monitoring?
댓글 수: 0
커뮤니티
더 많은 답변 보기: ThingSpeak 커뮤니티
참고 항목
카테고리
Help Center 및 File Exchange에서 Visualize Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!