.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/interactive_standard/S03_run_interactive_Mn_shallow.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_examples_interactive_standard_S03_run_interactive_Mn_shallow.py: ======================================================================== S03 - Mandelbrot power n explorer - Standard precision ======================================================================== This is a simple template to explore the power n > 2 Mandelbrot set with the GUI. Resolution limited to approx 1.e-13 due to double (float64) precision Reference: `fractalshades.models.Mandelbrot_N` .. GENERATED FROM PYTHON SOURCE LINES 14-43 .. image-sg:: /examples/interactive_standard/images/sphx_glr_S03_run_interactive_Mn_shallow_001.png :alt: S03 run interactive Mn shallow :srcset: /examples/interactive_standard/images/sphx_glr_S03_run_interactive_Mn_shallow_001.png :class: sphx-glr-single-img .. code-block:: default import os import fractalshades as fs import fractalshades.models as fsm import fractalshades.gui import fractalshades.gui.guitemplates import fractalshades.gui.guimodel def plot(plot_dir): """ Example interactive """ fractal = fsm.Mandelbrot_N(plot_dir, exponent=6) zooming = fs.gui.guitemplates.std_zooming(fractal) gui = fs.gui.guimodel.Fractal_GUI(zooming) gui.show() if __name__ == "__main__": # Some magic to get the directory for plotting: with a name that matches # the file or a temporary dir if we are building the documentation try: realpath = os.path.realpath(__file__) plot_dir = os.path.splitext(realpath)[0] plot(plot_dir) except NameError: import tempfile with tempfile.TemporaryDirectory() as plot_dir: fs.utils.exec_no_output(plot, plot_dir) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 3.340 seconds) .. _sphx_glr_download_examples_interactive_standard_S03_run_interactive_Mn_shallow.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: S03_run_interactive_Mn_shallow.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: S03_run_interactive_Mn_shallow.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_