.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "_gallery/global_config/config_style2.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__gallery_global_config_config_style2.py: Very Compact Style ================== A style is a preset of configuration values. The very compact style hides the subplot toolbar and frame, useful for figures with many subplots. .. GENERATED FROM PYTHON SOURCE LINES 8-33 .. image-sg:: /_gallery/global_config/images/sphx_glr_config_style2_001.webp :alt: config style2 :srcset: /_gallery/global_config/images/sphx_glr_config_style2_001.webp :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none /home/runner/work/fastplotlib/fastplotlib/fastplotlib/graphics/features/_base.py:19: UserWarning: casting float64 array to float32 warn(f"casting {array.dtype} array to float32") | .. code-block:: Python # test_example = true import numpy as np import fastplotlib as fpl fpl.style.very_compact() xs = np.linspace(-10, 10, 100) ys = np.sin(xs) data = np.column_stack([xs, ys]) figure = fpl.Figure(shape=(2, 2), size=(700, 560)) for subplot in figure: subplot.add_line(data) figure.show() # NOTE: fpl.loop.run() should not be used for interactive sessions # See the "JupyterLab and IPython" section in the user guide if __name__ == "__main__": print(__doc__) fpl.loop.run() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.398 seconds) .. _sphx_glr_download__gallery_global_config_config_style2.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: config_style2.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: config_style2.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_