Info

此问题已关闭。 请重新打开它进行编辑或回答。

Datetick - plotting question

2 次查看(过去 30 天)
Joe
Joe 2012-3-3
关闭: MATLAB Answer Bot 2021-8-20
I am plotting a dataset (ds1, 5x7) with dates in first column and data in rest. Why does the bar chart plot the x axis data one month ahead?
bar(ds1.dates,double(ds1(:,2:end)))
datetick('x','mm-yy')
  1 个评论
Laurens Bakker
Laurens Bakker 2012-3-7
Could you show us your data, so that we can take a look at the values in ds1.dates?

回答(0 个)

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by