MathGroup Archive 2008

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

Search the Archive

Re: What determines #1 and #2 values (with &) for

  • To: mathgroup at smc.vnet.net
  • Subject: [mg87344] Re: What determines #1 and #2 values (with &) for
  • From: Simo.Kalla at gmail.com
  • Date: Tue, 8 Apr 2008 05:37:07 -0400 (EDT)
  • References: <ftcp2i$l08$1@smc.vnet.net>

Thanks, that much I already got. I want to know how the automatic list
values {x1,y1},... are generated so that I can adjust them
appropriately.

For example, the automatic label often puts the labels out of range,
so I might want to use {#1+2,#2-2} as my arguments, but to choose the
adjustments properly I first need to understand what values #1 and #2
will take.


On Apr 7, 5:21 am, Bob Hanlon <hanl... at cox.net> wrote:
> 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.paj... 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: question on player pro
  • Next by Date: Re: Printing Mathematica stuff via KPrinter
  • Previous by thread: Re: What determines #1 and #2 values (with &) for
  • Next by thread: Printing Mathematica stuff via KPrinter