Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Plot date labels
Date: Sat, 11 Aug 2012 08:22:07 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 10
Message-ID: <k054nf$qmn$1@newscl01ah.mathworks.com>
References: <k00t34$t35$1@newscl01ah.mathworks.com> <k00u6p$3hq$1@newscl01ah.mathworks.com> <k02bte$l1q$1@newscl01ah.mathworks.com> <k02ot9$riq$1@newscl01ah.mathworks.com> <k035m2$bo4$1@newscl01ah.mathworks.com> <k036js$e2g$1@speranza.aioe.org> <k038al$ldb$1@newscl01ah.mathworks.com> <k03adt$o0s$1@speranza.aioe.org> <k03fjb$h9k$1@newscl01ah.mathworks.com> <k03h04$914$1@speranza.aioe.org> <k050as$enf$1@newscl01ah.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: www-04-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1344673327 27351 172.30.248.35 (11 Aug 2012 08:22:07 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 11 Aug 2012 08:22:07 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:776210

"mklcst mklcst" wrote in message <k050as$enf$1@newscl01ah.mathworks.com>...
> I don't understand if I have to build manually the vector of dates.

t=now+(1:10);
plot(t,rand(size(t)));

set(gca,'xtick',t,'xlim',t([1 end]));
datetick('x','keeplimits','keepticks');

% Bruno