MathGroup Archive 2010

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

Search the Archive

Re: ListLinePlot Labels


Hi,

no hack. Just create your ticks or use a tick-function.

data = Table[{i, RandomReal[]}, {i, 1, 12}];
ticks[min_, max_] :=
   Table[{i,
     Rotate[#, Pi/2] &@
      Style[DateString[DateList[{1990, i, 1, 0, 0, 0}], "MonthName"],  
Blue,
       FontFamily -> "Helvetica"]}, {i, Floor[min], Ceiling[max]}];
ListLinePlot[data, Ticks -> {ticks, Automatic}]

Cheers
Patrick

PS: and AxesLabel is something different.

Am Jan 29, 2010 um 1:48 PM schrieb Eddie Fonner:

> I'm trying to create a ListLinePlot with custom labels on the x- 
> axis, i.e. "January, February..." instead of "1, 2..."
>
> The ChartLabels option doesn't seem to be compatible with  
> ListLinePlot.  Do you guys have any other suggestions, or possibly a  
> way of hacking this with AxesLabel?
>



  • Prev by Date: Re: ListLinePlot Labels
  • Next by Date: Re: ListLinePlot Labels
  • Previous by thread: Re: ListLinePlot Labels
  • Next by thread: Re: ListLinePlot Labels