MathGroup Archive 2013

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

Search the Archive

ImageSize inconsistency: ListPlot vs DateListPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg129388] ImageSize inconsistency: ListPlot vs DateListPlot
  • From: James Stein <james at stein.org>
  • Date: Thu, 10 Jan 2013 02:22:54 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@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.



  • Prev by Date: Manipulate: Tracking symbols which are not stated explicitly
  • Next by Date: Re: How get Alt+Click to work in Mathematica in OS X?
  • Previous by thread: Re: Manipulate: Tracking symbols which are not stated explicitly
  • Next by thread: Problem with 2GByte file size limit