Re: ListLinePlot Labels
- To: mathgroup at smc.vnet.net
- Subject: [mg107004] Re: [mg106958] ListLinePlot Labels
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Sun, 31 Jan 2010 05:57:48 -0500 (EST)
- Reply-to: hanlonr at cox.net
data = RandomReal[{10, 100}, {12}];
DateListPlot[data, {2009, 1},
Joined -> True]
ListLinePlot[data,
Frame -> True,
Axes -> False,
PlotRange -> {{.8, 12.2}, All},
FrameTicks -> {
{Automatic, Automatic},
{Join[{#, ""} & /@ Range[12], {{1, "Jan"}, {4, "Apr"},
{7, "Jul"}, {10, "Oct"}}],
{#, ""} & /@ Range[12]}},
GridLines -> {{#, GrayLevel[.85]} & /@ Range[4, 10, 3], None}]
Bob Hanlon
---- Eddie Fonner <efonner at armus.com> wrote:
=============
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?
--
Bob Hanlon