How do I plot a vertical line and label it on time series plot?

  • Follow


figure;

fts1=fints(cellstrDatesDaily, dMyTimeSeries);

h=plot(fts1);

But how can I add a vertical line to the plot, and label it with a
date(not a date number)?

Thanks a lot!
0
Reply lunamoonmoon (258) 2/17/2010 1:13:06 AM

Luna Moon wrote:
> figure;
> 
> fts1=fints(cellstrDatesDaily, dMyTimeSeries);
> 
> h=plot(fts1);
> 
> But how can I add a vertical line to the plot, and label it with a
> date(not a date number)?
> 
> Thanks a lot!

doc line
doc datestr
doc text

--
0
Reply none1568 (6641) 2/17/2010 1:29:54 AM


On Feb 16, 8:29=A0pm, dpb <n...@non.net> wrote:
> Luna Moon wrote:
> > figure;
>
> > fts1=3Dfints(cellstrDatesDaily, dMyTimeSeries);
>
> > h=3Dplot(fts1);
>
> > But how can I add a vertical line to the plot, and label it with a
> > date(not a date number)?
>
> > Thanks a lot!
>
> doc line
> doc datestr
> doc text
>
> --

I am actually looking for some ready-made tools... to facilitate these
things, instead of me doing it from scratch...
0
Reply lunamoonmoon (258) 2/17/2010 1:05:11 PM

dpb gave you names of "ready made tools": line, datestr, and text.
You're only looking at two or three lines of code - doesn't get any
more "ready made" than that.
0
Reply imageanalyst (7590) 2/17/2010 1:09:25 PM

Luna Moon wrote:
> On Feb 16, 8:29 pm, dpb <n...@non.net> wrote:
>> Luna Moon wrote:
>>> figure;
>>> fts1=fints(cellstrDatesDaily, dMyTimeSeries);
>>> h=plot(fts1);
>>> But how can I add a vertical line to the plot, and label it with a
>>> date(not a date number)?
>>> Thanks a lot!
>> doc line
>> doc datestr
>> doc text
>>
>> --
> 
> I am actually looking for some ready-made tools... to facilitate these
> things, instead of me doing it from scratch...

So wrap what you want in a function and it's then a tool.

--
0
Reply none1568 (6641) 2/17/2010 2:13:19 PM

On Feb 17, 9:13=A0am, dpb <n...@non.net> wrote:
> Luna Moon wrote:
> > On Feb 16, 8:29 pm, dpb <n...@non.net> wrote:
> >> Luna Moon wrote:
> >>> figure;
> >>> fts1=3Dfints(cellstrDatesDaily, dMyTimeSeries);
> >>> h=3Dplot(fts1);
> >>> But how can I add a vertical line to the plot, and label it with a
> >>> date(not a date number)?
> >>> Thanks a lot!
> >> doc line
> >> doc datestr
> >> doc text
>
> >> --
>
> > I am actually looking for some ready-made tools... to facilitate these
> > things, instead of me doing it from scratch...
>
> So wrap what you want in a function and it's then a tool.
>
> --

Okay, I am looking for more fancy time series visualization tools...
Thanks
0
Reply lunamoonmoon (258) 2/17/2010 4:04:47 PM

On Feb 17, 9:13=A0am, dpb <n...@non.net> wrote:
> Luna Moon wrote:
> > On Feb 16, 8:29 pm, dpb <n...@non.net> wrote:
> >> Luna Moon wrote:
> >>> figure;
> >>> fts1=3Dfints(cellstrDatesDaily, dMyTimeSeries);
> >>> h=3Dplot(fts1);
> >>> But how can I add a vertical line to the plot, and label it with a
> >>> date(not a date number)?
> >>> Thanks a lot!
> >> doc line
> >> doc datestr
> >> doc text
>
> >> --
>
> > I am actually looking for some ready-made tools... to facilitate these
> > things, instead of me doing it from scratch...
>
> So wrap what you want in a function and it's then a tool.
>
> --

There is a "chartfts" command in Matlab, but its functionalities are
really awkard...
0
Reply lunamoonmoon (258) 2/17/2010 4:11:29 PM

Luna Moon wrote:
....

> There is a "chartfts" command in Matlab, but its functionalities are
> really awkard...

 >> which chartfts
chartfts not found.
 >>

--
0
Reply none1568 (6641) 2/17/2010 9:00:40 PM

7 Replies
49 Views

(page loaded in 0.132 seconds)


Reply: