MathGroup Archive 2001

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

Search the Archive

Re: Control ListContourPlot and LabelContourLines

  • To: mathgroup at smc.vnet.net
  • Subject: [mg29263] Re: Control ListContourPlot and LabelContourLines
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Sat, 9 Jun 2001 03:08:51 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <9fq29p$qea$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

a) ContourShading options works for me, perhaps you may upgrade the
   packages from MathSource
b) for a integer number n of Contours, ContourPlot[]
   will use the Min[], Max[] values of the function
   and make steps between the minimum and maximim
   {f1,f2}={Min[#],Max[#]} & [Flatten[data]]
  
   and the option

   Contours->Table[ c,{c,f1,f2,1/100}]

   should create the contour lines with 1/100 spacing.

Regards
  Jens

maxao wrote:
> 
> Hi Experts,
> you helped me several times - probably this time again?!
> 
> I have a datafield like this...
> 
> data={{-11.2286, 27.7224, 0.413533}, {-9.21423, 27.7311, 0.277004},
> {-7.20075,
> 27.7403, 0.149311}, {-5.1894, 27.7498, 0.0657319}, {-3.17762, 27.7587,
> 0.0115927}, {-1.16134, 27.7667, 0.0151311}, {0.859138, 27.7738,
> 0.0573092}, {2.88128, 27.7799, 0.0460667}, {4.90098, 27.7845,
> 0.0114131},....}
> 
> With...
> Needs[''ExtendGraphics`Contour`''];
> Needs[''ExtendGraphics`LabelContour`''];
> ... I start the necessary packages to show the datafield as a ContourPlot.
> 
> The next command is:
> LabelContourLines[
> ListContourPlot[data,Contours -> 15,
> ContourStyle -> {{RGBColor[1, 0, 0]}, {RGBColor[0, 1, 0]}, {RGBColor[0,
> 0, 1]}, {RGBColor[1, 1, 0]}, {RGBColor[0, 1, 1]}, {RGBColor[1,
> 0, 1]}}, DisplayFunction -> Identity], LabelFont -> 12];
> 
> This gives me a ContourPlot of my datafield - that is o.k..
> 
> My questions are:
> - the option ContourShading doesn't? - Is this correct in this package?
> - Is there any other way but the option Contours to control the step of the ContourLines? The ContourLines should drawn e.g. in steps of 1/100. With the option Contours is this quiet difficult - I have no idea how the package calculates to draw the ContourLines and show their labels.
> 
> Perhaps anybody can help me. I hope my explanation of my problem is clearly explaned.
> 
> Thank you very much,
> 
> Martin
> 
> (maxao at aol.com or m-bissinger at freenet.de)


  • Prev by Date: Normal vector on a surface
  • Next by Date: Re: motion-path and spline-arc-length
  • Previous by thread: Control ListContourPlot and LabelContourLines
  • Next by thread: Regress, Eliminate Outliers, Regress