In case attachment is not available  here is the code:

http://pastebin.com/n06tT8Kc



On Tue, Feb 2, 2016 at 3:47 PM, <graph-tool-request@skewed.de> wrote:
Send graph-tool mailing list submissions to
        graph-tool@skewed.de

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.skewed.de/mailman/listinfo/graph-tool
or, via email, send a message with subject or body 'help' to
        graph-tool-request@skewed.de

You can reach the person managing the list at
        graph-tool-owner@skewed.de

When replying, please edit your Subject line so it is more specific
than "Re: Contents of graph-tool digest..."


Today's Topics:

   1. slow plot generation with mplfig (m jadidi)


----------------------------------------------------------------------

Message: 1
Date: Tue, 2 Feb 2016 15:46:55 +0100
From: m jadidi <mohsen.jadidi@gmail.com>
To: graph-tool@skewed.de
Subject: [graph-tool] slow plot generation with mplfig
Message-ID:
        <CAOfo52C-OUSeO=tFn6QXPnWa5tU2bu6mevVLes+c_FHdSO+0ew@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I am using graph-tool to generate an animation. For this I need to use
matplotlib because I should add some extra information to the plot. (see
the attachment). so I first generate a series of plots and then use ffmpeg
to generate my animation. The problem is when I use mplfig and savefig it
takes alot of time to generate my png files. When I simply use output
argument in graph_draw (that means no extra information, only nodes and
edges) it is fast. Is there any solution for this? you can find the
relevant parts of my code in the attachment.

best,
--
Mohsen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.skewed.de/pipermail/graph-tool/attachments/20160202/9ebb45f6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p7.png
Type: image/png
Size: 46183 bytes
Desc: not available
URL: <http://lists.skewed.de/pipermail/graph-tool/attachments/20160202/9ebb45f6/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python-script
Size: 1860 bytes
Desc: not available
URL: <http://lists.skewed.de/pipermail/graph-tool/attachments/20160202/9ebb45f6/attachment.bin>

------------------------------

Subject: Digest Footer

_______________________________________________
graph-tool mailing list
graph-tool@skewed.de
http://lists.skewed.de/mailman/listinfo/graph-tool


------------------------------

End of graph-tool Digest, Vol 97, Issue 2
*****************************************



--
Mohsen