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 of how something would normally work 
-- but obviously it will use a completely different set of API calls for 
WPF.  As you can see from that, though, if you use the Agg renderer 
matplotlib already uses and supports, the code just to get the image 
buffers to the screen probably won't need to be very long.

As a Windows refugee, and someone who's never used .net, I'm afraid I 
can't be of much more help.

Mike

V Srikanth wrote:
> 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.
>
> ------------------------------------------------------------------------
> Invite your mail contacts to join your friends list with Windows Live 
> Spaces. It's easy! Try it! 
> <http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us>
>  
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It is the best place to buy or sell services for
> just about anything Open Source.
> http://p.sf.net/sfu/Xq1LFB
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to