{{=XML(make_html)}}
Anthony
On Wednesday, August 20, 2014 6:19:54 AM UTC-4, Stavros Anastasiadis wrote:
>
> I am trying to use mpld3 (http://mpld3.github.io/index.html) to generate
> an example plot with web2py.
>
> so far in my simple example:
>
> controller:
>
> def example_plot():
> import matplotlib.pyplot as plt, mpld3
> fig, ax = plt.subplots()
> plot = ax.plot([3,1,4,1,5], 'ks-', mec='w', mew=5, ms=20)
> make_html = mpld3.fig_to_html(fig, template_type = "general")
> return locals()
>
> view:
>
> {{=HTML(make_html)}}
>
>
> The code passed the generated html to my view but i get raw html.
> How i actually can render the make_html to a view?
> Any suggestions ?
>
>
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.