From: Chris Degnen on 30 Jan 2010 07:30 Alternatively: (* Adapting the documented ListLinePLot example *) ListLinePlot[Prime[Range[16]], Filling -> Axis, Frame -> True, FrameTicks -> {{{1, "Jan"}, {4, "Feb"}, {7, "Mar"}, {10, "Apr"}, {13, "May"}, {16, "Jun"}}, Automatic, None, None}] > 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? >
From: Bob Hanlon on 31 Jan 2010 05:59 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(a)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
First
|
Prev
|
Pages: 1 2 Prev: Intervals. Was Re: More /.{I->-1} craziness. Schools are conservative. Next: Numerical Problem |