MathGroup Archive 2010

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

Search the Archive

Re: ListLinePlot Labels

  • To: mathgroup at smc.vnet.net
  • Subject: [mg106989] Re: [mg106958] ListLinePlot Labels
  • From: Tomas Garza <tgarza10 at msn.com>
  • Date: Sat, 30 Jan 2010 07:14:31 -0500 (EST)
  • References: <201001291248.HAA29104@smc.vnet.net>

One possibility is "hacking" this with Ticks. Full length month names will 
make the x-axis appear a little cluttered, but you can Rotate them to produce a more pleasant result:

data=2 Range[12];

months={"January","February","March","April","May","June","July","August","September","October","November","December"};

tks=Transpose@{Range[12],Rotate[#,Pi/4]&/@months};

ListLinePlot[data,Ticks->{tks,Automatic}];

Tomas

> Date: Fri, 29 Jan 2010 07:48:29 -0500
> From: efonner at armus.com
> Subject: [mg106958] ListLinePlot Labels
> To: mathgroup at smc.vnet.net
>
> 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: Re: Journals dying?, apparently rather slowly (was , I->-I)
  • Previous by thread: Re: ListLinePlot Labels
  • Next by thread: Re: ListLinePlot Labels