Re: [Matplotlib-users] Matplotlib and WPF

2009-01-08 Thread Michael Droettboom
Again, I know little about the current state of Windows-land, but I can explain how the other backends have played out, and I assume the basics are the same. You have basically two choices -- a) write a backend that converts all the matplotlib drawing calls to WPF gc calls or b) write a backend

Re: [Matplotlib-users] Matplotlib and WPF

2009-01-08 Thread V Srikanth
Looks like I am not making much progress. I have no problems using IronPython - this is a C# application running on Vista, so it is platform dependent. I also realized that any Windows Forms control can be used in WPF, so if any one knows how to integrate matplotlib with Windows Forms, please t

Re: [Matplotlib-users] Matplotlib and WPF

2009-01-06 Thread Michael Droettboom
I'm not aware of anyone having done this. It may require a small bit of C/C# extension code to transfer the image to the WPF window buffer (assuming you're not running IronPython and can access the necessary APIs directly from Python). You can look at the _tkagg.cpp extension for an example o

[Matplotlib-users] Matplotlib and WPF

2009-01-06 Thread V Srikanth
I have (what I thought was ) a simple question: How do I display a matplotlib plot on WPF (running a C# application)? I want to be able to do some animation eventually, so exporting to png etc. is not an option. I did a lot of googling but got nowhere. Any help is greatly appreciated. ___