hi all
I'm using matplotlib to render figures, but now I need some
interaction from the user

I try to follow the example in 
http://docs.turbogears.org/1.0/GenerateFigures#with-javascript-library-plotkit

application throws no errors or exceptions but nothing is rendered.
The example says you have to put ${ep.display()} to render the figure,
but nothing happens.  if I put in the template ${ep} it show me all
the data it has

EasyPlot(name='widget', id='diag', style='line', width='300',
height='300', data=[[[0, 0], [1, 2], [2, 3], [3, 7], [4, 8], [5, 6]],
[[0, 0], [1, 1], [2, 4], [3, 8], [4, 7], [5, 8]], [[0, 1], [1, 3], [2,
5], [3, 5], [4, 3], [5, 2]]], option={})

but if it invocate the display() method nothing happens

how can I debug this

thanks in advance

this is the controller:

@expose('mplibtest.templates.about')
    def view_results(self):
        setA = [[0,0], [1,2], [2,3], [3,7], [4,8], [5,6]]
        setB = [[0,0], [1,1], [2,4], [3,8], [4,7], [5,8]]
        setC = [[0,1], [1,3], [2,5], [3,5], [4,3], [5,2]]
        data = [setA, setB, setC]
        return dict(ep= EasyPlot(style="line", width="300",
height="300", id="diag", data=data))

and this is the template

....cut head to short.....
<body>
   <div id="diag">
      ${ep}
   </div>

</body>

I also try to put the  ${ep} directly in the body with the same result
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to