-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ff5219
commit 3c51115
Showing
351 changed files
with
5,850 additions
and
1,138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1 Byte
(100%)
dev/_downloads/00d780175b5dd0fea70f958ff4bee948/from_tabular_data_file.zip
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
dev/_downloads/05fedb0ac190395987edb1422768a796/from_tabular_data.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+6.44 KB
(110%)
dev/_downloads/07fcc19ba03226cd3d83d4e40ec44385/auto_examples_python.zip
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1 Byte
(100%)
dev/_downloads/0d75b5dc3a2efb88420f6f32b357684b/polygons.zip
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
dev/_downloads/0da4dfb9841f7100dfe8d3a926ab7618/circles_color_radius.zip
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
dev/_downloads/122c7538faaed8f951768e29f816df2d/map_signal.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1 Byte
(100%)
dev/_downloads/1bd3ab776b59e162833c99f389a77d37/add_remove_marker.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
dev/_downloads/24831b32e81d1315cd64203e4e17d1bf/simple_arctan_fit.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1 Byte
(100%)
dev/_downloads/2b84d772626ea7a0fcc0013ab2737a7d/convert_color_image.zip
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
dev/_downloads/2bcec1d86daa27f36b937f1d374d4257/SpanROI_interactive_sum.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1 Byte
(100%)
dev/_downloads/2d5731efe27b3b944d909df605e0f43a/rectangles.zip
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
dev/_downloads/2fa841961c1ff162d317536d9d5205b5/two_gaussians.zip
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
dev/_downloads/3080bfa6ae75202292606b91927ad59b/arrows_navigation.zip
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
dev/_downloads/452cb31e36fa4bfcce1af2f9d19e1658/compose_figure.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1 Byte
(100%)
dev/_downloads/57f4677c2d7d7104cf999be7160254d4/ragged_points.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1 Byte
(100%)
dev/_downloads/5dc4e5c189309b5012410438f5309145/vertical_lines.zip
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
dev/_downloads/6ba26e6400ba59958928ff0ea9523ad6/line_spectrum.zip
Binary file not shown.
Binary file modified
BIN
+11.7 KB
(110%)
dev/_downloads/6f1e7a639e0699d6164445b55e6c116d/auto_examples_jupyter.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.04 KB
dev/_downloads/764c7a9ef5a38758f267f3187a5e347e/custom_figure_layout.zip
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
dev/_downloads/7eb4813e7b074915f6a32ebb16ec6f7b/filled_circles.zip
Binary file not shown.
Binary file not shown.
133 changes: 133 additions & 0 deletions
133
dev/_downloads/84cd18905f59e5a15b49ead3e18799bb/specifying_ax.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1 Byte
(100%)
dev/_downloads/86d461ad89fc7ebabcad4a0462681610/fast_fourier_transform_live.zip
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.