Skip to content

Commit

Permalink
Update docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 5, 2024
1 parent 9ff5219 commit 3c51115
Show file tree
Hide file tree
Showing 351 changed files with 5,850 additions and 1,138 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Binary file modified dev/_downloads/0b54a39b2ec8fc51693c97f74798b0f0/SpanROI.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
Binary file modified dev/_downloads/0d75b5dc3a2efb88420f6f32b357684b/polygons.zip
Binary file not shown.
Binary file not shown.
Binary file modified dev/_downloads/11b08f0f37c302dbc328fcc6b378a258/stars.zip
Binary file not shown.
Binary file modified dev/_downloads/122c7538faaed8f951768e29f816df2d/map_signal.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions dev/_downloads/2d564c11ee264e43fb9a17efa057db3e/ROI_insets.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
the data within the ROI, and then plot the sum as a signal. Using the :class:`matplotlib.figure.SubFigure` class
we can create a custom layout to visualize and interact with the data.
.. Note::
Plotting data with subfigures is slower than using separates figures.
We can connect these ROI's using the :func:`hyperspy.api.interactive` function which allows us to move the ROI's and see the sum of the underlying data.
"""
import matplotlib.pyplot as plt
Expand Down
Binary file modified dev/_downloads/2d5731efe27b3b944d909df605e0f43a/rectangles.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified dev/_downloads/39bdd9167500d55149f53669113756be/lines.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n# Composing Figure\n\nThis example shows how to compose a figure using\n:func:`~.api.plot.plot_images` and :func:`~.api.plot.plot_spectra`\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"import hyperspy.api as hs\nimport matplotlib.pyplot as plt\nimport numpy as np"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Create the 1D and 2D signals\n\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"s2D_0 = hs.signals.Signal2D(np.arange(100).reshape(10, 10))\ns2D_1 = -s2D_0\n\ns1D_0 = hs.signals.Signal1D(np.arange(100))\ns1D_1 = -s1D_0"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Create an array of :external+matplotlib:class:`matplotlib.axis.Axis` using :external+matplotlib:func:`matplotlib.pyplot.subplots` \n\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"fig, axs = plt.subplots(ncols=2, nrows=2)\nhs.plot.plot_images([s2D_0, s2D_1], ax=axs[:, 0], axes_decor=\"off\")\nhs.plot.plot_spectra([s1D_0, s1D_1], ax=axs[:, 1], style=\"mosaic\")"
]
}
],
"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.11.10"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"\n# Creating Custom Layouts\n\nCustom layouts for hyperspy figures can be created using the :class:`matplotlib.figure.SubFigure` class. Passing\nthe ``fig`` argument to the :meth:`~.api.signals.BaseSignal.plot` method of a hyperspy signal object will target\nthat figure instead of creating a new one. This is useful for creating custom layouts with multiple subplots.\n"
"\n# Creating Custom Layouts\n\nCustom layouts for hyperspy figures can be created using the :class:`matplotlib.figure.SubFigure` class. Passing\nthe ``fig`` argument to the :meth:`~.api.signals.BaseSignal.plot` method of a hyperspy signal object will target\nthat figure instead of creating a new one. This is useful for creating custom layouts with multiple subplots.\n\n.. Note::\n Plotting data with subfigures is slower than using separates figures.\n"
]
},
{
Expand Down Expand Up @@ -53,7 +53,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
Custom layouts for hyperspy figures can be created using the :class:`matplotlib.figure.SubFigure` class. Passing
the ``fig`` argument to the :meth:`~.api.signals.BaseSignal.plot` method of a hyperspy signal object will target
that figure instead of creating a new one. This is useful for creating custom layouts with multiple subplots.
.. Note::
Plotting data with subfigures is slower than using separates figures.
"""

# Creating a simple layout with two subplots
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Binary file modified dev/_downloads/669fee9db8cffd9b928a948fa0a5ab73/arrows.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.
133 changes: 133 additions & 0 deletions dev/_downloads/84cd18905f59e5a15b49ead3e18799bb/specifying_ax.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n# Specifying Matplotlib Axis\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"import hyperspy.api as hs\nimport matplotlib.pyplot as plt\nimport numpy as np"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Signal2D\n\nCreate two Signal2D\n\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"s = hs.signals.Signal2D(np.arange(100).reshape(10, 10))\ns2 = -s"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Create a list of :external+matplotlib:class:`matplotlib.axis.Axis` using\n:external+matplotlib:func:`matplotlib.pyplot.subplots` and\nspecify the second matplotlib axis of the list to :func:`~.api.plot.plot_images`\n\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"fig, axs = plt.subplots(ncols=3, nrows=1)\nhs.plot.plot_images(s, ax=axs[1], axes_decor=\"off\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The same can be done for a list of signals and axis\n\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"fig, axs = plt.subplots(ncols=3, nrows=1)\nhs.plot.plot_images([s, s2], ax=axs[1:3], axes_decor=\"off\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Signal1D\n\nThe same can be for :class:`~.api.signals.Signal1D`\n\nCreate two Signal2D\n\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"s = hs.signals.Signal1D(np.arange(100))\ns2 = -s"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Create an array of :external+matplotlib:class:`matplotlib.axis.Axis` using\n:external+matplotlib:func:`matplotlib.pyplot.subplots` and\nspecify the two las matplotlib axis of the second line to :func:`~.api.plot.plot_spectra`\n\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"fig, axs = plt.subplots(ncols=3, nrows=2)\nhs.plot.plot_spectra([s, s2], ax=axs[1, 1:3], style=\"mosaic\")"
]
}
],
"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.11.10"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Binary file modified dev/_downloads/88eddcee30e0f8e56613316c2a039892/circles.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 3c51115

Please sign in to comment.