Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

Re: ContourPlot Problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83112] Re: ContourPlot Problem
  • From: "Steve Luttrell" <steve at _removemefirst_luttrell.org.uk>
  • Date: Sun, 11 Nov 2007 03:00:48 -0500 (EST)
  • References: <fh3qip$l1$1@smc.vnet.net>

This function has a singularity (e.g. V[\[Beta],0,0] is Indeterminate) so 
Mathematica is removing it from the range of values that are plotted.

You can manually override this behaviour in various ways, such as

ContourPlot[V[0.9,x,z],{x,-L,L},{z,-L,L},Contours->cntrs,FrameLabel->{"x","z"},PlotRange->All]

which fills in some more contours for you, but of course still can't do the 
singularity itself.

-- 
Steve Luttrell
West Malvern, UK

"Kevin J. McCann" <Kevin.McCann at umbc.edu> wrote in message 
news:fh3qip$l1$1 at smc.vnet.net...
>I am having a problem with the following code and that is that not all
> of the contours are plotted.
>
> \[Beta]=.
> x=.
> z=.
> V[\[Beta]_,x_,z_]:=1/Sqrt[x^2+z^2]1/Sqrt[1-\[Beta]^2x^2/(x^2+z^2)]
> cntrs=Table[c,{c,0.05,5,0.05}];
> L=6;
>
>
> ContourPlot[V[0.9,x,z],{x,-L,L},{z,-L,L},Contours->cntrs,FrameLabel->{"x","z"}]
>
>
>
> In fact if I set the contours to lie between 4 and 5, say, then no
> contours are plotted. Che pasa?
>
> Kevin
> -- 
>
> Kevin J. McCann
> Research Associate Professor
> JCET/Physics
> Physics Building
> University of Maryland, Baltimore County
> 1000 Hilltop Circle
> Baltimore, MD 21250
> 



  • Prev by Date: Re: Optimizing fixed point iteration
  • Next by Date: Re: Editing one's own default StyleSheet?
  • Previous by thread: Re: ContourPlot Problem
  • Next by thread: Re: ContourPlot Problem