Dr. Hans Georg Krauthaeuser wrote:
Lauri Ojansivu wrote:
Hi,
well, it depends which way you want to do it. Paul and Ed can tell current 
status of graphs
in Dabo, but here's some possibilities:

1) Matplotlib can save as SVG, and you could try to convert it to Reportlab 
drawing object code with
svglib:
http://starship.python.net/~gherman/svglib.html
- but how that would show itself in dabo? Paul, Ed? I have not investigated 
this.

2) Make graph features of ReportLab available in Dabo.

3) Go the PyRTF route, so generate charts in EMF vector format and embed EMF 
images
RTF document, and include EMF company logos made with OpenOffice Draw to it

Thank you very much for your answers.

Actually, I'm looking for a possibility of direct embedding. I'm working
on a application that imports a data structure from a pickle file,
allows the user to manipulate the data, put the results in a table,
export that table, ... An additional step would be to *plot* that data.
I thought it would be possible with matplotlib because matplotlib can be
embedded easily in wx
(http://www.scipy.org/Cookbook/Matplotlib/EmbeddingInWx). But I didn't
manage to transcribe even the simplest example to dabo instead of (pure) wx.

I guess a working example would be very nice for other people also
(maybe something for the wiki!).

I'm sorry I've been so silent on this topic, but it is just out of the realm of my experience and I don't have the time resources right now to investigate. What I can impress upon you is that all Dabo UI classes are mix-ins to the wx classes, and you have full access to wxPython from within Dabo. So, if there's a documented way to draw a matplotlib plot to a wx.Panel, it should work out of the box on a dabo.ui.dPanel. Obviously, this violates the pureness of using straight Dabo but sometimes practicality beats purity. It would be very practical to do this with the tools at hand, as that would suggest the correct approach to wrapping this all up in Dabo someday, if that is deemed appropriate by the users.

Yes, please document on the Wiki what you do, so future users may benefit! :)

--
Paul McNett
http://paulmcnett.com
http://dabodev.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to