Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.
data = Reverse[Reverse /@ Partition[dem[[All, 1]], 121]];
ListContourPlot[GaussianFilter[data, 10], 
 Contours -> {1580, 1670, 1480, 1715}, ContourShading -> None, 
 ColorFunction -> "Pastel", 
 DataRange -> Transpose[dem[[{-1, 1}, {3, 2}]]]]

How to contour plot show value in graphic ? if value=1580 change 350 in show graphic.If value 1670 I want show this value show in picture 370. Thank you

share|improve this question
    
See the help for ContourLabels –  belisarius May 18 at 22:52
    
how to swap Contourlabels value change other value –  BatbuyanMGL May 19 at 6:40

1 Answer 1

up vote 2 down vote accepted

The following is for illustrative purposes. To relabel contours you could just define a function mapping contour value to label. For example:

ContourPlot[x^2 + y^2, {x, -10, 10}, {y, -10, 10}, Contours -> 3, 
 ContourLabels -> (Text[Framed[#3], {#1, #2}, Background -> White] &)]

enter image description here

Re-labeling (trivial function for convenience to illustrate):=

fun[x_] := x/10;
ContourPlot[x^2 + y^2, {x, -10, 10}, {y, -10, 10}, Contours -> 3, 
 ContourLabels -> (Text[Framed[fun@#3], {#1, #2}, 
     Background -> White] &)]

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.