 
 
 
 
 
 
Re: What determines #1 and #2 values (with &) for
- To: mathgroup at smc.vnet.net
- Subject: [mg87320] Re: [mg87269] What determines #1 and #2 values (with &) for
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Mon, 7 Apr 2008 05:19:40 -0400 (EDT)
- Reply-to: hanlonr at cox.net
You are applying your function to the list of automatic labels. That list is of the form {{x1, y1, label1}, {x2, y2, label2}, ...}
Your function converts each of them to Text[label, {x, y}]; this is the same as would occur if you used ContourLabels -> Automatic
Bob Hanlon
---- mr.pajenn at gmail.com wrote: 
> Here's the example of a ContourPlot:
> 
> {i = 0, j = 0};
> 
> ContourPlot[{x == 4 + y/4, y == 2 + x/2}, {x, 0, 10}, {y, 0, 10},
>  ContourLabels -> (Text[#3, {val1[i += 1] = #1, val2[j += 1] = #2}]
> &)]
> 
> Print[{val1[1], val2[1], val1[2], val2[2]}]
> 
> The output is a basic plot with two lines, and I've set it to record
> and print the values of  #1 and #2 arguments, which are:
> val1[1] =  6.4857
> val2[1] = 9.9429
> val1[2] = 0.095238
> val2[2] = 2.0476
> 
> I'd like to know where those values came from so that I can apply the
> #1 and #2 arguments intelligibly.
> 
> Thanks in advance.
> 
> 

