Welcome to Matplotlib Sphinx Theme's documentation!
===================================================

.. toctree::
   :maxdepth: 2
   :caption: Contents:

This is the official Sphinx theme for Matplotlib documentation.
It extends the ``pydata_sphinx_theme`` project https://pydata-sphinx-theme.readthedocs.io
but adds custom styling and a navigation bar.

Example plot
~~~~~~~~~~~~

.. plot::
    :include-source:
    :align: center

    import matplotlib.pyplot as plt
    import numpy as np
    np.random.seed(0)  # Define seed para consistência

    x = np.arange(0, 4, 0.05)
    y = np.sin(x * np.pi)

    fig, ax = plt.subplots(figsize=(4, 3), dpi=100, constrained_layout=True)
    ax.plot(x, y)
    ax.set_xlabel('t [s]')
    ax.set_ylabel('S [V]')
    ax.set_title('Sine wave')

.. plot::
    :include-source:
    :align: center

    import matplotlib.pyplot as plt
    import numpy as np
    np.random.seed(0)

    x = np.arange(0, 4, 0.05)

    fig, ax = plt.subplots(figsize=(4, 3), dpi=100, constrained_layout=True)
    ax.pcolormesh(x, x, np.random.randn(len(x)-1, len(x)-1))
    ax.set_xlabel('t [s]')
    ax.set_ylabel('S [V]')
    ax.set_title('Random Color Map')
