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 Community
另请参阅
类别
在 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!