On Thu, 27 Mar 2008, Alan G Isaac wrote:

> You can generate the data however you wish. Or just provide your functions
> or wrappers to them (using graph.data.function).

Alan,

   I think that what I want is graph.data.function(). The syntax needs to be
validated. For example, in the calling module I would have this:

     if plotting:
       if row[4] == 'Decay S-Curve':
         gdS = graph.data.function(" ",
                        context={"Functions.zCurve(row[10],row[9])":
                                  Functions.zCurve(row[10],row[9])})
       elif row[4] == 'Bell Curve':
         gB = graph.data.functin(" ",
                        context={"functions.gaussCurverow([13],row[14])":
                                         functions.gaussCurve}(row[13],row[14)])


where functions.zCurve is defined as:

   def zCurve(left, right):
     leftend = left
     rightend = right
     midpt = rightend/2.0
     tau = 5.0

     x = nx.arange(leftend, rightend, 0.1)
     Z = 1.0-boltzman(x, midpt, tau)

     return (x,Z)

and functions.gaussCurve() is defined as:

   def gaussCurve(midpt, width):
     center = midpt
     fwhm = width

     x = nx.arange(0, 100, 0.1)
     G = gauss1d(x, fwhm, center)

     return (x,G)

   If these are correct, then I need to work out how to feed the appropriate
results to g.plot() and where the axes, parter, texter, etc. are to be
defined.

Rich

-- 
Richard B. Shepard, Ph.D.               |  Integrity            Credibility
Applied Ecosystem Services, Inc.        |            Innovation
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to