在时间(日期)轴上绘制数据 [英] Plotting data on time (date) axis

查看:79
本文介绍了在时间(日期)轴上绘制数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的数据:

22.10.1980. 100  
25.10.1980. 120  
26.10.1980.  12

(仅包含更多内容,并且每个日期的右侧都有几个独立的度量值).

(only much more of it, and for each date, several independent measurements on the right).

现在,这可能是微不足道的,但是我从来没有在MATLAB中做过类似的事情,并且在在线查找相似的示例时遇到了问题.我需要将数据绘制在时间/显示日期轴(x轴)上,所有日期都在其中(也就是23和24....我没有测量值).

Now, this is probably trivial, but I've never done anything like it in MATLAB, and am having problems finding similar examples online. I need to plot the data on a time/showing dates axis (x axis), with all dates inside (so, 23. and 24. as well ... for which I don't have measurements).

如何获取日期以显示在绘图轴上?

How can I get dates to show up on a plot axis?

推荐答案

似乎最好使用datetick.

用法:datetick('x')datetick('x', dateformat),并具有文档.

这篇关于在时间(日期)轴上绘制数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆