Skip to main content

Matplotlib-based library for the creation of block diagrams

Project description

name name


Matplotlib-based library for the creation of block diagrams. Besides this core functionality, blockplotlib provides a workflow to include all kinds of matplotlib figures with the correct font size into latex documents. While latex is also often used to render text inside figures/block diagrams, blockplotlib (as matplotlib) depends not on latex.

The functionality of the library is limited to the features demonstrated in the examples but can be extended quite easily.


How to draw a simple control loop is illustrated with the example blockplotlib/examples/


A more complex example is the block diagram of the so-called hyperbolic observer canonical form: blockplotlib/examples/


The inclusion of matplotlib figures with the correct font size into a latex document can be adapted from the example under blockplotlib/examples/tex_article. It basically relies on two measurements of the height of a string. One measurement is performed in the latex preamble and the other one in the respective matplotlib figure using a blockplotlib function.

More examples can be found under blockplotlib/examples/.


One way to use blockplotlib is to install it via pip (pip install blockplotlib). Another way to use it is to copy the file in the folder of the Python script from which it is to be imported.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blockplotlib-2023.1.4.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

blockplotlib-2023.1.4-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page