Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Oct 9, 2024
1 parent f779d7a commit d643d63
Show file tree
Hide file tree
Showing 243 changed files with 25,522 additions and 24,040 deletions.
2 changes: 1 addition & 1 deletion stable/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 63552a5fbbc64d54078287496130f611
config: e0e45be96f2de298aa16b1c5824ad9be
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified stable/.doctrees/auto_examples/index.doctree
Binary file not shown.
Binary file modified stable/.doctrees/auto_examples/no_output/plot_raise.doctree
Binary file not shown.
Binary file not shown.
Binary file modified stable/.doctrees/auto_examples/no_output/plot_strings.doctree
Binary file not shown.
Binary file not shown.
Binary file modified stable/.doctrees/auto_examples/plot_0_sin.doctree
Binary file not shown.
Binary file modified stable/.doctrees/auto_examples/plot_1_exp.doctree
Binary file not shown.
Binary file modified stable/.doctrees/auto_examples/plot_2_seaborn.doctree
Binary file not shown.
Binary file modified stable/.doctrees/auto_examples/plot_3_capture_repr.doctree
Binary file not shown.
Binary file modified stable/.doctrees/auto_examples/plot_4_choose_thumbnail.doctree
Binary file not shown.
Binary file modified stable/.doctrees/auto_examples/plot_4b_provide_thumbnail.doctree
Binary file not shown.
Binary file modified stable/.doctrees/auto_examples/plot_5_unicode_everywhere.doctree
Binary file not shown.
Binary file not shown.
Binary file modified stable/.doctrees/auto_examples/plot_7_sys_argv.doctree
Binary file not shown.
Binary file modified stable/.doctrees/auto_examples/plot_8_animations.doctree
Binary file not shown.
Binary file not shown.
Binary file modified stable/.doctrees/auto_examples/sg_execution_times.doctree
Binary file not shown.
Binary file modified stable/.doctrees/auto_plotly_examples/plot_0_plotly.doctree
Binary file not shown.
Binary file modified stable/.doctrees/auto_plotly_examples/sg_execution_times.doctree
Binary file not shown.
Binary file modified stable/.doctrees/auto_pyvista_examples/plot_collisions.doctree
Binary file not shown.
Binary file modified stable/.doctrees/auto_pyvista_examples/plot_glyphs.doctree
Binary file not shown.
Binary file modified stable/.doctrees/auto_pyvista_examples/plot_lighting.doctree
Binary file not shown.
Binary file modified stable/.doctrees/auto_pyvista_examples/plot_ray_trace.doctree
Binary file not shown.
Binary file not shown.
Binary file modified stable/.doctrees/changes.doctree
Binary file not shown.
Binary file modified stable/.doctrees/configuration.doctree
Binary file not shown.
Binary file modified stable/.doctrees/environment.pickle
Binary file not shown.
Binary file modified stable/.doctrees/gen_modules/sphinx_gallery.gen_gallery.doctree
Binary file not shown.
Binary file modified stable/.doctrees/sg_api_usage.doctree
Binary file not shown.
Binary file modified stable/.doctrees/sg_execution_times.doctree
Binary file not shown.
Binary file modified stable/.doctrees/tutorials/plot_parse.doctree
Binary file not shown.
Binary file modified stable/.doctrees/tutorials/sg_execution_times.doctree
Binary file not shown.
Binary file modified stable/_downloads/00daf83b9c0084a7519e129f65e4ff07/just_code.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"\n# Plotting the exponential function\n\nThis example demonstrates how to import a local module and how images are\nstacked when two plots are created in one code block. The variable ``N`` from\nthe example 'Local module' (file ``local_module.py``) is imported in the code\nbelow. Further, note that when there is only one code block in an example, the\noutput appears before the code block.\n"
"\n# Plotting the exponential function\n\nThis example demonstrates how to import a local module and how images are stacked when\ntwo plots are created in one code block (see the :doc:`plot_9_multi_image_separate`\nexample for information on controlling this behaviour). The variable ``N`` from the\nexample 'Local module' (file ``local_module.py``) is imported in the code below.\nFurther, note that when there is only one code block in an example, the output appears\nbefore the code block.\n"
]
},
{
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
11 changes: 6 additions & 5 deletions stable/_downloads/83f8f58e18314d50c996af36cd4c7e70/plot_1_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
Plotting the exponential function
=================================
This example demonstrates how to import a local module and how images are
stacked when two plots are created in one code block. The variable ``N`` from
the example 'Local module' (file ``local_module.py``) is imported in the code
below. Further, note that when there is only one code block in an example, the
output appears before the code block.
This example demonstrates how to import a local module and how images are stacked when
two plots are created in one code block (see the :doc:`plot_9_multi_image_separate`
example for information on controlling this behaviour). The variable ``N`` from the
example 'Local module' (file ``local_module.py``) is imported in the code below.
Further, note that when there is only one code block in an example, the output appears
before the code block.
"""

# Code source: Óscar Nájera
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n# Force plots to be displayed on separate lines\nThis example demonstrates how the visualisation of multiple plots produced from a single\ncode block can be controlled. The default behaviour is to stack plots side-by-side,\nhowever this can be overridden to display each plot created by the code block on a\nseparate line, preserving their size.\n\nThere are two config options to control this behaviour:\n\n- a file-wide ``sphinx_gallery_multi_image`` variable\n- a code block-specific ``sphinx_gallery_multi_image_block`` variable\n\nSetting these variables to ``\"single\"`` will force plots to be displayed on separate\nlines. Default behaviour is to treat these variables as being set to ``\"multi\"``.\n\nBelow we demonstrate how the file-wide ``sphinx_gallery_multi_image`` variable can be\nused to display plots on separate lines.\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"# Code source: Thomas S. Binns\n# License: BSD 3 clause\n\n# sphinx_gallery_multi_image = \"single\"\n\nimport matplotlib.pyplot as plt\nimport numpy as np"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"# Plots will be shown on separate lines\n\nfig, ax = plt.subplots(1, 1, figsize=(8, 4))\nax.pcolormesh(np.random.randn(100, 100))\n\nfig, ax = plt.subplots(1, 1, figsize=(8, 4))\nax.pcolormesh(np.random.randn(100, 100))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Now, we show how the ``sphinx_gallery_multi_image_block`` variable can be used to\ncontrol the behaviour for a specific code block, here reverting to the default\nbehaviour of stacking plots side-by-side.\n\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"# sphinx_gallery_multi_image_block = \"multi\"\n# \u2191\u2191\u2191 Return to default behaviour for just this cell\n\nfig, ax = plt.subplots(1, 1, figsize=(8, 4))\nax.pcolormesh(np.random.randn(100, 100))\n\nfig, ax = plt.subplots(1, 1, figsize=(8, 4))\nax.pcolormesh(np.random.randn(100, 100))"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Binary file not shown.
Binary file not shown.
Binary file modified stable/_downloads/d2c53b4982f2d0b50c57c935c48be56e/plot_1_exp.zip
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
"""
Force plots to be displayed on separate lines
=============================================
This example demonstrates how the visualisation of multiple plots produced from a single
code block can be controlled. The default behaviour is to stack plots side-by-side,
however this can be overridden to display each plot created by the code block on a
separate line, preserving their size.
There are two config options to control this behaviour:
- a file-wide ``sphinx_gallery_multi_image`` variable
- a code block-specific ``sphinx_gallery_multi_image_block`` variable
Setting these variables to ``"single"`` will force plots to be displayed on separate
lines. Default behaviour is to treat these variables as being set to ``"multi"``.
Below we demonstrate how the file-wide ``sphinx_gallery_multi_image`` variable can be
used to display plots on separate lines.
"""

# Code source: Thomas S. Binns
# License: BSD 3 clause

# sphinx_gallery_multi_image = "single"

import matplotlib.pyplot as plt
import numpy as np

# %%

# Plots will be shown on separate lines

fig, ax = plt.subplots(1, 1, figsize=(8, 4))
ax.pcolormesh(np.random.randn(100, 100))

fig, ax = plt.subplots(1, 1, figsize=(8, 4))
ax.pcolormesh(np.random.randn(100, 100))

########################################################################################
# Now, we show how the ``sphinx_gallery_multi_image_block`` variable can be used to
# control the behaviour for a specific code block, here reverting to the default
# behaviour of stacking plots side-by-side.

# %%

# sphinx_gallery_multi_image_block = "multi"
# ↑↑↑ Return to default behaviour for just this cell

fig, ax = plt.subplots(1, 1, figsize=(8, 4))
ax.pcolormesh(np.random.randn(100, 100))

fig, ax = plt.subplots(1, 1, figsize=(8, 4))
ax.pcolormesh(np.random.randn(100, 100))
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_0_sin_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_0_sin_001_2_00x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_1_exp_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_1_exp_001_2_00x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_1_exp_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_1_exp_002_2_00x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_2_seaborn_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_2_seaborn_001_2_00x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_2_seaborn_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_3_capture_repr_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_3_capture_repr_001_2_00x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_3_capture_repr_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_3_capture_repr_002_2_00x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_3_capture_repr_003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_3_capture_repr_003_2_00x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_4_choose_thumbnail_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_4_choose_thumbnail_001_2_00x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_4_choose_thumbnail_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_4_choose_thumbnail_002_2_00x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_4b_provide_thumbnail_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_4b_provide_thumbnail_001_2_00x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_4b_provide_thumbnail_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_4b_provide_thumbnail_002_2_00x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stable/_images/sphx_glr_plot_5_unicode_everywhere_001.png
Binary file modified stable/_images/sphx_glr_plot_5_unicode_everywhere_001_2_00x.png
Binary file modified stable/_images/sphx_glr_plot_5_unicode_everywhere_thumb.png
Binary file modified stable/_images/sphx_glr_plot_6_function_identifier_001.png
Binary file modified stable/_images/sphx_glr_plot_6_function_identifier_001_2_00x.png
Binary file modified stable/_images/sphx_glr_plot_6_function_identifier_thumb.png
Binary file modified stable/_images/sphx_glr_plot_raise_001.png
Binary file modified stable/_images/sphx_glr_plot_raise_001_2_00x.png
Binary file modified stable/_images/sphx_glr_plot_raise_thumbnail_001.png
Binary file modified stable/_images/sphx_glr_plot_raise_thumbnail_001_2_00x.png
Binary file modified stable/_images/sphx_glr_plot_raise_thumbnail_thumb.png
4 changes: 2 additions & 2 deletions stable/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &#8212; Sphinx-Gallery 0.17.1-git documentation</title>
<title>Overview: module code &#8212; Sphinx-Gallery 0.18.0-git documentation</title>



Expand Down Expand Up @@ -43,7 +43,7 @@
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
<script src="../_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>

<script src="../_static/documentation_options.js?v=3af094dd"></script>
<script src="../_static/documentation_options.js?v=3472c781"></script>
<script src="../_static/doctools.js?v=9a2dae69"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/jupyterlite_sphinx.js?v=0b35d31f"></script>
Expand Down
4 changes: 2 additions & 2 deletions stable/_modules/sphinx_gallery/backreferences.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>sphinx_gallery.backreferences &#8212; Sphinx-Gallery 0.17.1-git documentation</title>
<title>sphinx_gallery.backreferences &#8212; Sphinx-Gallery 0.18.0-git documentation</title>



Expand Down Expand Up @@ -43,7 +43,7 @@
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
<script src="../../_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>

<script src="../../_static/documentation_options.js?v=3af094dd"></script>
<script src="../../_static/documentation_options.js?v=3472c781"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/jupyterlite_sphinx.js?v=0b35d31f"></script>
Expand Down
4 changes: 2 additions & 2 deletions stable/_modules/sphinx_gallery/block_parser.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>sphinx_gallery.block_parser &#8212; Sphinx-Gallery 0.17.1-git documentation</title>
<title>sphinx_gallery.block_parser &#8212; Sphinx-Gallery 0.18.0-git documentation</title>



Expand Down Expand Up @@ -43,7 +43,7 @@
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
<script src="../../_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>

<script src="../../_static/documentation_options.js?v=3af094dd"></script>
<script src="../../_static/documentation_options.js?v=3472c781"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/jupyterlite_sphinx.js?v=0b35d31f"></script>
Expand Down
4 changes: 2 additions & 2 deletions stable/_modules/sphinx_gallery/directives.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>sphinx_gallery.directives &#8212; Sphinx-Gallery 0.17.1-git documentation</title>
<title>sphinx_gallery.directives &#8212; Sphinx-Gallery 0.18.0-git documentation</title>



Expand Down Expand Up @@ -43,7 +43,7 @@
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
<script src="../../_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>

<script src="../../_static/documentation_options.js?v=3af094dd"></script>
<script src="../../_static/documentation_options.js?v=3472c781"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/jupyterlite_sphinx.js?v=0b35d31f"></script>
Expand Down
4 changes: 2 additions & 2 deletions stable/_modules/sphinx_gallery/docs_resolv.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>sphinx_gallery.docs_resolv &#8212; Sphinx-Gallery 0.17.1-git documentation</title>
<title>sphinx_gallery.docs_resolv &#8212; Sphinx-Gallery 0.18.0-git documentation</title>



Expand Down Expand Up @@ -43,7 +43,7 @@
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
<script src="../../_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>

<script src="../../_static/documentation_options.js?v=3af094dd"></script>
<script src="../../_static/documentation_options.js?v=3472c781"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/jupyterlite_sphinx.js?v=0b35d31f"></script>
Expand Down
4 changes: 2 additions & 2 deletions stable/_modules/sphinx_gallery/downloads.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>sphinx_gallery.downloads &#8212; Sphinx-Gallery 0.17.1-git documentation</title>
<title>sphinx_gallery.downloads &#8212; Sphinx-Gallery 0.18.0-git documentation</title>



Expand Down Expand Up @@ -43,7 +43,7 @@
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
<script src="../../_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>

<script src="../../_static/documentation_options.js?v=3af094dd"></script>
<script src="../../_static/documentation_options.js?v=3472c781"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/jupyterlite_sphinx.js?v=0b35d31f"></script>
Expand Down
Loading

0 comments on commit d643d63

Please sign in to comment.