From: telefunkenvf14 on
Group:

This is driving me nuts. I recall using ContourPlot a while back and
finding an option to eliminate the 'padding' around the plot (i.e.,
between the plot and the frame), but can't find my previous work.
Grrr...

Does anyone know what option I'm thinking of? (And do you know if it
will also work for DateListPlot?)

-RG

From: David Park on
PlotRangePadding


David Park
djmpark(a)comcast.net
http://home.comcast.net/~djmpark/


From: telefunkenvf14 [mailto:rgorka(a)gmail.com]

Group:

This is driving me nuts. I recall using ContourPlot a while back and
finding an option to eliminate the 'padding' around the plot (i.e.,
between the plot and the frame), but can't find my previous work.
Grrr...

Does anyone know what option I'm thinking of? (And do you know if it
will also work for DateListPlot?)

-RG



From: Patrick Scheibe on
Hi,

you mean PlotRangePadding

data = FinancialData["GE", {2000, 1, 1}];
DateListPlot[data, Joined -> True, Filling -> Bottom,
PlotRangePadding -> None]

Cheers
Patrick

On Fri, 2010-06-04 at 08:01 -0400, telefunkenvf14 wrote:
> Group:
>
> This is driving me nuts. I recall using ContourPlot a while back and
> finding an option to eliminate the 'padding' around the plot (i.e.,
> between the plot and the frame), but can't find my previous work.
> Grrr...
>
> Does anyone know what option I'm thinking of? (And do you know if it
> will also work for DateListPlot?)
>
> -RG
>


From: telefunkenvf14 on
On Jun 4, 7:45 am, "David Park" <djmp...(a)comcast.net> wrote:
> PlotRangePadding
>
> David Park
> djmp...(a)comcast.nethttp://home.comcast.net/~djmpark/
>
> From: telefunkenvf14 [mailto:rgo...(a)gmail.com]
>
> Group:
>
> This is driving me nuts. I recall using ContourPlot a while back and
> finding an option to eliminate the 'padding' around the plot (i.e.,
> between the plot and the frame), but can't find my previous work.
> Grrr...
>
> Does anyone know what option I'm thinking of? (And do you know if it
> will also work for DateListPlot?)
>
> -RG

Thanks to David and Patrick, that did the trick. :)

Chris also replied with the following (alternate) solution, leading to
yet another question:

DateListPlot[FinancialData["BP.L", "Jan. 1, 2003"], Joined -> True,
PlotLabel -> "BP (BP.L)",
PlotRange -> {{AbsoluteTime[{2003, 1, 1}], Automatic}, {0,
Automatic}},
ImageSize -> 700, Filling -> Bottom]

Can someone explain why DateListPlot would be set up to behave like
this? I mean, after having already given an explicit list of plot
points and exact dates (in the problem I was working on), this
behavior seems somewhat redundant.

-RG