[web2py] matplotlib passing parameters from the view

2016-05-05 Thread Paolo Amboni
I'm trying to build a single function (in a controller) that generate different matplotlib graph.. So the function that generate the stream works fine: *def grafico*(title='title',xlab='x',ylab='y' data= ): fig=Figure() return stream.getvalue() the function that call the

[web2py] Matplotlib

2015-09-30 Thread Laurent Lc
I 'd like to view in a view this part of code : import datetime import matplotlib.pyplot as plt x = [datetime.date(2014, 1, 29), datetime.date(2014, 4, 15), datetime.date(2014, 3, 29)] y = [2, 4, 1] fig, ax = plt.subplots() ax.plot_date(x, y, markerfacecolor='CornflowerBlue', markeredgecolor='

[web2py] Matplotlib not loading on 2.12.3 while loading on 2.11.2

2015-09-07 Thread anonymous anonymous
I posted this question online and it seems that it would be useful to post it here. tl;dr: I found a work around by creating a symbolic link to matplotlib in the modules folder. http://stackoverflow.com/questions/32428845/why-does-matplotlib-not-work-on-a-digitalocean-vps-with-web2py I've got

Re: [web2py] Matplotlib webagg in web2py

2014-01-07 Thread Richard Vézina
Look more like a interactive Ipython and built-in webserver then something that could be integrated with web2py, but there is few detail about how it works so can say for sure... Richard On Tue, Jan 7, 2014 at 10:51 AM, ArtDijk wrote: > Hi, > I want to do data analysis in pandas and show resul

[web2py] Matplotlib webagg in web2py

2014-01-07 Thread ArtDijk
Hi, I want to do data analysis in pandas and show results via web2py to managers. Is it possible to use the new webagg from matplot lib in web2py ? http://matplotlib.org/users/whats_new.html?highlight=webagg#backends If the answer is yes can you show an example ? Thanks very much Art -- Resour

[web2py] matplotlib inserting my data

2013-05-12 Thread new2web2py
Hello all, im new to python and web2py. i have been trying to get matplotlib working in web2py and followed the example at http://www.web2pyslices.com/slice/show/1357/matplotlib-howto this is working but i dont know how to plug my data into it. return plot(data={'my plot':[(0,0),(1,1),(2,4),(3,9

[web2py] matplotlib + web2py question

2012-04-04 Thread dancer`
Hello, I'm on the newer end of programming, and web2py has been my first (and very happy) foray into web application development. I am developing an application to remotely control two spectrum analyzers (HP 3562A) in our lab to do swept sine and power spectra plots. The connection is made usin

[web2py] matplotlib plugin

2011-12-13 Thread andrej burja
using matplotlib plugin there http://web2py.com/plugins/static/web2py.plugin.matplotlib.w2p i get error RuntimeError: Failed to create /var/www/.matplotlib; consider setting MPLCONFIGDIR to a writable directory for matplotlib configuration data (it is on ubuntu+apache) (how) should i change the

Re: [web2py] matplotlib output

2011-09-07 Thread Richard Vézina
Look at the os.path.join() There is particularity regarding the OS you should taking in account when you want your command works everywhere... Look in the python doc about that. Richard On Wed, Sep 7, 2011 at 3:35 PM, Richard wrote: > Dear all, > > On the Mac it ran but on windows I can't get

[web2py] matplotlib output

2011-09-07 Thread Richard
Dear all, On the Mac it ran but on windows I can't get started and do not get an plot in an applications using: In Controllers/default def index(): import os import numpy as np import matplotlib import matplotlib.pyplot as plt matplotlib.use('Agg') x = np.arange(0, 5,

[web2py] matplotlib image map using web2py

2011-06-28 Thread G
Hello, I would like to make a clickable image map of a scatter plot in my web2py application. The scatter plot will be dynamically generated. I can use the technique that Massimo has shown many times to generate matplotlib plots in web2py. The trouble is that the technique relies on a controller th

[web2py] matplotlib vs mod_wsgi... again

2011-05-31 Thread Manuele Pesenti
Hi *, old question still without answer... installing plugin_matplotlib inside the welcome app under a web2py installation that runs under apache using mod_wsgi I still got this: AttributeError: 'module' object has no attribute 'cbook' but the solution to load matplotlib and matplotlib.cbook

[web2py:33069] Re: web2py + matplotlib, is there a how-to posted

2009-10-17 Thread stefaan
> Massimo, I've reviewed your slide presentation and have the following > comments (page numbers refer to pdf page numbers): > p. 4: bullets are dark gray on darker gray and are illegible (this > occurs in other slides as well) > p. 13: Field('seuqence') should be spelled Field('sequence') > p. 25

[web2py:32995] Re: web2py + matplotlib, is there a how-to posted

2009-10-16 Thread Vincent
; > > > You can find my slides and the code here: > > > >    http://web2py.com/examples/static/supercomputing2009.zip > > > > Massimo > > > > On Oct 14, 10:42 pm, Vincent wrote: > > > > > I have been reading a bit about matplotlib plots into a w

[web2py:32967] Re: web2py + matplotlib, is there a how-to posted

2009-10-15 Thread mdipierro
been reading a bit about matplotlib plots into a web page. > > > Mostly lots of googling and reading treads. My question is, Is there a > > > nice how-to posted somewhere for using web2py + matplotlib. > > > Same question for "PlotKitWrapper" Is there docum

[web2py:32964] Re: web2py + matplotlib, is there a how-to posted

2009-10-15 Thread weheh
the code here: > >    http://web2py.com/examples/static/supercomputing2009.zip > > Massimo > > On Oct 14, 10:42 pm, Vincent wrote: > > > > > I have been reading a bit about matplotlib plots into a web page. > > Mostly lots of googling and reading treads

[web2py:32938] Re: web2py + matplotlib, is there a how-to posted

2009-10-14 Thread mdipierro
y lots of googling and reading treads. My question is, Is there a > nice how-to posted somewhere for using web2py + matplotlib. > Same question for "PlotKitWrapper" Is there documentation? > > Thanks for your help > Vincent --~--~-~--~~~---~--~

[web2py:32933] web2py + matplotlib, is there a how-to posted

2009-10-14 Thread Vincent
I have been reading a bit about matplotlib plots into a web page. Mostly lots of googling and reading treads. My question is, Is there a nice how-to posted somewhere for using web2py + matplotlib. Same question for "PlotKitWrapper" Is there documentation? Thanks for your he