MathGroup Archive 2010

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

Search the Archive

Re: Show a maximum curve in ListContourPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg108941] Re: Show a maximum curve in ListContourPlot
  • From: dh <dh at metrohm.com>
  • Date: Wed, 7 Apr 2010 07:27:09 -0400 (EDT)
  • References: <hphbn3$lit$1@smc.vnet.net>

On 07.04.2010 09:20, Iván Lazaro wrote:
> Dear all,
>
> I'm trying to make visible in a ListContourPlot for a function, a maximum
> value for it. The thing is that the Max of this function is very specific
> (Log[2]) and I need that my readers can follow the "movement" of this
> maximum, although i want them to have the rest of the contour. Is this
> possible within the ListContourPlot function? Or should I make this curve
> apart and then "paste it" in the contour?
>
>
> Thanks in advance, and please excuse my terrible English.
>
> Iv=E1n.
>
Hi Ivan,
if you know where the maximum is, you may mark it in the epilog like e.g.:

d = Flatten[Table[{x, y, Exp[-0.01 (x^2 + y^2)]}, {x, -10, 10}, {y,-10, 
10}],  1];
ListContourPlot[d, Epilog -> {Red, Circle[{0, 0}, .1]}]

If you do not know the location, draw a contour slightly below the max, 
like e.g.:
d = Flatten[
    Table[{x, y, Exp[-0.01 (x^2 + y^2)]}, {x, -10, 10}, {y, -10, 10}],
    1];
ListContourPlot[d, Contours -> {0.5, 0.6, 0.7, 0.8, 0.9, 0.999}]

cheers,Daniel

-- 

Daniel Huber
Metrohm Ltd.
Oberdorfstr. 68
CH-9100 Herisau
Tel. +41 71 353 8585, Fax +41 71 353 8907
E-Mail:<mailto:dh at metrohm.com>
Internet:<http://www.metrohm.com>



  • Prev by Date: Re: Collecting like terms after TrigReduce
  • Next by Date: Re: Pattern to match a list of non-negative integers
  • Previous by thread: Show a maximum curve in ListContourPlot
  • Next by thread: Re: Show a maximum curve in ListContourPlot