Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

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

Search the Archive

Numbers get all squished

  • To: mathgroup at smc.vnet.net
  • Subject: [mg121565] Numbers get all squished
  • From: Just A Stranger <forpeopleidontknow at gmail.com>
  • Date: Tue, 20 Sep 2011 06:08:35 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

Hello,

I'm trying to plot a time series, with the units being years, using
LineListPlot. The data are {year, value} pairs

{{2001, 0.2},{2002, 0.1}...etc}

For some reason when I try and export a GraphicsGrid, it squishes all the
years onto the ticks. So the ticks look like one long string of numers.
(200120020020042005).

I tried to use DateListPlot, but apparently it needs whole dates and not
years. It uses a wierd date format that would require writing a function
that converts the format of my data to something like

dataDateFormat = {{{2001,1,1}, 0.2},{{2002,1,1}, 0.1}...etc} (with a 10
years sample)

which would be fine I suppose, but there's got to be some option or a better
way? I'm puzzled why LineListPlot squishes the values into one long string
when GraphicsGrid is used. Shouldn't it just skip values (which would
actually be dandy)?

The graphics grid consisted of 6 plots, it looks  like:

a1=ListLinePlot[data1];
b1=ListLinePlot[data2];
c1=ListLinePlot[data3];
a2=ListLinePlot[data4];
b2=ListLinePlot[data5];
c2=ListLinePlot[data6];

Transpose[{{a1,b1,c1},{a2,b2,c2}}] //GraphicsGrid

Which results in the time-axis ticks looking like (200120022003200420005)

Any idea a good way to fix this without converting to the DateListPlot date
format?

Thank you for any help.



  • Prev by Date: Parallel remote kernel: MathLink connection not active
  • Next by Date: Re: How create new style sheet- Mathematica 8
  • Previous by thread: Re: Parallel remote kernel: MathLink connection not active
  • Next by thread: Re: Numbers get all squished