MathGroup Archive 2010

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

Search the Archive

Re: Re: detection of automatic range of plot?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg107771] Re: [mg107738] Re: detection of automatic range of plot?
  • From: DrMajorBob <btreat1 at austin.rr.com>
  • Date: Thu, 25 Feb 2010 17:36:25 -0500 (EST)
  • References: <hm3230$m99$1@smc.vnet.net> <201002250652.BAA20696@smc.vnet.net>
  • Reply-to: drmajorbob at yahoo.com

Or:

pl = Plot[BesselI[1, x], {x, 0, 5}];
PlotRange /. AbsoluteOptions@pl

{{0., 5.}, {0., 24.3356}}

Last@%

{0., 24.3356}

Bobby

On Thu, 25 Feb 2010 00:52:12 -0600, Peter Pein <petsie at dordos.net> wrote:

> 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
>


-- 
DrMajorBob at yahoo.com


  • Prev by Date: Re: Transition to Wolfram Workbench
  • Next by Date: Re: minimize's constraint
  • Previous by thread: Re: detection of automatic range of plot?
  • Next by thread: Re: detection of automatic range of plot?