On Jun 7, 7:08 am, Rolf <[email protected]> wrote:
> Problem solved!
>
> The simple '._sage_()' does the trick. It converts data from R into
> something that can be handled by Python or Sage.

Glad you found a solution!

> def ndistribpts(x): return (x,r.dnorm(x,mean=100,sd=25)._sage_())
> def cube(x): return (x,x*x*x)
> v=map(ndistribpts,range(98,103))
> scatter_plot(v)
>
> Works though I'm still far from a pretty curve, but we are improving
> rapidly.
>

Does this give you what you are looking for?  I don't know that you
will get a pretty curve with only a few points, of course, so I
broadened the range.


sage: v=map(ndistribpts,range(50,151))
sage: line(v,ymin=0,ymax=.02)

The command 'points' might also give what you want, without connecting
the points.

- kcrisman

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to