MathGroup Archive 2007

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

Search the Archive

Re: ContourPlot Problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83106] Re: ContourPlot Problem
  • From: "Kevin J. McCann" <Kevin.McCann at umbc.edu>
  • Date: Sun, 11 Nov 2007 02:57:42 -0500 (EST)
  • References: <fh3qip$l1$1@smc.vnet.net> <47357A63.1040807@gmail.com>

Yes, but I actually want to specify the contours, and it won't do it.

Kevin

Jean-Marc Gulliet wrote:
> Kevin J. McCann wrote:
>
>> 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?
>
> Assuming I have correctly understood you, what you want is a hundred 
> equally-spaced contour lines to be displayed. The following expression 
> will do that:
>
> ContourPlot[V[0.9, x, z], {x, -L, L}, {z, -L, L}, Contours -> 100,
>  FrameLabel -> {"x", "z"}]
>
> Regards,

-- 


Kevin J. McCann
Research Associate Professor
JCET/Physics
University of Maryland, Baltimore County (UMBC)
1000 Hilltop Circle
Baltimore, MD 21250



  • Prev by Date: Re: AutoItalicWords
  • Next by Date: Re: Problem with Manipulate
  • Previous by thread: Re: ContourPlot Problem
  • Next by thread: Re: ContourPlot Problem