Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to render matplotlib window in template page(html page) in plone

I want to know how to render matplotlib window into template page in plone. Somebody explained me to render matplotlib window as image in plone site using the syntax which I mentioned below.

 <metal:main fill-slot="main">
     <div class="matplotwindow">
         <img src="" tal:attributes="src python:context.absolute_url()+'/@@classname'">
     </div>
 </metal:main>

But I need to know, is it possible to render matplotlib window into template page(html page). If anybody have an idea regarding this, please help me to do this and all.

like image 663
Python Team Avatar asked May 22 '14 06:05

Python Team


1 Answers

If you want interactivity, the simplest way is probably to integrate using a service like plot.ly

Another option could be to use Vincent to generate a JSON file that is compatible with a D3.js visualization grammar called vega or to directly output your data using the vega grammar.

like image 104
legaultmarc Avatar answered Nov 15 '22 10:11

legaultmarc