Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.07 KB

examples.rst

File metadata and controls

37 lines (23 loc) · 1.07 KB

Examples

Here is a simple example. There are some other more advanced things you can do as well. Check out the examples folder for more complex scripts.

.. literalinclude:: ../examples/mdf.py


This will output mdf.tex, a standalone tex document that (by default) is also compiled to mdf.pdf, shown below:

images/mdf.png

More complicated example

Here is an example that uses a whole bunch of the more advanced features in pyXDSM.

images/kitchen_sink.png

It is mostly just a reference for all the customizations you can do. The code for this diagram is provided here

Block matrix equation

pyXDSM can also generate a figure of a block matrix equation. An example script is available here.

images/matrix_eqn.png