Re: simple Question
- To: mathgroup at smc.vnet.net
- Subject: [mg99707] Re: simple Question
- From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
- Date: Mon, 11 May 2009 06:28:11 -0400 (EDT)
- References: <gu667g$9ud$1@smc.vnet.net>
Hi Oliver,
Various possibilities here:
If you just want to quickly know the maximum value shown in the plot
you may select the plot, press shift-period and move the cursor to the
highest point in your plot. The maximum will be in the tooltip.
Second possibility is to examine the graphics commands underlying the
plot. You can see them if you use FullForm. You have to delve deep for
the nested data you need, but you can get there. For example:
(Plot[Sin[x], {x, 0, Pi}] // FullForm)[[1, 1, 1, 3, 2, 1, All,
2]] // Max
Third possibility is to use MaxValue or Maximize on the function you
plotted using the plotrange as constraint:
MaxValue[{Sin[Cos[5 x]], 0 <= x <= 2 \[Pi]}, x]
Hope this helps.
Cheers -- Sjoerd
On May 10, 11:19 am, Oliver <sch_oliver2... at yahoo.de> wrote:
> Hallo,
> how can i read the max value in a plot in mathematica?
> thanks in advance..
> Oli.
- Follow-Ups:
- Re: Re: simple Question
- From: DrMajorBob <btreat1@austin.rr.com>
- Re: Re: simple Question