tmp_plot_probe_layout.py 796 B

1234567891011121314151617181920212223242526
  1. # -*- coding: utf-8 -*-
  2. """
  3. Alternating text and code
  4. =========================
  5. Sphinx-Gallery is capable of transforming Python files into rST files
  6. with a notebook structure. For this to be used you need to respect some syntax
  7. rules. This example demonstrates how to alternate text and code blocks and some
  8. edge cases. It was designed to be compared with the
  9. :download:`source Python script <plot_parse.py>`."""
  10. # %%
  11. # This is the first text block and directly follows the header docstring above.
  12. import numpy as np
  13. # %%
  14. # You can separate code blocks using either a single line of ``#``'s
  15. # (>=20 columns), ``#%%``, or ``# %%``. For consistency, it is recommend that
  16. # you use only one of the above three 'block splitter' options in your project.
  17. A = 1
  18. import matplotlib.pyplot as plt