Only adding the .png extention is not sufficient.
outputfile = os.path.join(request.folder,'static','mp1.png')
plt.savefig(outputfile,format='png')
Outfile from Matplotlib
Besides this issue; is using a temporarily file a mature solution or is
streaming preferrable?
Richard
Op 7-9-201
Anthony,
plt.savefig('c:\web2py\outputfile.png',format='png')
does me give an accessable png-file
Op 7-9-2011 22:20, Anthony schreef:
Have you confirmed that the file is actually getting saved in the
expected location? Are you able to run the matplotlib code and save
the file outside of w
Yes it does :)
Op 7 sep 2011, om 22:43 heeft Anthony het volgende geschreven:
> But does
> plt.savefig(os.path.join(request.folder,'static','mp1.png'),format='png')
> result in a file being saved in c:\web2py\applications\your_app\static\?
>
>
> On Wednesday, September 7, 2011 4:38:13 PM UTC
Looking closer an output window appears and the console gives errors on the
sequence of calling matplotlib.backends:
I'll check first.
Op 7 sep 2011, om 22:43 heeft Anthony het volgende geschreven:
> But does
> plt.savefig(os.path.join(request.folder,'static','mp1.png'),format='png')
> resu
7; in globals():}}
{{=message}}
#Events
#{{=db().select(db.Events.ALL)}}
Outfile from Matplotlib
{{else:}}
{{=BEATIFY(response.vars)}}
{{pass}}
{{block left_sidebar}}New Left Sidebar Content{{end}}
{{block right_sidebar}}New Right Sidebar Content{{end}}
Op 7-9-2011 23:35, Richard Dijkstra schreef:
L
ock left_sidebar}}New Left Sidebar Content{{end}}
{{block right_sidebar}}New Right Sidebar Content{{end}}
Op 7-9-2011 23:35, Richard Dijkstra schreef:
Looking closer an output window appears and the console gives
errors on the sequence of calling matplotlib.backends:
I'll chec
s.ALL)}}
Outfile from Matplotlib
{{else:}}
{{=BEATIFY(response.vars)}}
{{pass}}
{{block left_sidebar}}New Left Sidebar Content{{end}}
{{block right_sidebar}}New Right Sidebar Content{{end}}
Op 7-9-2011 23:35, Richard Dijkstra schreef:
Looking closer
eft_sidebar}}New Left Sidebar Content{{end}}
{{block right_sidebar}}New Right Sidebar Content{{end}}
Op 7-9-2011 23:35, Richard Dijkstra schreef:
Looking closer an output window appears and the console
gives errors on the sequence of calling matplotlib.backends:
I have checked pyjs, looks great. What can't you do with pyjs?
I want to make cockpit like application with tabs and embedded graphs. Must be
possible with pyjs. Do you agree?
regards, Richard
Op 10 sep 2011, om 22:22 heeft Carl het volgende geschreven:
> Have a look at pyjs.org
> It conver
That example and the info hierarchy and tabs example are the widgets we will be
using. Looks fine to us.
however I do not have a clear view on how pyjama is used within web2py. I have
looked at the pyjamas example http://www.web2py.com/appliances/default/show/45
but I can't figure out what is sp
writing web pages". That applications, thru ajax can communicate
> with your Web2py instance.
>
> On 11 September 2011 11:52, Richard Dijkstra
> wrote:
> That example and the info hierarchy and tabs example are the widgets we will
> be using. Looks fine to us.
> however I do
look at the examples
> folder of pyjamas for code that creates and manages UI.
>
> On 11 September 2011 12:39, Richard Dijkstra
> wrote:
> Carl,
>
> Thank for the conceptual advise.
> Besides the examples is also a tutorial for pyjama - web2py available.
>
&g
Anthony,
Do you (and Massimo, I belief you are working closely together) have experience
with Pyjama and web2py? I have only found a posting in 2009 when it all
started.
Richard D.
Op 11 sep 2011, om 13:50 heeft Richard Dijkstra het volgende geschreven:
> Carl,
>
> Thanx, we
Thanx, for the tip; we will update you on our progress.
Op 11 sep 2011, om 20:21 heeft Anthony het volgende geschreven:
> http://web2py.com/book/default/chapter/09#JSONRPC-and-Pyjamas
Hello all,
Ofcourse a lot of math and statistics can be done by Python. Adding R to
Python as a module through Rpy2 may make this complete. Is there any
experience using Rpy2 within Web2py?
Regards,
Richard
Richard,
Thanks. I have to figure out what this exact means because I am new to
Web2py.
Important is the graphics device you use, which one is that Agg, Cairo
or something else?
Richard
Op 23-8-2011 21:53, Richard Vézina schreef:
Hello Richard,
I think if I had to do what you want to do
Anthony, Richard,
Thank you for the feedback.
Getting the png file from the static area could be done, and how do I
get the dynamically create file in that static area?
What would the output path be in :
grdevices.png(file="/tmp/rweb2output.png" , width=512, height=512)
Richard
Op 24-8
Richard, Anthony,
You have sent me in the right direction; it works :)
Richard
Op 24-8-2011 18:09, Richard Vézina schreef:
Try this : URL('static','SUBFOLDER/FILENAME')
Richard
On Wed, Aug 24, 2011 at 11:55 AM, Richard Dijkstra
mailto:richard.dijks...@planet.nl>
18 matches
Mail list logo