Prev: WCSTools - Display astronomical FITS files with coordinate grid
Next: adding graphics and calibration to plot3d
From: pippo p. on 24 Feb 2010 06:21 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 25 Feb 2010 01:50 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 25 Feb 2010 01:52 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 25 Feb 2010 01:52 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 25 Feb 2010 01:53
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.}} |