.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_example.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plot_example.py: Simple Example Plot. ==================== This is a basic example demonstrating sphinx-gallery functionality. It will be expanded with actual foamlib and OpenFOAM examples. .. GENERATED FROM PYTHON SOURCE LINES 8-12 .. code-block:: Python import matplotlib.pyplot as plt import numpy as np .. GENERATED FROM PYTHON SOURCE LINES 13-17 Generate sample data -------------------- Create some sample data for visualization. .. GENERATED FROM PYTHON SOURCE LINES 17-21 .. code-block:: Python x = np.linspace(0, 2 * np.pi, 100) y = np.sin(x) .. GENERATED FROM PYTHON SOURCE LINES 22-26 Create the plot --------------- Visualize the data using matplotlib. .. GENERATED FROM PYTHON SOURCE LINES 26-35 .. code-block:: Python plt.figure(figsize=(10, 6)) plt.plot(x, y, label="sin(x)") plt.xlabel("x") plt.ylabel("y") plt.title("Example Plot - Ready for foamlib Integration") plt.legend() plt.grid() plt.show() .. image-sg:: /auto_examples/images/sphx_glr_plot_example_001.png :alt: Example Plot - Ready for foamlib Integration :srcset: /auto_examples/images/sphx_glr_plot_example_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.081 seconds) .. _sphx_glr_download_auto_examples_plot_example.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_example.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_example.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_example.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_