Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #13082 > unrolled thread
| Started by | James Stein <james@stein.org> |
|---|---|
| First post | 2013-01-10 07:20 +0000 |
| Last post | 2013-01-10 07:20 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
ImageSize inconsistency: ListPlot vs DateListPlot James Stein <james@stein.org> - 2013-01-10 07:20 +0000
| From | James Stein <james@stein.org> |
|---|---|
| Date | 2013-01-10 07:20 +0000 |
| Subject | ImageSize inconsistency: ListPlot vs DateListPlot |
| Message-ID | <kclq40$9pm$1@smc.vnet.net> |
I have been puzzling over the interactions between ImageSize, Frame,
various paddings, etc., and found what appears as inconsistent
behavior of such options. Consider the 2x2 array of plots produced by
this code: (Mathematica v9 or v8)
Clear[f, i3, g, d3];
d3 = {{{2012, 1, 1}, 1}, {{2012, 2, 1}, 2}, {{2012, 3, 1}, 3}};
i3 = d3[[All, 2]];
Print["d3=", d3 // MatrixForm, " i3=", i3];
f[b_] := ListPlot[i3, Frame -> b] // Framed;
g[b_] := DateListPlot[d3, Frame -> b] // Framed;
{{f[True], f[False]}, {g[True], g[False]}}
Three of the four results are the same size; the lower right result is
smaller than the others:
It seems that applying a Frame, or not, does not change the size of a
plot produced by ListPlot, but does change the size of a plot produced
by DateListPlot.
I seek an explanation for this behavior.
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web