matplotlib thread-safe?

Hi,

I want to use matplotlib to generate figures for dynamic website
using a threaded web server. Is matplotlib without any GUI
(i.e. only Agg background) thread-safe? Can multiple separate
threads generate figures sumultaneously without problem?

Thanks!
-the.11th