logo4 Evolution is progress—                          
progress is creativity.        
vline

Venn Diagrams with Python Matplotlib and Django

view blog view wiki view wiki view wiki

Unfortunately there is no proper tool in python to visualize set operations and relations, neither in maplotlib nor in graphviz. The closest solution that I found was a Venn diagram library attaached to maplotlib.

The latest version can be downloaded here. There also sample examples can be found. These however don't work with a browser after some tiny changes I got it running in my web environment too.

The first example shows a fully customized diagram:

[Error: Macro 'mathplot' error: mathplot() got an unexpected keyword argument 'title']

The second example demonstrates subplots:

[Error: Macro 'mathplot' error: mathplot() got an unexpected keyword argument 'title']

Overlapping between the three sets is demonstrated in this last example:

[Error: Macro 'mathplot' error: mathplot() got an unexpected keyword argument 'title']

My intention was to use these diagrams to visualize set operations and set relations, such as

[Error: Macro 'me' doesn't exist] [Error: Macro 'mathplot' error: mathplot() got an unexpected keyword argument 'title']

Basic set operations are shown on a separate page.

Unfortunately the implementation of Venn diagram is merely basic, for instance such complex operations cannot be visualized.

[Error: Macro 'me' doesn't exist]

and

[Error: Macro 'me' doesn't exist]

Tags: Software


Categories: Mathematics Software

 
   

(c) Mato Nagel, Weißwasser 2004-2024, Disclaimer