On 08/13/2011 01:11 PM, Vlastimil Brom wrote:
> Hi all,
> I'd like to ask a probably basic qustion about backends in matplotlib
> - specifically with regard to WXAgg and WX.
> What are the differences of the two, and what are the supposed
> usecases, and maybe restrictions for them?

http://matplotlib.sourceforge.net/faq/installing_faq.html#backends

WXAgg is WX for window and widgets, but with all figure rendering done 
using the Agg library to generate an image which is then displayed as 
such by WX.  There is the same sort of pair for gtk: gtkagg and plain 
gtk.  Only the *agg interactive backends are fully supported; it is 
expected that not everything will work with the non-agg interactive 
backends, and every now and then there is discussion of whether they 
should be eliminated for that reason.  Their only advantage, as far as I 
know, is that under some circumstances, such as working remotely with X 
on a slow link, the non-agg backends may be faster.

>
> Using matplotlib/pylab pylab in a rather basic way I encountered
> problems with both backends and would like to clarify the differences
> before i try to find a fix.
>
> using wxAgg I am not able to display unicode text (some accents,
> non-latin scripts etc. e.g. in pylab.title(...) and otherwhere .

This is surprising; in general, unicode works with the *agg backends.
Maybe plain WX is finding some fonts that WXAgg is not finding?

Eric

> Just changing:
> matplotlib.use('WXAgg')
> to
> matplotlib.use('WX')
> seemed to fix this, and the graph gui also looks more consistent with
> my wxPython app.
>
> However, using the current wxPython 2.9.2.1. (python 2.7.2, Win 7,
> Czech) I see a more serious bug in the wx-backend (basically failing
> to display the graph at all
> (cf. http://sourceforge.net/mailarchive/message.php?msg_id=27902016 ),
> which doesn't apply for WXAgg.
>
> Coud someone maybe provide some hints, where I should look into to
> understand the backend differences better?
>
> Thanks in advance,
>
> Regards,
>      Vlastimil Brom
>
> ------------------------------------------------------------------------------
> FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
> Subversion made easy with a complete admin console. Easy
> to use, easy to manage, easy to install, easy to extend.
> Get a Free download of the new open ALM Subversion platform now.
> http://p.sf.net/sfu/wandisco-dev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy 
to use, easy to manage, easy to install, easy to extend. 
Get a Free download of the new open ALM Subversion platform now.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to