On Tuesday 20 October 2009 12.53:23 Enrico wrote:
> with template like this
>
> <div id="matplot" style="width: 720px; height: 480px;">
> <img src="${tmpl_context.filename}" width="720" height="480" /> controller like this > > from sample_fig import fig #a matplot figure > @expose(content_type="image/png") > def mat_plot_str(self, fig=fig): ... > Now, how to make it show inside the same page? I honestly don't understand what your question is. Display the image on the same page as what? The image will always need to be delivered separately from the surrounding page, the Web just works like this. (I *think* there are some recent variations of packing up a html + associated resources in some kind of archive, but I'm not sure how far this is supported across browsers, and I don't think this is what you mean either. Just mentioning it to be sure.) cheers -- vbi > Thanks in advance > > --~--~---------~--~----~------------~-------~--~----~ > 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 > -~----------~----~----~----~------~----~------~--~--- > -- >>Apparently, Janet Jackson suffered a "wardrobe malfunction". > What was the malfunction? She seems to have suffered a loss of containment on the starboard nacelle. -- news.admin.net-abuse.email
signature.asc
Description: This is a digitally signed message part.

