Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11498 > unrolled thread

ContourPlot non rectangular evaluation?

Started bySam McDermott <samwell187@gmail.com>
First post2012-08-25 08:34 +0000
Last post2012-08-26 06:49 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  ContourPlot non rectangular evaluation? Sam McDermott <samwell187@gmail.com> - 2012-08-25 08:34 +0000
    Re: ContourPlot non rectangular evaluation? psycho_dad <s.nesseris@gmail.com> - 2012-08-26 06:49 +0000

#11498 — ContourPlot non rectangular evaluation?

FromSam McDermott <samwell187@gmail.com>
Date2012-08-25 08:34 +0000
SubjectContourPlot non rectangular evaluation?
Message-ID<k1a2n7$igj$1@smc.vnet.net>
Hi,

I'd like to make a plot of level curves of a function, but this function becomes singular and passes from infinity to negative infinity, which really uglifies the plot. It is easy for me to identify where the function becomes singular (i.e., when the denominator becomes 0!), but I'm having trouble telling Mathematica to stop evaluating before then, because this singularity is sensitive to both of the variables on the axes of my ContourPlot. Is there a simple way of telling Mathematica where to stop?

In other words,  I have some function

h[x_,y_]:=f[x,y]/g[x,y]

and I can numerically find the zeroes of g[x,y]. Can I make a ContourPlot such that

ContourPlot[h[x,y],{x,xmin,xmax},{y,ymin,ymax}]

does not evaluate below the curve

g[x,y]=0

?

I think I'm basically looking for some way of setting assumptions of evaluating an "If" conditional inside of ContourPlot but can't find a good way of doing it. Any help would be much appreciated!

Thanks very much for your time!

-Sam

[toc] | [next] | [standalone]


#11499

Frompsycho_dad <s.nesseris@gmail.com>
Date2012-08-26 06:49 +0000
Message-ID<k1cgul$mue$1@smc.vnet.net>
In reply to#11498
Hi,
Check the documentation for RegionFunction (it has an example on how to use it with ContourPlot). If I understood what you want, this would help ;)

Cheers

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web