Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: ListLinePlot Labels

  • To: mathgroup at smc.vnet.net
  • Subject: [mg106986] Re: [mg106958] ListLinePlot Labels
  • From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de>
  • Date: Sat, 30 Jan 2010 07:13:57 -0500 (EST)
  • References: <201001291248.HAA29104@smc.vnet.net>

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