Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

Re: How to color countours in a contour Plot?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg32797] Re: How to color countours in a contour Plot?
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 12 Feb 2002 06:23:51 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <a42tuj$g2k$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

cntr = Graphics[
    ContourPlot[Sin[x*y], {x, -Pi, Pi}, {y, -Pi, Pi}, PlotPoints -> 32, 
      ColorFunction -> Hue]]

Show[cntr /. _Polygon -> Sequence[] /. {_GrayLevel, _, l_Line} :> {l}];

Regards
  Jens


AGUIRRE ESTIBALEZ Julian wrote:
> 
> I want to color the contour lines in a contour plot according to the
> corresponding value over a white background (i.e., using ContourShading ->
> False). Is there a package like ExtendGraphics`LabelContour` which does
> this, or can someone offer a solution?
> 
> Thanksou in advance.
> 
> Julian Aguirre                  | Voice:  +34 946012659
> Departamento de Matematicas     | Fax:    +34 944648500
> Universidad del Pais Vasco      | Postal: Aptdo. 644, 48080 Bilbao, Spain
>                                 | email:  mtpagesj at lg.ehu.es


  • Prev by Date: Re: Add a line to the top of a comma delimited file?
  • Next by Date: Re: Matrices
  • Previous by thread: Re: How to color countours in a contour Plot?
  • Next by thread: Re: How to color countours in a contour Plot?