SourceForge logo
SourceForge logo
Menu

[matplotlib-devel] insert a matplotlib image in an html image element.

From: Cyril G. <cyr...@fr...> - 2006年01月24日 10:34:37
Hello,
My problem is the following : I would like to create an image using the 
matplolib facilities and then insert this image
in a <IMG SRC="*data*:*image*/???;base64 *.../> *element.
Then using Gecko (mozilla) and python + xpcom, I would try to interact 
with this image (zoom ...).
In order to succeed I feel I have to understand how a back-end is written.
It seems I have to start with the Figure class.
But then I can't find the image format, the way to return binary data or 
perhaps base64 data.
I don't want to save the figure in a file et then read it with <IMG 
SRC="theFile.png"/>.
The speed would be very low.
What is the process to add a new back-end ?
I wish the encode/decode base64 wil not take too much time for keeping 
the dynamism of gtk back-end (for instance).
What do you think about that ?
Thanks a lot,
Cyril.

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /