The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: ImageSize inconsistency: ListPlot vs DateListPlot
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
James Stein

Posts: 12
Registered: 8/12/10
ImageSize inconsistency: ListPlot vs DateListPlot
Posted: Jan 10, 2013 2:20 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.