[Date Index]
[Thread Index]
[Author Index]
Re: What determines #1 and #2 values (with &) for ContourLabels?
*To*: mathgroup at smc.vnet.net
*Subject*: [mg87311] Re: What determines #1 and #2 values (with &) for ContourLabels?
*From*: dh <dh at metrohm.ch>
*Date*: Mon, 7 Apr 2008 05:17:59 -0400 (EDT)
*References*: <fta9i4$e62$1@smc.vnet.net>
Hi,
the manual says: ContourLabels->f specifies that the label for each
contour should be f[x,y,z]. But I could nowhere find the meaning of
x,y,z. By trying I found that x and y are the coordinates of the
position where ContourPlot would like to place the label. And z is
either the equation given to ContourPlot or the value of the contour
line if a function is spezified.
hope this helps, Daniel
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.
>
>
Prev by Date:
**Re: A problem with solving some nonlinear system**
Next by Date:
**Re: Interpretation with If**
Previous by thread:
**Re: What determines #1 and #2 values (with &) for ContourLabels?**
Next by thread:
**Re: What determines #1 and #2 values (with &) for ContourLabels?**
| |