## Re: [PyX-user] Multiple Curves Per Plot, Different Modules

 Re: [PyX-user] Multiple Curves Per Plot, Different Modules From: Rich Shepard - 2008-03-27 16:56:56 ```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 ; Voice: 503-667-4517 Fax: 503-667-8863 ```