From: pippo p. on
when you plot an unlimited function, mathematica chooses the vertical
range's limits. could i detect which are the limits chosen by
mathematica to use them? thanks
giuseppe

From: Patrick Scheibe on
Hi,

I don't whether this works in all cases but you could extract the
PlotRange from the plot and get your limits:

gr = Plot[Log[x], {x, 0, 3}];
PlotRange /. Flatten[Cases[gr, _?OptionQ]]

Cheers
Patrick

On Wed, 2010-02-24 at 06:20 -0500, pippo p. wrote:
> when you plot an unlimited function, mathematica chooses the vertical
> range's limits. could i detect which are the limits chosen by
> mathematica to use them? thanks
> giuseppe
>


From: Peter Pein on
Am 24.02.2010 12:21, schrieb pippo p.:
> when you plot an unlimited function, mathematica chooses the vertical
> range's limits. could i detect which are the limits chosen by
> mathematica to use them? thanks
> giuseppe
>

AbsoluteOptions is your friend:

In[1]:= pl=Plot[BesselI[1,x],{x,0,5}];
In[2]:=
Cases[AbsoluteOptions[pl],HoldPattern[PlotRange->pr_]:>pr[[2]],1,1][[1]]
Out[2]= {0.,24.3356}

Peter

From: Mike Bryniarski on
This is the one time AbsoluteOptions has worked for me.
here is an example
AbsoluteOptions[Plot[Tan[x], {x, 0, 5}], PlotRange]

-mike bryniarski


On Feb 24, 6:21 am, "pippo p." <spaz...(a)gmail.com> wrote:
> when you plot an unlimited function, mathematica chooses the vertical
> range's limits. could i detect which are the limits chosen by
> mathematica to use them? thanks
> giuseppe


From: Bill Rowe on
On 2/24/10 at 6:20 AM, spazio1(a)gmail.com (pippo p.) wrote:

>when you plot an unlimited function, mathematica chooses the
>vertical range's limits. could i detect which are the limits chosen
>by mathematica to use them?

Yes. For example:

In[1]:= f = Plot[x^2, {x, 0, 10}]

In[2]:= PlotRange /. FullOptions[f]

Out[2]= {{0., 10.}, {0., 100.}}