.. _pyXDSM_examples: 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: .. image:: images/mdf.png :scale: 30 More complicated example ------------------------ Here is an example that uses a whole bunch of the more advanced features in ``pyXDSM``. .. image:: images/kitchen_sink.png :scale: 30 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 `_. .. image:: images/matrix_eqn.png :scale: 15