| MATLAB Central > MATLAB Newsreader > Plot date labels |
|
|
|
Hi everybody, I have a 2 column matrix to plot, one with the dates in number and the other column with the values. My problem is the date labels to plot on the x axis, because if I have 100obs I cannot print 100 date labels. In order to face it I tried with some loops but I have an inconsistency on the time range (same space interval different time period of months). I suppose there is an easy way to do it, so if I have a column-vector x with the dates in number and y with the values. What I have to do in order to plot it? |
|
"mklcst mklcst" wrote in message <k00t34$t35$1@newscl01ah.mathworks.com>... |
|
Thank you Justin. |
|
"mklcst mklcst" wrote in message <k02bte$l1q$1@newscl01ah.mathworks.com>... |
|
My dates vector in in datenum, the problem is that if I set the gca Thr plot is overlapped... I searched on DOC and also I googled it my I didn't find a solution to my problem. |
|
On 8/10/2012 9:26 AM, mklcst mklcst wrote: |
|
Yes I use: datetick(xData,'mmm-yy','keeplimit'); |
|
On 8/10/2012 9:26 AM, mklcst mklcst wrote: |
|
On 8/10/2012 10:11 AM, mklcst mklcst wrote: |
|
ok, I get it. What about if I want to increase the number of displayed labels? |
|
On 8/10/2012 12:15 PM, mklcst mklcst wrote: |
|
I don't understand if I have to build manually the vector of dates. |
|
"mklcst mklcst" wrote in message <k050as$enf$1@newscl01ah.mathworks.com>... |
|
Bruno maybe you enlightened me, so if xData is my "t" (as in your example) if I code: |
|
"mklcst mklcst" wrote in message <k035m2$bo4$1@newscl01ah.mathworks.com>... |
|
On 5/4/2013 9:13 AM, Juliana Santos wrote: |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| plot dates | Justin Ashmall | 10 Aug, 2012 06:49:13 |
| label | mklcst mklcst | 9 Aug, 2012 13:49:24 |
| dates | mklcst mklcst | 9 Aug, 2012 13:49:24 |
| plot | mklcst mklcst | 9 Aug, 2012 13:49:24 |
