MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: graphing with dates and values

  • To: mathgroup at smc.vnet.net
  • Subject: [mg73108] Re: graphing with dates and values
  • From: "Valeri Astanoff" <astanoff at gmail.com>
  • Date: Sat, 3 Feb 2007 04:40:13 -0500 (EST)
  • References: <epv3it$96f$1@smc.vnet.net>

On 2 fév, 11:25, "fredfur" <mrmillh... at yahoo.co.uk> wrote:
> Hi  I have a list:
>
> {21-Mar-86, 27.5}, {20-Mar-86, 28.25}, {19-Mar-86, 28.75}, {18-Mar-86,
> 29.5} etc.
>
> how do I graph this with the dates on the x axis and the values on the
> y axis?
>
> thanks

Good day,

I suggest this way :

In[1]:=data={{"21-Mar-86", 27.5}, {"20-Mar-86", 28.25},
{"19-Mar-86", 28.75}, {"18-Mar-86", 29.5}};

In[2]:=ListPlot[data[[All,2]],PlotJoined -> True,
  Ticks -> {Table[{i,data[[i,1]]},{i,Length[data]}],Automatic}]

Out[2]= - Graphics -


V.Astanoff


  • Prev by Date: Re: graphing with dates and values
  • Next by Date: Re: reverse polish notation
  • Previous by thread: Re: graphing with dates and values
  • Next by thread: Re: Re: graphing with dates and values