bug fix on RStat.graphics()
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2049 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
7eddef0de8
commit
470be830d5
1 changed files with 7 additions and 6 deletions
|
@ -53,18 +53,19 @@ with_mode = RWrapper(rpy.with_mode)
|
||||||
#as_py = RWrapper(rpy.as_py)
|
#as_py = RWrapper(rpy.as_py)
|
||||||
|
|
||||||
|
|
||||||
class RStat(object):
|
|
||||||
|
|
||||||
def __init__(self, context, request):
|
|
||||||
self.context = context
|
|
||||||
self.request = request
|
|
||||||
|
|
||||||
def gdd(self, **kw):
|
def gdd(self, **kw):
|
||||||
r.library('GDD')
|
r.library('GDD')
|
||||||
filename = os.tempnam(None, 'rplot')
|
filename = os.tempnam(None, 'rplot')
|
||||||
robj = r.GDD(filename, type='jpg', **kw)
|
robj = r.GDD(filename, type='jpg', **kw)
|
||||||
return filename + '.jpg', robj
|
return filename + '.jpg', robj
|
||||||
|
|
||||||
|
|
||||||
|
class RStat(object):
|
||||||
|
|
||||||
|
def __init__(self, context, request):
|
||||||
|
self.context = context
|
||||||
|
self.request = request
|
||||||
|
|
||||||
def graphics(self, **kw):
|
def graphics(self, **kw):
|
||||||
request = self.request
|
request = self.request
|
||||||
context = self.context
|
context = self.context
|
||||||
|
|
Loading…
Add table
Reference in a new issue