Blockplotlib
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.
Examples
How to draw a simple control loop is illustrated with the
example blockplotlib/examples/control_loop_one_dof.py.
A more complex example is the block diagram of the
so-called hyperbolic observer canonical form:
blockplotlib/examples/hyperbolic_ocf.py
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/.
Installation
One way to use blockplotlib is to install it via
pip (pip install blockplotlib).
Another way to use it is to copy the file blockplotlib.py in the folder
of the Python script from which it is to be imported.
Release files for blockplotlib 2023.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| blockplotlib-2023.1.4.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| blockplotlib-2023.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.8 kB
Release files / blockplotlib-2023.1.4.tar.gz
| Download URL | blockplotlib-2023.1.4.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80de3e6ec8ece07221bd39cbf308d47ad2166add91cc0c9acf2a613bf4e4ad74
|
|
BLAKE2b-256 checksum How to use checksums |
2fb93b1d4ff1b68b72d5574ccbdf450ef81d2f18e52eb3888ee4dd09553fc057
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Release files / blockplotlib-2023.1.4-py3-none-any.whl
| Download URL | blockplotlib-2023.1.4-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
74b6c7ac9d607c3a096145d81396cacc279537ba641b18b6098f2d6b84199bfb
|
|
BLAKE2b-256 checksum How to use checksums |
c6a04a1a5279585206602febf8c79b9fd0a6371e8a66c3c2d6f20d4e664be5c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|