Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5102 > unrolled thread
| Started by | Just A Stranger <forpeopleidontknow@gmail.com> |
|---|---|
| First post | 2011-09-20 10:10 +0000 |
| Last post | 2011-09-20 10:10 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Numbers get all squished Just A Stranger <forpeopleidontknow@gmail.com> - 2011-09-20 10:10 +0000
| From | Just A Stranger <forpeopleidontknow@gmail.com> |
|---|---|
| Date | 2011-09-20 10:10 +0000 |
| Subject | Numbers get all squished |
| Message-ID | <j59ora$p3$1@smc.vnet.net> |
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.
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web