Bar Graph legend & x axis

1 回表示 (過去 30 日間)
Rizwan Khan
Rizwan Khan 2021 年 7 月 6 日
コメント済み: Rizwan Khan 2021 年 7 月 13 日
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

採用された回答

Scott MacKenzie
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.
  3 件のコメント
Rizwan Khan
Rizwan Khan 2021 年 7 月 13 日
still the dates does not matching while ploting.
i am ploting field1 vs field2
Rizwan Khan
Rizwan Khan 2021 年 7 月 13 日
Data enetred in 2nd july but plot is showing from 12th july

サインインしてコメントする。

その他の回答 (1 件)

Christopher Stapels
Christopher Stapels 2021 年 7 月 6 日
This looks like an interesteing application. Can you tell us more about what you are monitoring?

コミュニティ

その他の回答  ThingSpeak コミュニティ

カテゴリ

Help Center および File ExchangeVisualize Data についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by