Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: matplotlib/napari-matplotlib
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: matplotlib/napari-matplotlib
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: gh-pages
Choose a head ref
  • 2 commits
  • 171 files changed
  • 2 contributors

Commits on Jun 15, 2023

  1. deploy: 8d21d58

    samcunliffe committed Jun 15, 2023
    Copy the full SHA
    5aaa4a5 View commit details
  2. Copy the full SHA
    6f75f44 View commit details
Showing with 27,421 additions and 2,162 deletions.
  1. +4 −0 .buildinfo
  2. +0 −90 .gitignore
  3. +0 −8 .napari/config.yml
  4. 0 src/napari_matplotlib/tests/__init__.py → .nojekyll
  5. +0 −37 .pre-commit-config.yaml
  6. +0 −15 .readthedocs.yaml
  7. +0 −28 LICENSE
  8. +0 −6 MANIFEST.in
  9. +0 −68 README.md
  10. BIN _downloads/07fcc19ba03226cd3d83d4e40ec44385/auto_examples_python.zip
  11. +43 −0 _downloads/0b331cf4cf159a6a57f4531f3dbddde0/histogram.ipynb
  12. +43 −0 _downloads/356cf268fed339dfb5abbb496bbc3b9d/features_scatter.ipynb
  13. 0 {examples → _downloads/6b03dcf9de4b8dd14bd28dfd160b22ff}/features_scatter.py
  14. BIN _downloads/6f1e7a639e0699d6164445b55e6c116d/auto_examples_jupyter.zip
  15. +43 −0 _downloads/7aa3996e8b2e09621c2758c6e897e5b9/scatter.ipynb
  16. 0 {examples → _downloads/938ed72b46e9548f0937ceb494893df1}/histogram.py
  17. 0 {examples → _downloads/bc541a354b7f92b48ffdb8727aa73e82}/slice.py
  18. +43 −0 _downloads/c26c34c6833b66e54ef0d268128ff00d/slice.ipynb
  19. 0 {examples → _downloads/e611938a173183173c813c6376b63c29}/scatter.py
  20. BIN _images/inheritance-2166484d96ed7a3fdf70323a66ed5dbc90ce10d9.png
  21. +8 −0 _images/inheritance-2166484d96ed7a3fdf70323a66ed5dbc90ce10d9.png.map
  22. BIN _images/inheritance-750f96349ce13fdda5d45219e3a78d33ac61bb4d.png
  23. +13 −0 _images/inheritance-750f96349ce13fdda5d45219e3a78d33ac61bb4d.png.map
  24. BIN _images/sphx_glr_features_scatter_001.png
  25. BIN _images/sphx_glr_features_scatter_thumb.png
  26. BIN _images/sphx_glr_histogram_001.png
  27. BIN _images/sphx_glr_histogram_thumb.png
  28. BIN _images/sphx_glr_scatter_001.png
  29. BIN _images/sphx_glr_scatter_thumb.png
  30. BIN _images/sphx_glr_slice_001.png
  31. BIN _images/sphx_glr_slice_thumb.png
  32. 0 docs/api.rst → _sources/api.rst.txt
  33. +35 −0 _sources/api/napari_matplotlib.FeaturesScatterWidget.rst.txt
  34. +29 −0 _sources/api/napari_matplotlib.HistogramWidget.rst.txt
  35. +17 −0 _sources/api/napari_matplotlib.ScatterBaseWidget.rst.txt
  36. +19 −0 _sources/api/napari_matplotlib.ScatterWidget.rst.txt
  37. +33 −0 _sources/api/napari_matplotlib.SliceWidget.rst.txt
  38. +29 −0 _sources/api/napari_matplotlib.base.BaseNapariMPLWidget.rst.txt
  39. +37 −0 _sources/api/napari_matplotlib.base.NapariMPLWidget.rst.txt
  40. +17 −0 _sources/api/napari_matplotlib.base.SingleAxesWidget.rst.txt
  41. +105 −0 _sources/auto_examples/features_scatter.rst.txt
  42. +79 −0 _sources/auto_examples/histogram.rst.txt
  43. +112 −0 _sources/auto_examples/index.rst.txt
  44. +89 −0 _sources/auto_examples/scatter.rst.txt
  45. +19 −0 _sources/auto_examples/sg_execution_times.rst.txt
  46. +79 −0 _sources/auto_examples/slice.rst.txt
  47. 0 docs/changelog.rst → _sources/changelog.rst.txt
  48. 0 docs/guide/index.rst → _sources/guide/index.rst.txt
  49. 0 docs/guide/third_party.rst → _sources/guide/third_party.rst.txt
  50. 0 docs/index.rst → _sources/index.rst.txt
  51. +906 −0 _static/basic.css
  52. +1 −0 _static/binder_badge_logo.svg
  53. BIN _static/broken_example.png
  54. +358 −0 _static/doctools.js
  55. +14 −0 _static/documentation_options.js
  56. BIN _static/file.png
  57. +19 −0 _static/graphviz.css
  58. +10,872 −0 _static/jquery-3.5.1.js
  59. +2 −0 _static/jquery.js
  60. +3 −0 _static/jupyterlite_badge_logo.svg
  61. +297 −0 _static/language_data.js
  62. BIN _static/minus.png
  63. BIN _static/no_image.png
  64. BIN _static/plus.png
  65. +152 −0 _static/pygments.css
  66. +3 −0 _static/scripts/bootstrap.js
  67. +5 −0 _static/scripts/bootstrap.js.LICENSE.txt
  68. +1 −0 _static/scripts/bootstrap.js.map
  69. +2 −0 _static/scripts/pydata-sphinx-theme.js
  70. +1 −0 _static/scripts/pydata-sphinx-theme.js.map
  71. +525 −0 _static/searchtools.js
  72. +11 −0 _static/sg_gallery-binder.css
  73. +46 −0 _static/sg_gallery-dataframe.css
  74. +224 −0 _static/sg_gallery-rendered-html.css
  75. +342 −0 _static/sg_gallery.css
  76. +6 −0 _static/styles/bootstrap.css
  77. +1 −0 _static/styles/pydata-sphinx-theme.css
  78. +2 −0 _static/styles/theme.css
  79. +2,042 −0 _static/underscore-1.13.1.js
  80. +6 −0 _static/underscore.js
  81. +165 −0 _static/vendor/fontawesome/6.1.2/LICENSE.txt
  82. +5 −0 _static/vendor/fontawesome/6.1.2/css/all.min.css
  83. BIN _static/vendor/fontawesome/6.1.2/webfonts/fa-brands-400.ttf
  84. BIN _static/vendor/fontawesome/6.1.2/webfonts/fa-brands-400.woff2
  85. BIN _static/vendor/fontawesome/6.1.2/webfonts/fa-regular-400.ttf
  86. BIN _static/vendor/fontawesome/6.1.2/webfonts/fa-regular-400.woff2
  87. BIN _static/vendor/fontawesome/6.1.2/webfonts/fa-solid-900.ttf
  88. BIN _static/vendor/fontawesome/6.1.2/webfonts/fa-solid-900.woff2
  89. BIN _static/vendor/fontawesome/6.1.2/webfonts/fa-v4compatibility.ttf
  90. BIN _static/vendor/fontawesome/6.1.2/webfonts/fa-v4compatibility.woff2
  91. +30 −0 _static/webpack-macros.html
  92. +543 −0 api.html
  93. +532 −0 api/napari_matplotlib.FeaturesScatterWidget.html
  94. +505 −0 api/napari_matplotlib.HistogramWidget.html
  95. +477 −0 api/napari_matplotlib.ScatterBaseWidget.html
  96. +488 −0 api/napari_matplotlib.ScatterWidget.html
  97. +523 −0 api/napari_matplotlib.SliceWidget.html
  98. +518 −0 api/napari_matplotlib.base.BaseNapariMPLWidget.html
  99. +570 −0 api/napari_matplotlib.base.NapariMPLWidget.html
  100. +478 −0 api/napari_matplotlib.base.SingleAxesWidget.html
  101. +461 −0 auto_examples/features_scatter.html
  102. +436 −0 auto_examples/histogram.html
  103. +431 −0 auto_examples/index.html
  104. +442 −0 auto_examples/scatter.html
  105. +434 −0 auto_examples/sg_execution_times.html
  106. +436 −0 auto_examples/slice.html
  107. +483 −0 changelog.html
  108. +0 −25 docs/Makefile
  109. +0 −90 docs/conf.py
  110. +0 −38 docs/make.bat
  111. +0 −2 examples/README.rst
  112. BIN examples/hist.png
  113. BIN examples/scatter.png
  114. BIN examples/slice.png
  115. +574 −0 genindex.html
  116. +444 −0 guide/index.html
  117. +503 −0 guide/third_party.html
  118. +425 −0 index.html
  119. BIN objects.inv
  120. +388 −0 py-modindex.html
  121. +0 −70 pyproject.toml
  122. +392 −0 search.html
  123. +1 −0 searchindex.js
  124. +0 −70 setup.cfg
  125. +0 −9 src/napari_matplotlib/__init__.py
  126. +0 −307 src/napari_matplotlib/base.py
  127. +0 −65 src/napari_matplotlib/histogram.py
  128. BIN src/napari_matplotlib/icons/black/Back.png
  129. BIN src/napari_matplotlib/icons/black/Customize.png
  130. BIN src/napari_matplotlib/icons/black/Forward.png
  131. BIN src/napari_matplotlib/icons/black/Home.png
  132. BIN src/napari_matplotlib/icons/black/Pan.png
  133. BIN src/napari_matplotlib/icons/black/Pan_checked.png
  134. BIN src/napari_matplotlib/icons/black/Save.png
  135. BIN src/napari_matplotlib/icons/black/Subplots.png
  136. BIN src/napari_matplotlib/icons/black/Zoom.png
  137. BIN src/napari_matplotlib/icons/black/Zoom_checked.png
  138. BIN src/napari_matplotlib/icons/white/Back.png
  139. BIN src/napari_matplotlib/icons/white/Customize.png
  140. BIN src/napari_matplotlib/icons/white/Forward.png
  141. BIN src/napari_matplotlib/icons/white/Home.png
  142. BIN src/napari_matplotlib/icons/white/Pan.png
  143. BIN src/napari_matplotlib/icons/white/Pan_checked.png
  144. BIN src/napari_matplotlib/icons/white/Save.png
  145. BIN src/napari_matplotlib/icons/white/Subplots.png
  146. BIN src/napari_matplotlib/icons/white/Zoom.png
  147. BIN src/napari_matplotlib/icons/white/Zoom_checked.png
  148. +0 −32 src/napari_matplotlib/napari.yaml
  149. +0 −242 src/napari_matplotlib/scatter.py
  150. +0 −125 src/napari_matplotlib/slice.py
  151. BIN src/napari_matplotlib/tests/baseline/test_histogram_2D.png
  152. BIN src/napari_matplotlib/tests/baseline/test_histogram_3D.png
  153. BIN src/napari_matplotlib/tests/baseline/test_no_theme_side_effects.png
  154. BIN src/napari_matplotlib/tests/baseline/test_slice_2D.png
  155. BIN src/napari_matplotlib/tests/baseline/test_slice_3D.png
  156. +0 −54 src/napari_matplotlib/tests/conftest.py
  157. +0 −29 src/napari_matplotlib/tests/helpers.py
  158. 0 src/napari_matplotlib/tests/scatter/__init__.py
  159. BIN src/napari_matplotlib/tests/scatter/baseline/test_features_scatter_widget_2D.png
  160. BIN src/napari_matplotlib/tests/scatter/baseline/test_scatter_2D.png
  161. BIN src/napari_matplotlib/tests/scatter/baseline/test_scatter_3D.png
  162. +0 −57 src/napari_matplotlib/tests/scatter/test_scatter.py
  163. +0 −116 src/napari_matplotlib/tests/scatter/test_scatter_features.py
  164. +0 −30 src/napari_matplotlib/tests/test_histogram.py
  165. +0 −109 src/napari_matplotlib/tests/test_layer_changes.py
  166. +0 −30 src/napari_matplotlib/tests/test_slice.py
  167. +0 −120 src/napari_matplotlib/tests/test_theme.py
  168. +0 −49 src/napari_matplotlib/tests/test_ui.py
  169. +0 −79 src/napari_matplotlib/tests/test_util.py
  170. +0 −140 src/napari_matplotlib/util.py
  171. +0 −22 tox.ini
4 changes: 4 additions & 0 deletions .buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +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: 02e2d48c69ef120d6574fdb583c98e46
tags: 645f666f9bcd5a90fca523b33c5a78b7
90 changes: 0 additions & 90 deletions .gitignore

This file was deleted.

8 changes: 0 additions & 8 deletions .napari/config.yml

This file was deleted.

File renamed without changes.
37 changes: 0 additions & 37 deletions .pre-commit-config.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions .readthedocs.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions LICENSE

This file was deleted.

6 changes: 0 additions & 6 deletions MANIFEST.in

This file was deleted.

68 changes: 0 additions & 68 deletions README.md

This file was deleted.

Binary file not shown.
43 changes: 43 additions & 0 deletions _downloads/0b331cf4cf159a6a57f4531f3dbddde0/histogram.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n# Histograms\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"import napari\n\nviewer = napari.Viewer()\nviewer.open_sample(\"napari\", \"kidney\")\n\nviewer.window.add_plugin_dock_widget(\n plugin_name=\"napari-matplotlib\", widget_name=\"Histogram\"\n)\n\nif __name__ == \"__main__\":\n napari.run()"
]
}
],
"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
}
43 changes: 43 additions & 0 deletions _downloads/356cf268fed339dfb5abbb496bbc3b9d/features_scatter.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n# Scattering features\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"import napari\nimport numpy as np\nfrom skimage.measure import regionprops_table\n\n# make a test label image\nlabel_image = np.zeros((100, 100), dtype=np.uint16)\n\nlabel_image[10:20, 10:20] = 1\nlabel_image[50:70, 50:70] = 2\n\nfeature_table_1 = regionprops_table(\n label_image, properties=(\"label\", \"area\", \"perimeter\")\n)\nfeature_table_1[\"index\"] = feature_table_1[\"label\"]\n\n# make the points data\nn_points = 100\npoints_data = 100 * np.random.random((100, 2))\npoints_features = {\n \"feature_0\": np.random.random((n_points,)),\n \"feature_1\": np.random.random((n_points,)),\n \"feature_2\": np.random.random((n_points,)),\n}\n\n# create the viewer\nviewer = napari.Viewer()\nviewer.add_labels(label_image, features=feature_table_1)\nviewer.add_points(points_data, features=points_features)\n\n# make the widget\nviewer.window.add_plugin_dock_widget(\n plugin_name=\"napari-matplotlib\", widget_name=\"FeaturesScatter\"\n)\n\nif __name__ == \"__main__\":\n napari.run()"
]
}
],
"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
}
File renamed without changes.
Binary file not shown.
43 changes: 43 additions & 0 deletions _downloads/7aa3996e8b2e09621c2758c6e897e5b9/scatter.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n# Scatter plots\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"import napari\n\nviewer = napari.Viewer()\nviewer.open_sample(\"napari\", \"kidney\")\n\nviewer.window.add_plugin_dock_widget(\n plugin_name=\"napari-matplotlib\", widget_name=\"Scatter\"\n)\n\nif __name__ == \"__main__\":\n napari.run()"
]
}
],
"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
}
File renamed without changes.
File renamed without changes.
Loading