napari-plot 0.1.5__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- napari_plot-0.3.1/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
- napari_plot-0.3.1/.github/ISSUE_TEMPLATE/documentation.md +11 -0
- napari_plot-0.3.1/.github/ISSUE_TEMPLATE/feature_request.md +27 -0
- napari_plot-0.3.1/.github/PULL_REQUEST_TEMPLATE.md +29 -0
- napari_plot-0.3.1/.github/TEST_FAIL_TEMPLATE.md +12 -0
- napari_plot-0.3.1/.github/dependabot.yml +17 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/.github/workflows/auto_author_assign.yml +1 -1
- napari_plot-0.3.1/.github/workflows/test_and_deploy.yml +213 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/.gitignore +1 -1
- napari_plot-0.3.1/.pre-commit-config.yaml +20 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/MANIFEST.in +3 -1
- {napari_plot-0.1.5 → napari_plot-0.3.1}/Makefile +9 -1
- napari_plot-0.3.1/PKG-INFO +249 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/README.md +51 -32
- napari_plot-0.3.1/codecov.yml +15 -0
- {napari_plot-0.1.5/napari_plot → napari_plot-0.3.1}/conftest.py +72 -17
- napari_plot-0.3.1/napari_plot/__init__.py +59 -0
- napari_plot-0.3.1/napari_plot/__main__.py +347 -0
- napari_plot-0.3.1/napari_plot/_app_model/__init__.py +3 -0
- napari_plot-0.3.1/napari_plot/_app_model/_app.py +73 -0
- napari_plot-0.3.1/napari_plot/_app_model/actions/_layerlist_context_actions.py +244 -0
- napari_plot-0.3.1/napari_plot/_app_model/constants/__init__.py +3 -0
- napari_plot-0.3.1/napari_plot/_app_model/constants/_menus.py +128 -0
- napari_plot-0.3.1/napari_plot/_app_model/context/__init__.py +10 -0
- napari_plot-0.3.1/napari_plot/_app_model/context/_context.py +125 -0
- napari_plot-0.3.1/napari_plot/_app_model/context/_context_keys.py +20 -0
- napari_plot-0.3.1/napari_plot/_app_model/context/_layerlist_context.py +5 -0
- napari_plot-0.3.1/napari_plot/_app_model/utils.py +119 -0
- napari_plot-0.3.1/napari_plot/_contribution.py +15 -0
- napari_plot-0.3.1/napari_plot/_plot_widget.py +64 -0
- napari_plot-0.3.1/napari_plot/_qt/_qapp_model/__init__.py +62 -0
- napari_plot-0.3.1/napari_plot/_qt/_qapp_model/_qproviders.py +109 -0
- napari_plot-0.3.1/napari_plot/_qt/component_controls/qt_axis_controls.py +342 -0
- napari_plot-0.3.1/napari_plot/_qt/component_controls/qt_camera_controls.py +398 -0
- napari_plot-0.3.1/napari_plot/_qt/component_controls/qt_legend_controls.py +239 -0
- napari_plot-0.3.1/napari_plot/_qt/layer_controls/qt_bar_controls.py +145 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_centroids_controls.py +49 -32
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_infline_controls.py +90 -87
- napari_plot-0.3.1/napari_plot/_qt/layer_controls/qt_layer_controls_base.py +259 -0
- napari_plot-0.3.1/napari_plot/_qt/layer_controls/qt_layer_controls_container.py +59 -0
- napari_plot-0.3.1/napari_plot/_qt/layer_controls/qt_layers_dialog.py +66 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_line_controls.py +29 -23
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_multiline_controls.py +45 -29
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_region_controls.py +91 -73
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_scatter_controls.py +104 -89
- napari_plot-0.3.1/napari_plot/_qt/layer_controls/qt_text_controls.py +221 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_qt/qt_event_loop.py +63 -32
- napari_plot-0.3.1/napari_plot/_qt/qt_layer_buttons.py +193 -0
- napari_plot-0.3.1/napari_plot/_qt/qt_main_window.py +1520 -0
- napari_plot-0.3.1/napari_plot/_qt/qt_toolbar.py +209 -0
- napari_plot-0.3.1/napari_plot/_qt/qt_viewer.py +770 -0
- napari_plot-0.3.1/napari_plot/_qt/qt_welcome.py +167 -0
- napari_plot-0.3.1/napari_plot/_qt/widgets/qt_dev.py +47 -0
- napari_plot-0.3.1/napari_plot/_qt/widgets/qt_icon_button.py +56 -0
- napari_plot-0.3.1/napari_plot/_qt/widgets/qt_splash_screen.py +20 -0
- napari_plot-0.3.1/napari_plot/_scatter_widget.py +121 -0
- napari_plot-0.3.1/napari_plot/_version.py +24 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_vispy/__init__.py +2 -1
- napari_plot-0.3.1/napari_plot/_vispy/camera.py +203 -0
- napari_plot-0.3.1/napari_plot/_vispy/canvas.py +636 -0
- napari_plot-0.3.1/napari_plot/_vispy/components/axis.py +305 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_vispy/components/camera.py +32 -21
- napari_plot-0.3.1/napari_plot/_vispy/layers/bar.py +58 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_vispy/layers/centroids.py +9 -5
- napari_plot-0.3.1/napari_plot/_vispy/layers/infline.py +112 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_vispy/layers/line.py +8 -4
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_vispy/layers/multiline.py +8 -4
- napari_plot-0.3.1/napari_plot/_vispy/layers/region.py +102 -0
- napari_plot-0.3.1/napari_plot/_vispy/layers/scatter.py +203 -0
- napari_plot-0.3.1/napari_plot/_vispy/layers/text.py +72 -0
- napari_plot-0.3.1/napari_plot/_vispy/overlays/__init__.py +18 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_vispy/overlays/axis.py +43 -3
- napari_plot-0.3.1/napari_plot/_vispy/overlays/grid_lines.py +37 -0
- napari_plot-0.3.1/napari_plot/_vispy/overlays/legend.py +284 -0
- napari_plot-0.3.1/napari_plot/_vispy/overlays/text.py +50 -0
- napari_plot-0.3.1/napari_plot/_vispy/tools/drag.py +39 -0
- napari_plot-0.3.1/napari_plot/_vispy/tools/polygon.py +148 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_vispy/utils/axis.py +8 -5
- napari_plot-0.3.1/napari_plot/_vispy/utils/visual.py +46 -0
- napari_plot-0.3.1/napari_plot/_vispy/visuals/bar.py +23 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_vispy/visuals/centroids.py +1 -0
- napari_plot-0.3.1/napari_plot/_vispy/visuals/infline.py +285 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_vispy/visuals/line.py +1 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_vispy/visuals/multiline.py +1 -0
- napari_plot-0.3.1/napari_plot/_vispy/visuals/region.py +283 -0
- napari_plot-0.3.1/napari_plot/_vispy/visuals/scatter.py +90 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/components/__init__.py +2 -2
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/components/_viewer_key_bindings.py +2 -1
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/components/_viewer_mouse_bindings.py +120 -27
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/components/_viewer_utils.py +9 -29
- napari_plot-0.3.1/napari_plot/components/axis.py +130 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/components/camera.py +55 -28
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/components/dragtool.py +48 -11
- napari_plot-0.3.1/napari_plot/components/grid_lines.py +7 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/components/gridlines.py +1 -0
- napari_plot-0.3.1/napari_plot/components/layerlist.py +49 -0
- napari_plot-0.3.1/napari_plot/components/legend.py +332 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/components/tools.py +41 -29
- napari_plot-0.3.1/napari_plot/components/viewer_model.py +1270 -0
- napari_plot-0.3.1/napari_plot/layers/__init__.py +53 -0
- napari_plot-0.3.1/napari_plot/layers/bar/__init__.py +5 -0
- napari_plot-0.3.1/napari_plot/layers/bar/bar.py +394 -0
- napari_plot-0.3.1/napari_plot/layers/base.py +146 -0
- napari_plot-0.3.1/napari_plot/layers/centroids/__init__.py +9 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/centroids/_centroids_constants.py +4 -7
- napari_plot-0.3.1/napari_plot/layers/centroids/_centroids_key_bindings.py +34 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/centroids/_centroids_utils.py +4 -3
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/centroids/centroids.py +23 -15
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/infline/__init__.py +3 -2
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/infline/_infline.py +16 -12
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/infline/_infline_constants.py +21 -18
- napari_plot-0.3.1/napari_plot/layers/infline/_infline_key_bindings.py +64 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/infline/_infline_list.py +35 -23
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/infline/_infline_mouse_bindings.py +35 -25
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/infline/_infline_utils.py +81 -28
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/infline/infline.py +214 -187
- napari_plot-0.3.1/napari_plot/layers/line/__init__.py +3 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/line/_line_constants.py +1 -0
- napari_plot-0.3.1/napari_plot/layers/line/_line_key_bindings.py +34 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/line/line.py +19 -11
- napari_plot-0.3.1/napari_plot/layers/multiline/__init__.py +3 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/multiline/_multiline_constants.py +1 -0
- napari_plot-0.3.1/napari_plot/layers/multiline/_multiline_key_bindings.py +34 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/multiline/_multiline_list.py +13 -9
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/multiline/_multiline_utils.py +29 -20
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/multiline/multiline.py +14 -9
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/region/__init__.py +3 -2
- napari_plot-0.3.1/napari_plot/layers/region/_region.py +60 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/region/_region_constants.py +20 -17
- napari_plot-0.3.1/napari_plot/layers/region/_region_key_bindings.py +94 -0
- napari_plot-0.3.1/napari_plot/layers/region/_region_list.py +216 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/region/_region_mouse_bindings.py +90 -93
- napari_plot-0.3.1/napari_plot/layers/region/_region_utils.py +196 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/layers/region/region.py +474 -472
- napari_plot-0.3.1/napari_plot/layers/scatter/__init__.py +3 -0
- napari_plot-0.3.1/napari_plot/layers/scatter/_scatter_key_bindings.py +34 -0
- napari_plot-0.3.1/napari_plot/layers/scatter/_utilities.py +22 -0
- napari_plot-0.3.1/napari_plot/layers/scatter/scatter.py +352 -0
- napari_plot-0.3.1/napari_plot/layers/text/__init__.py +5 -0
- napari_plot-0.3.1/napari_plot/layers/text/text.py +555 -0
- napari_plot-0.3.1/napari_plot/layers/utils/layer_utils.py +133 -0
- napari_plot-0.3.1/napari_plot/napari.yaml +19 -0
- napari_plot-0.3.1/napari_plot/resources/__init__.py +50 -0
- napari_plot-0.3.1/napari_plot/resources/icon.icns +0 -0
- napari_plot-0.3.1/napari_plot/resources/icon.ico +0 -0
- napari_plot-0.3.1/napari_plot/resources/icons/logo_silhouette_plot.svg +1 -0
- napari_plot-0.3.1/napari_plot/resources/logo.png +0 -0
- napari_plot-0.3.1/napari_plot/resources/qss/10_napari_plot.qss +183 -0
- napari_plot-0.1.5/napari_plot/_tests/utils.py → napari_plot-0.3.1/napari_plot/utils/_test_support.py +7 -3
- napari_plot-0.3.1/napari_plot/utils/_tool.py +42 -0
- napari_plot-0.3.1/napari_plot/utils/action_manager.py +41 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/utils/utilities.py +8 -3
- napari_plot-0.3.1/napari_plot/viewer.py +262 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/window.py +2 -1
- napari_plot-0.3.1/napari_plot.egg-info/PKG-INFO +249 -0
- napari_plot-0.3.1/napari_plot.egg-info/SOURCES.txt +256 -0
- napari_plot-0.3.1/napari_plot.egg-info/entry_points.txt +6 -0
- napari_plot-0.3.1/napari_plot.egg-info/not-zip-safe +1 -0
- napari_plot-0.3.1/napari_plot.egg-info/requires.txt +98 -0
- napari_plot-0.3.1/napari_plot.egg-info/scm_file_list.json +294 -0
- napari_plot-0.3.1/napari_plot.egg-info/scm_version.json +8 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot.egg-info/top_level.txt +1 -0
- napari_plot-0.3.1/pyproject.toml +366 -0
- napari_plot-0.3.1/scripts/png_to_icon.bat +9 -0
- napari_plot-0.3.1/setup.cfg +4 -0
- napari_plot-0.3.1/tests/_app_model/test_app.py +27 -0
- napari_plot-0.3.1/tests/_app_model/test_constants.py +9 -0
- napari_plot-0.3.1/tests/_app_model/test_context.py +51 -0
- napari_plot-0.3.1/tests/_app_model/test_layerlist_context.py +35 -0
- napari_plot-0.3.1/tests/_qt/test_qt_axis_controls.py +46 -0
- napari_plot-0.3.1/tests/_qt/test_qt_layer_buttons.py +81 -0
- napari_plot-0.3.1/tests/_qt/test_qt_layer_control_icons.py +165 -0
- napari_plot-0.3.1/tests/_qt/test_qt_legend.py +178 -0
- napari_plot-0.3.1/tests/_qt/test_qt_splash_screen.py +22 -0
- {napari_plot-0.1.5/napari_plot/_qt/_tests → napari_plot-0.3.1/tests/_qt}/test_qt_viewer.py +70 -4
- napari_plot-0.3.1/tests/_vispy/test_axis.py +321 -0
- napari_plot-0.3.1/tests/_vispy/test_camera.py +105 -0
- napari_plot-0.3.1/tests/_vispy/test_vispy_bar_layer.py +36 -0
- napari_plot-0.3.1/tests/_vispy/test_vispy_infline_layer.py +94 -0
- napari_plot-0.3.1/tests/_vispy/test_vispy_line_layer.py +14 -0
- napari_plot-0.3.1/tests/_vispy/test_vispy_region_layer.py +102 -0
- napari_plot-0.3.1/tests/_vispy/test_vispy_scatter_layer.py +14 -0
- napari_plot-0.3.1/tests/_vispy/test_vispy_text_layer.py +81 -0
- napari_plot-0.3.1/tests/_vispy/test_vispy_tools.py +16 -0
- napari_plot-0.3.1/tests/components/test_axis.py +84 -0
- {napari_plot-0.1.5/napari_plot/components/_tests → napari_plot-0.3.1/tests/components}/test_camera.py +1 -1
- napari_plot-0.3.1/tests/components/test_tools.py +24 -0
- {napari_plot-0.1.5/napari_plot/components/_tests → napari_plot-0.3.1/tests/components}/test_viewer_model.py +107 -16
- napari_plot-0.3.1/tests/layer_controls/test_qt_bar_controls.py +23 -0
- {napari_plot-0.1.5/napari_plot/_qt/layer_controls/_tests → napari_plot-0.3.1/tests/layer_controls}/test_qt_infline_controls.py +7 -2
- {napari_plot-0.1.5/napari_plot/_qt/layer_controls/_tests → napari_plot-0.3.1/tests/layer_controls}/test_qt_line_controls.py +2 -1
- {napari_plot-0.1.5/napari_plot/_qt/layer_controls/_tests → napari_plot-0.3.1/tests/layer_controls}/test_qt_multiline_controls.py +2 -1
- {napari_plot-0.1.5/napari_plot/_qt/layer_controls/_tests → napari_plot-0.3.1/tests/layer_controls}/test_qt_region_controls.py +9 -2
- {napari_plot-0.1.5/napari_plot/_qt/layer_controls/_tests → napari_plot-0.3.1/tests/layer_controls}/test_qt_scatter_controls.py +12 -17
- napari_plot-0.3.1/tests/layer_controls/test_qt_text_controls.py +127 -0
- {napari_plot-0.1.5/napari_plot/layers/centroids/_tests → napari_plot-0.3.1/tests/layers/centroids}/test_centroids.py +4 -3
- napari_plot-0.3.1/tests/layers/infline/__init__.py +0 -0
- {napari_plot-0.1.5/napari_plot/layers/infline/_tests → napari_plot-0.3.1/tests/layers/infline}/test_infline.py +1 -0
- {napari_plot-0.1.5/napari_plot/layers/infline/_tests → napari_plot-0.3.1/tests/layers/infline}/test_infline_list.py +4 -3
- {napari_plot-0.1.5/napari_plot/layers/infline/_tests → napari_plot-0.3.1/tests/layers/infline}/test_infline_mouse_bindings.py +68 -75
- napari_plot-0.3.1/tests/layers/infline/test_infline_utils.py +31 -0
- napari_plot-0.3.1/tests/layers/line/__init__.py +0 -0
- {napari_plot-0.1.5/napari_plot/layers/line/_tests → napari_plot-0.3.1/tests/layers/line}/test_line.py +2 -1
- napari_plot-0.3.1/tests/layers/multiline/__init__.py +0 -0
- {napari_plot-0.1.5/napari_plot/layers/multiline/_tests → napari_plot-0.3.1/tests/layers/multiline}/test_multiline.py +5 -4
- {napari_plot-0.1.5/napari_plot/layers/multiline/_tests → napari_plot-0.3.1/tests/layers/multiline}/test_multiline_list.py +2 -1
- {napari_plot-0.1.5/napari_plot/layers/multiline/_tests → napari_plot-0.3.1/tests/layers/multiline}/test_multiline_utils.py +2 -1
- napari_plot-0.3.1/tests/layers/region/__init__.py +0 -0
- {napari_plot-0.1.5/napari_plot/layers/region/_tests → napari_plot-0.3.1/tests/layers/region}/test_region.py +35 -7
- {napari_plot-0.1.5/napari_plot/layers/region/_tests → napari_plot-0.3.1/tests/layers/region}/test_region_mouse_bindings.py +55 -62
- napari_plot-0.3.1/tests/layers/scatter/__init__.py +0 -0
- napari_plot-0.3.1/tests/layers/scatter/test_scatter.py +282 -0
- napari_plot-0.3.1/tests/layers/test_bar.py +84 -0
- napari_plot-0.3.1/tests/layers/test_duplication.py +131 -0
- napari_plot-0.3.1/tests/layers/test_registration.py +26 -0
- napari_plot-0.3.1/tests/layers/text/__init__.py +1 -0
- napari_plot-0.3.1/tests/layers/text/test_text.py +228 -0
- {napari_plot-0.1.5/napari_plot/_tests → napari_plot-0.3.1/tests}/test_examples.py +17 -10
- napari_plot-0.3.1/tests/test_lazy_import.py +40 -0
- napari_plot-0.3.1/tests/test_plot_widget.py +103 -0
- napari_plot-0.3.1/tests/test_plotting_api.py +77 -0
- napari_plot-0.3.1/tests/test_scatter_widget.py +86 -0
- napari_plot-0.3.1/tests/utils/__init__.py +0 -0
- napari_plot-0.3.1/tests/utils/test_utilities.py +18 -0
- napari_plot-0.1.5/.github/labeler.yml +0 -22
- napari_plot-0.1.5/.github/workflows/auto_label.yml +0 -12
- napari_plot-0.1.5/.github/workflows/test_comprehensive.yml +0 -172
- napari_plot-0.1.5/.github/workflows/test_pull_requests.yml +0 -148
- napari_plot-0.1.5/.pre-commit-config.yaml +0 -25
- napari_plot-0.1.5/PKG-INFO +0 -155
- napari_plot-0.1.5/codecov.yml +0 -2
- napari_plot-0.1.5/napari_plot/__init__.py +0 -18
- napari_plot-0.1.5/napari_plot/_dock_widget.py +0 -30
- napari_plot-0.1.5/napari_plot/_qt/_tests/test_icon_button.py +0 -45
- napari_plot-0.1.5/napari_plot/_qt/_tests/test_icon_label.py +0 -16
- napari_plot-0.1.5/napari_plot/_qt/helpers.py +0 -342
- napari_plot-0.1.5/napari_plot/_qt/layer_controls/qt_axis_controls.py +0 -256
- napari_plot-0.1.5/napari_plot/_qt/layer_controls/qt_camera_controls.py +0 -260
- napari_plot-0.1.5/napari_plot/_qt/layer_controls/qt_layer_controls_base.py +0 -132
- napari_plot-0.1.5/napari_plot/_qt/layer_controls/qt_layer_controls_container.py +0 -24
- napari_plot-0.1.5/napari_plot/_qt/layer_controls/qt_layers_dialog.py +0 -49
- napari_plot-0.1.5/napari_plot/_qt/qt_dialog.py +0 -196
- napari_plot-0.1.5/napari_plot/_qt/qt_layer_buttons.py +0 -126
- napari_plot-0.1.5/napari_plot/_qt/qt_main_window.py +0 -804
- napari_plot-0.1.5/napari_plot/_qt/qt_toolbar.py +0 -158
- napari_plot-0.1.5/napari_plot/_qt/qt_viewer.py +0 -736
- napari_plot-0.1.5/napari_plot/_qt/widgets/qt_icon_button.py +0 -133
- napari_plot-0.1.5/napari_plot/_qt/widgets/qt_icon_label.py +0 -96
- napari_plot-0.1.5/napari_plot/_qt/widgets/qt_line.py +0 -20
- napari_plot-0.1.5/napari_plot/_qt/widgets/qt_mini_toolbar.py +0 -49
- napari_plot-0.1.5/napari_plot/_tests/test_dock_widget.py +0 -22
- napari_plot-0.1.5/napari_plot/_version.py +0 -5
- napari_plot-0.1.5/napari_plot/_vispy/camera.py +0 -145
- napari_plot-0.1.5/napari_plot/_vispy/canvas.py +0 -98
- napari_plot-0.1.5/napari_plot/_vispy/components/axis.py +0 -58
- napari_plot-0.1.5/napari_plot/_vispy/layers/infline.py +0 -75
- napari_plot-0.1.5/napari_plot/_vispy/layers/region.py +0 -75
- napari_plot-0.1.5/napari_plot/_vispy/layers/scatter.py +0 -109
- napari_plot-0.1.5/napari_plot/_vispy/overlays/grid_lines.py +0 -30
- napari_plot-0.1.5/napari_plot/_vispy/overlays/text.py +0 -50
- napari_plot-0.1.5/napari_plot/_vispy/tools/box.py +0 -64
- napari_plot-0.1.5/napari_plot/_vispy/tools/drag.py +0 -37
- napari_plot-0.1.5/napari_plot/_vispy/tools/polygon.py +0 -65
- napari_plot-0.1.5/napari_plot/_vispy/utils/visual.py +0 -48
- napari_plot-0.1.5/napari_plot/_vispy/visuals/infline.py +0 -15
- napari_plot-0.1.5/napari_plot/_vispy/visuals/region.py +0 -15
- napari_plot-0.1.5/napari_plot/_vispy/visuals/scatter.py +0 -15
- napari_plot-0.1.5/napari_plot/components/axis.py +0 -31
- napari_plot-0.1.5/napari_plot/components/layerlist.py +0 -20
- napari_plot-0.1.5/napari_plot/components/viewer_model.py +0 -387
- napari_plot-0.1.5/napari_plot/layers/__init__.py +0 -16
- napari_plot-0.1.5/napari_plot/layers/base.py +0 -109
- napari_plot-0.1.5/napari_plot/layers/centroids/__init__.py +0 -2
- napari_plot-0.1.5/napari_plot/layers/infline/_infline_key_bindings.py +0 -49
- napari_plot-0.1.5/napari_plot/layers/infline/_tests/test_infline_utils.py +0 -30
- napari_plot-0.1.5/napari_plot/layers/line/__init__.py +0 -2
- napari_plot-0.1.5/napari_plot/layers/multiline/__init__.py +0 -2
- napari_plot-0.1.5/napari_plot/layers/region/_region.py +0 -63
- napari_plot-0.1.5/napari_plot/layers/region/_region_key_bindings.py +0 -62
- napari_plot-0.1.5/napari_plot/layers/region/_region_list.py +0 -682
- napari_plot-0.1.5/napari_plot/layers/region/_region_utils.py +0 -81
- napari_plot-0.1.5/napari_plot/layers/region/_tests/test_region_list.py +0 -41
- napari_plot-0.1.5/napari_plot/layers/scatter/__init__.py +0 -2
- napari_plot-0.1.5/napari_plot/layers/scatter/_tests/test_scatter.py +0 -115
- napari_plot-0.1.5/napari_plot/layers/scatter/scatter.py +0 -507
- napari_plot-0.1.5/napari_plot/resources/__init__.py +0 -43
- napari_plot-0.1.5/napari_plot/resources/qss/04_napari1d.qss +0 -119
- napari_plot-0.1.5/napari_plot/viewer.py +0 -104
- napari_plot-0.1.5/napari_plot.egg-info/PKG-INFO +0 -155
- napari_plot-0.1.5/napari_plot.egg-info/SOURCES.txt +0 -179
- napari_plot-0.1.5/napari_plot.egg-info/entry_points.txt +0 -5
- napari_plot-0.1.5/napari_plot.egg-info/requires.txt +0 -39
- napari_plot-0.1.5/pyproject.toml +0 -75
- napari_plot-0.1.5/setup.cfg +0 -108
- napari_plot-0.1.5/setup.py +0 -6
- napari_plot-0.1.5/tox.ini +0 -82
- {napari_plot-0.1.5 → napari_plot-0.3.1}/.deepsource.toml +0 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/LICENSE +0 -0
- {napari_plot-0.1.5/napari_plot/_qt/_tests → napari_plot-0.3.1/napari_plot/_app_model/actions}/__init__.py +0 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_qt/__init__.py +0 -0
- {napari_plot-0.1.5/napari_plot/_qt/layer_controls/_tests → napari_plot-0.3.1/napari_plot/_qt/component_controls}/__init__.py +0 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/__init__.py +0 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_qt/widgets/__init__.py +0 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/_vispy/components/__init__.py +0 -0
- {napari_plot-0.1.5/napari_plot/_tests → napari_plot-0.3.1/napari_plot/_vispy/layers}/__init__.py +0 -0
- {napari_plot-0.1.5/napari_plot/_vispy/layers → napari_plot-0.3.1/napari_plot/_vispy/tools}/__init__.py +0 -0
- {napari_plot-0.1.5/napari_plot/_vispy/overlays → napari_plot-0.3.1/napari_plot/_vispy/utils}/__init__.py +0 -0
- {napari_plot-0.1.5/napari_plot/_vispy/tools → napari_plot-0.3.1/napari_plot/_vispy/visuals}/__init__.py +0 -0
- {napari_plot-0.1.5/napari_plot/_vispy → napari_plot-0.3.1/napari_plot/layers}/utils/__init__.py +0 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/resources/icons/new_centroids.svg +0 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/resources/icons/new_inf_line.svg +0 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/resources/icons/new_line.svg +0 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/resources/icons/new_region.svg +0 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/resources/icons/new_scatter.svg +0 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/utils/__init__.py +0 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/utils/_register.py +0 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot/utils/system.py +0 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/napari_plot.egg-info/dependency_links.txt +0 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/renovate.json +0 -0
- {napari_plot-0.1.5 → napari_plot-0.3.1}/scripts/qtaicons.bat +0 -0
- {napari_plot-0.1.5/napari_plot/_vispy/visuals → napari_plot-0.3.1/tests}/__init__.py +0 -0
- {napari_plot-0.1.5/napari_plot/layers/centroids/_tests → napari_plot-0.3.1/tests/_app_model}/__init__.py +0 -0
- {napari_plot-0.1.5/napari_plot/layers/infline/_tests → napari_plot-0.3.1/tests/_qt}/__init__.py +0 -0
- {napari_plot-0.1.5/napari_plot/_qt/_tests → napari_plot-0.3.1/tests/_qt}/test_qt_window.py +0 -0
- {napari_plot-0.1.5/napari_plot/layers/line/_tests → napari_plot-0.3.1/tests/_vispy}/__init__.py +0 -0
- {napari_plot-0.1.5/napari_plot/layers/multiline/_tests → napari_plot-0.3.1/tests/components}/__init__.py +0 -0
- {napari_plot-0.1.5/napari_plot/layers/region/_tests → napari_plot-0.3.1/tests/layer_controls}/__init__.py +0 -0
- {napari_plot-0.1.5/napari_plot/layers/scatter/_tests → napari_plot-0.3.1/tests/layers}/__init__.py +0 -0
- {napari_plot-0.1.5/napari_plot/utils/vendored → napari_plot-0.3.1/tests/layers/centroids}/__init__.py +0 -0
- /napari_plot-0.1.5/napari_plot/layers/region/_tests/test_region_utils.py → /napari_plot-0.3.1/tests/utils/test_tool.py +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "\U0001F41B Bug Report"
|
|
3
|
+
about: Submit a bug report to help us improve napari-plot
|
|
4
|
+
title: ''
|
|
5
|
+
labels: bug
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 🐛 Bug
|
|
11
|
+
|
|
12
|
+
<!-- A clear and concise description of what the bug is. -->
|
|
13
|
+
|
|
14
|
+
## To Reproduce
|
|
15
|
+
|
|
16
|
+
Steps to reproduce the behavior:
|
|
17
|
+
|
|
18
|
+
1.
|
|
19
|
+
2.
|
|
20
|
+
3.
|
|
21
|
+
|
|
22
|
+
<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->
|
|
23
|
+
|
|
24
|
+
## Expected behavior
|
|
25
|
+
|
|
26
|
+
<!-- A clear and concise description of what you expected to happen. -->
|
|
27
|
+
|
|
28
|
+
## Environment
|
|
29
|
+
|
|
30
|
+
- Please copy and paste the information at napari info option in help menubar here:
|
|
31
|
+
|
|
32
|
+
- Any other relevant information:
|
|
33
|
+
|
|
34
|
+
## Additional context
|
|
35
|
+
|
|
36
|
+
<!-- Add any other context about the problem here. -->
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "\U0001F4DA Documentation"
|
|
3
|
+
about: Report an issue with napari-plot documentation
|
|
4
|
+
title: ''
|
|
5
|
+
labels: documentation
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 📚 Documentation
|
|
11
|
+
<!-- A clear and concise description of the documentation that needs to be created/updated -->
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "\U0001F680 Feature Request"
|
|
3
|
+
about: Submit a proposal/request for a new napari-plot feature
|
|
4
|
+
title: ''
|
|
5
|
+
labels: feature
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 🚀 Feature
|
|
11
|
+
<!-- A clear and concise description of the feature proposal -->
|
|
12
|
+
|
|
13
|
+
## Motivation
|
|
14
|
+
|
|
15
|
+
<!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->
|
|
16
|
+
|
|
17
|
+
## Pitch
|
|
18
|
+
|
|
19
|
+
<!-- A clear and concise description of what you want to happen. -->
|
|
20
|
+
|
|
21
|
+
## Alternatives
|
|
22
|
+
|
|
23
|
+
<!-- A clear and concise description of any alternative solutions or features you've considered, if any. -->
|
|
24
|
+
|
|
25
|
+
## Additional context
|
|
26
|
+
|
|
27
|
+
<!-- Add any other context or screenshots about the feature request here. -->
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Description
|
|
2
|
+
<!-- What does this pull request (PR) do? Why is it necessary? -->
|
|
3
|
+
<!-- Tell us about your new feature, improvement, or fix! -->
|
|
4
|
+
<!-- If your change includes user interface changes, please add an image, or an animation "An image is worth a thousand words!" -->
|
|
5
|
+
<!-- You can use https://www.cockos.com/licecap/ or similar to create animations -->
|
|
6
|
+
|
|
7
|
+
## Type of change
|
|
8
|
+
<!-- Please delete options that are not relevant. -->
|
|
9
|
+
- [ ] Bug-fix (non-breaking change which fixes an issue)
|
|
10
|
+
- [ ] New feature (non-breaking change which adds functionality)
|
|
11
|
+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
|
|
12
|
+
- [ ] This change requires a documentation update
|
|
13
|
+
|
|
14
|
+
# References
|
|
15
|
+
<!-- What resources, documentation, and guides were used in the creation of this PR? -->
|
|
16
|
+
<!-- If this is a bug-fix or otherwise resolves an issue, reference it here with "closes #(issue)" -->
|
|
17
|
+
|
|
18
|
+
# How has this been tested?
|
|
19
|
+
<!-- Please describe the tests that you ran to verify your changes. -->
|
|
20
|
+
- [ ] example: the test suite for my feature covers cases x, y, and z
|
|
21
|
+
- [ ] example: all tests pass with my change
|
|
22
|
+
- [ ] example: I check if my changes works with both PySide and PyQt backends
|
|
23
|
+
as there are small differences between the two Qt bindings.
|
|
24
|
+
|
|
25
|
+
## Final checklist:
|
|
26
|
+
- [ ] My PR is the minimum possible work for the desired functionality
|
|
27
|
+
- [ ] I have commented my code, particularly in hard-to-understand areas
|
|
28
|
+
- [ ] I have made corresponding changes to the documentation
|
|
29
|
+
- [ ] I have added tests that prove my fix is effective or that my feature works
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "{{ env.TITLE }}"
|
|
3
|
+
labels: [bug]
|
|
4
|
+
---
|
|
5
|
+
The {{ workflow }} workflow failed on {{ date | date("YYYY-MM-DD HH:mm") }} UTC
|
|
6
|
+
|
|
7
|
+
The most recent failing test was on {{ env.PLATFORM }} py{{ env.PYTHON }} {{ env.BACKEND }}
|
|
8
|
+
with commit: {{ sha }}
|
|
9
|
+
|
|
10
|
+
Full run: https://github.com/napari/napari/actions/runs/{{ env.RUN_ID }}
|
|
11
|
+
|
|
12
|
+
(This post will be updated if another test fails, as long as this issue remains open.)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
2
|
+
|
|
3
|
+
version: 2
|
|
4
|
+
updates:
|
|
5
|
+
- package-ecosystem: "github-actions"
|
|
6
|
+
directory: "/"
|
|
7
|
+
schedule:
|
|
8
|
+
interval: "monthly"
|
|
9
|
+
commit-message:
|
|
10
|
+
prefix: "ci(dependabot):"
|
|
11
|
+
|
|
12
|
+
- package-ecosystem: "pip"
|
|
13
|
+
directory: "/resources"
|
|
14
|
+
schedule:
|
|
15
|
+
interval: "weekly"
|
|
16
|
+
|
|
17
|
+
target-branch: "develop"
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
name: Test and deploy
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
- "v*x"
|
|
8
|
+
tags:
|
|
9
|
+
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
|
|
10
|
+
pull_request:
|
|
11
|
+
branches:
|
|
12
|
+
- main
|
|
13
|
+
- "v*x"
|
|
14
|
+
workflow_dispatch:
|
|
15
|
+
|
|
16
|
+
concurrency:
|
|
17
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
18
|
+
cancel-in-progress: true
|
|
19
|
+
|
|
20
|
+
permissions:
|
|
21
|
+
contents: read
|
|
22
|
+
|
|
23
|
+
env:
|
|
24
|
+
COLUMNS: 120
|
|
25
|
+
|
|
26
|
+
jobs:
|
|
27
|
+
check-manifest:
|
|
28
|
+
name: Quality and package metadata
|
|
29
|
+
runs-on: ubuntu-latest
|
|
30
|
+
steps:
|
|
31
|
+
- uses: actions/checkout@v7
|
|
32
|
+
- uses: astral-sh/setup-uv@v9.0.0
|
|
33
|
+
- run: uvx check-manifest
|
|
34
|
+
- run: uvx ruff check napari_plot tests
|
|
35
|
+
- run: uvx --from npe2 npe2 validate napari_plot/napari.yaml
|
|
36
|
+
|
|
37
|
+
build-smoke:
|
|
38
|
+
name: Build and installed-package smoke test
|
|
39
|
+
runs-on: ubuntu-latest
|
|
40
|
+
steps:
|
|
41
|
+
- uses: actions/checkout@v7
|
|
42
|
+
- uses: astral-sh/setup-uv@v9.0.0
|
|
43
|
+
with:
|
|
44
|
+
python-version: "3.11"
|
|
45
|
+
enable-cache: true
|
|
46
|
+
- run: uv build
|
|
47
|
+
- name: Validate distribution metadata
|
|
48
|
+
run: uvx twine check dist/*
|
|
49
|
+
- run: uv venv .wheel-smoke-venv
|
|
50
|
+
- run: uv pip install --python .wheel-smoke-venv/bin/python dist/*.whl pyqt6
|
|
51
|
+
- run: uv venv .sdist-smoke-venv
|
|
52
|
+
- run: uv pip install --python .sdist-smoke-venv/bin/python dist/*.tar.gz pyqt6
|
|
53
|
+
- name: Set up Linux display and Qt system libraries
|
|
54
|
+
uses: pyvista/setup-headless-display-action@v4
|
|
55
|
+
with:
|
|
56
|
+
qt: true
|
|
57
|
+
- name: Import public API from wheel installation
|
|
58
|
+
working-directory: ${{ runner.temp }}
|
|
59
|
+
run: >
|
|
60
|
+
${{ github.workspace }}/.wheel-smoke-venv/bin/python -c
|
|
61
|
+
"import napari_plot; [getattr(napari_plot, name) for name in napari_plot.__all__]"
|
|
62
|
+
- name: Import plugin command targets from wheel installation
|
|
63
|
+
working-directory: ${{ runner.temp }}
|
|
64
|
+
run: >
|
|
65
|
+
${{ github.workspace }}/.wheel-smoke-venv/bin/python -c
|
|
66
|
+
"from npe2 import PluginManifest; from npe2.manifest.utils import import_python_name;
|
|
67
|
+
import napari_plot; manifest = PluginManifest.from_file(napari_plot.__path__[0] + '/napari.yaml');
|
|
68
|
+
[import_python_name(command.python_name) for command in manifest.contributions.commands]"
|
|
69
|
+
- name: Import public API from source distribution installation
|
|
70
|
+
working-directory: ${{ runner.temp }}
|
|
71
|
+
run: >
|
|
72
|
+
${{ github.workspace }}/.sdist-smoke-venv/bin/python -c
|
|
73
|
+
"import napari_plot; [getattr(napari_plot, name) for name in napari_plot.__all__]"
|
|
74
|
+
- name: Import plugin command targets from source distribution installation
|
|
75
|
+
working-directory: ${{ runner.temp }}
|
|
76
|
+
run: >
|
|
77
|
+
${{ github.workspace }}/.sdist-smoke-venv/bin/python -c
|
|
78
|
+
"from npe2 import PluginManifest; from npe2.manifest.utils import import_python_name;
|
|
79
|
+
import napari_plot; manifest = PluginManifest.from_file(napari_plot.__path__[0] + '/napari.yaml');
|
|
80
|
+
[import_python_name(command.python_name) for command in manifest.contributions.commands]"
|
|
81
|
+
|
|
82
|
+
- name: Upload package distributions
|
|
83
|
+
uses: actions/upload-artifact@v7
|
|
84
|
+
with:
|
|
85
|
+
name: python-package-distributions
|
|
86
|
+
path: dist/
|
|
87
|
+
if-no-files-found: error
|
|
88
|
+
|
|
89
|
+
test_uv:
|
|
90
|
+
name: Test UV (${{ matrix.backend }} ${{ matrix.python-version }} ${{ matrix.os }})
|
|
91
|
+
runs-on: ${{ matrix.os }}
|
|
92
|
+
env:
|
|
93
|
+
QT_API: ${{ matrix.backend }}
|
|
94
|
+
UV_NO_SYNC: "1"
|
|
95
|
+
UV_MANAGED_PYTHON: "1"
|
|
96
|
+
strategy:
|
|
97
|
+
fail-fast: false
|
|
98
|
+
matrix:
|
|
99
|
+
os: [macos-latest, windows-latest, ubuntu-latest]
|
|
100
|
+
python-version: ["3.11", "3.12", "3.13"]
|
|
101
|
+
backend: [pyside6, pyqt6]
|
|
102
|
+
|
|
103
|
+
steps:
|
|
104
|
+
- uses: actions/checkout@v7
|
|
105
|
+
- uses: astral-sh/setup-uv@v9.0.0
|
|
106
|
+
with:
|
|
107
|
+
python-version: ${{ matrix.python-version }}
|
|
108
|
+
enable-cache: true
|
|
109
|
+
|
|
110
|
+
- name: Install dependencies
|
|
111
|
+
run: uv sync --no-dev --group test --extra ${{ matrix.backend }} --extra optional
|
|
112
|
+
|
|
113
|
+
- uses: pyvista/setup-headless-display-action@v4
|
|
114
|
+
with:
|
|
115
|
+
qt: true
|
|
116
|
+
|
|
117
|
+
- name: Test
|
|
118
|
+
env:
|
|
119
|
+
PYTHONFAULTHANDLER: "1"
|
|
120
|
+
PYTHONUNBUFFERED: "1"
|
|
121
|
+
run: >
|
|
122
|
+
uv run python -X faulthandler
|
|
123
|
+
-m coverage run -p -m pytest -v --color=yes
|
|
124
|
+
|
|
125
|
+
- name: Install GDB
|
|
126
|
+
if: failure() && runner.os == 'Linux' && matrix.backend == 'pyqt6'
|
|
127
|
+
run: |
|
|
128
|
+
sudo apt-get update
|
|
129
|
+
sudo apt-get install --yes gdb
|
|
130
|
+
|
|
131
|
+
- name: Collect native crash backtrace
|
|
132
|
+
if: failure() && runner.os == 'Linux' && matrix.backend == 'pyqt6'
|
|
133
|
+
env:
|
|
134
|
+
PYTHONFAULTHANDLER: "1"
|
|
135
|
+
PYTHONUNBUFFERED: "1"
|
|
136
|
+
run: |
|
|
137
|
+
gdb --batch --nx \
|
|
138
|
+
-ex "set pagination off" \
|
|
139
|
+
-ex "handle SIGPIPE nostop noprint pass" \
|
|
140
|
+
-ex run \
|
|
141
|
+
-ex "bt full" \
|
|
142
|
+
-ex "thread apply all bt 30" \
|
|
143
|
+
--args .venv/bin/python -X faulthandler \
|
|
144
|
+
-m coverage run -p -m pytest -v --color=yes
|
|
145
|
+
|
|
146
|
+
- name: Upload coverage
|
|
147
|
+
uses: actions/upload-artifact@v7
|
|
148
|
+
with:
|
|
149
|
+
name: covreport-${{ matrix.os }}-py${{ matrix.python-version }}-${{ matrix.backend }}
|
|
150
|
+
path: ./.coverage*
|
|
151
|
+
include-hidden-files: true
|
|
152
|
+
|
|
153
|
+
deploy-test:
|
|
154
|
+
name: Publish to TestPyPI
|
|
155
|
+
needs: [check-manifest, build-smoke, test_uv]
|
|
156
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
|
157
|
+
runs-on: ubuntu-latest
|
|
158
|
+
|
|
159
|
+
steps:
|
|
160
|
+
- name: Download package distributions
|
|
161
|
+
uses: actions/download-artifact@v8
|
|
162
|
+
with:
|
|
163
|
+
name: python-package-distributions
|
|
164
|
+
path: dist/
|
|
165
|
+
|
|
166
|
+
- name: Publish package distributions to TestPyPI
|
|
167
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
168
|
+
with:
|
|
169
|
+
user: __token__
|
|
170
|
+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
|
171
|
+
repository-url: https://test.pypi.org/legacy/
|
|
172
|
+
skip-existing: true
|
|
173
|
+
|
|
174
|
+
deploy:
|
|
175
|
+
name: Publish to PyPI
|
|
176
|
+
needs: deploy-test
|
|
177
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
|
178
|
+
runs-on: ubuntu-latest
|
|
179
|
+
|
|
180
|
+
steps:
|
|
181
|
+
- name: Download package distributions
|
|
182
|
+
uses: actions/download-artifact@v8
|
|
183
|
+
with:
|
|
184
|
+
name: python-package-distributions
|
|
185
|
+
path: dist/
|
|
186
|
+
|
|
187
|
+
- name: Publish package distributions to PyPI
|
|
188
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
189
|
+
with:
|
|
190
|
+
user: __token__
|
|
191
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
192
|
+
|
|
193
|
+
github-release:
|
|
194
|
+
name: Create GitHub release
|
|
195
|
+
needs: deploy
|
|
196
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
|
197
|
+
runs-on: ubuntu-latest
|
|
198
|
+
permissions:
|
|
199
|
+
contents: write
|
|
200
|
+
|
|
201
|
+
steps:
|
|
202
|
+
- name: Download package distributions
|
|
203
|
+
uses: actions/download-artifact@v8
|
|
204
|
+
with:
|
|
205
|
+
name: python-package-distributions
|
|
206
|
+
path: dist/
|
|
207
|
+
|
|
208
|
+
- name: Create GitHub release
|
|
209
|
+
uses: softprops/action-gh-release@v3
|
|
210
|
+
with:
|
|
211
|
+
generate_release_notes: true
|
|
212
|
+
prerelease: ${{ contains(github.ref_name, 'rc') }}
|
|
213
|
+
files: dist/*
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v6.0.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: no-commit-to-branch
|
|
6
|
+
args: ['--branch', 'master', "--branch", "main"]
|
|
7
|
+
- repo: https://github.com/hadialqattan/pycln
|
|
8
|
+
rev: v2.6.0
|
|
9
|
+
hooks:
|
|
10
|
+
- id: pycln
|
|
11
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
12
|
+
rev: v0.16.1
|
|
13
|
+
hooks:
|
|
14
|
+
- id: ruff
|
|
15
|
+
exclude: _vendor|vendored
|
|
16
|
+
- repo: https://github.com/seddonym/import-linter
|
|
17
|
+
rev: v2.13
|
|
18
|
+
hooks:
|
|
19
|
+
- id: import-linter
|
|
20
|
+
stages: [manual]
|
|
@@ -13,6 +13,7 @@ exclude requirements.txt
|
|
|
13
13
|
recursive-exclude tools *
|
|
14
14
|
recursive-exclude docs *
|
|
15
15
|
recursive-exclude examples *
|
|
16
|
+
recursive-exclude examples_with_napari *
|
|
16
17
|
recursive-exclude misc *
|
|
17
18
|
recursive-exclude napari_plot __pycache__
|
|
18
19
|
recursive-exclude napari_plot *.pyc
|
|
@@ -21,4 +22,5 @@ recursive-exclude binder *
|
|
|
21
22
|
exclude bundle.py
|
|
22
23
|
exclude dockerfile
|
|
23
24
|
exclude napari_plot _version.py
|
|
24
|
-
exclude mkdocs.yml
|
|
25
|
+
exclude mkdocs.yml
|
|
26
|
+
exclude .readthedocs.yaml
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: napari_plot
|
|
3
|
+
Version: 0.3.1
|
|
4
|
+
Summary: Plugin providing support for 1d plotting in napari
|
|
5
|
+
Author-email: Lukasz Migas <lukas.migas@yahoo.com>
|
|
6
|
+
License: BSD 3-Clause
|
|
7
|
+
Project-URL: Homepage, https://github.com/lukasz-migas/napari-plot
|
|
8
|
+
Project-URL: Download, https://github.com/lukasz-migas/napari-plot
|
|
9
|
+
Project-URL: Bug Tracker, https://github.com/lukasz-migas/napari-plot/issues
|
|
10
|
+
Project-URL: Documentation, https://github.com/lukasz-migas/napari-plot#README.md
|
|
11
|
+
Project-URL: Source Code, https://github.com/lukasz-migas/napari-plot
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Environment :: X11 Applications :: Qt
|
|
14
|
+
Classifier: Intended Audience :: Education
|
|
15
|
+
Classifier: Intended Audience :: Science/Research
|
|
16
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
17
|
+
Classifier: Programming Language :: C
|
|
18
|
+
Classifier: Programming Language :: Python
|
|
19
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Topic :: Scientific/Engineering
|
|
24
|
+
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
25
|
+
Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
26
|
+
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
27
|
+
Classifier: Topic :: Utilities
|
|
28
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
29
|
+
Classifier: Operating System :: POSIX
|
|
30
|
+
Classifier: Operating System :: Unix
|
|
31
|
+
Classifier: Operating System :: MacOS
|
|
32
|
+
Classifier: Framework :: napari
|
|
33
|
+
Requires-Python: >=3.11
|
|
34
|
+
Description-Content-Type: text/markdown
|
|
35
|
+
License-File: LICENSE
|
|
36
|
+
Requires-Dist: napari-plugin-engine>=0.2.0
|
|
37
|
+
Requires-Dist: numpy
|
|
38
|
+
Requires-Dist: qtpy
|
|
39
|
+
Requires-Dist: qtawesome>=1.2.0
|
|
40
|
+
Requires-Dist: napari==0.8.0
|
|
41
|
+
Requires-Dist: matplotlib
|
|
42
|
+
Requires-Dist: vispy
|
|
43
|
+
Requires-Dist: koyo
|
|
44
|
+
Requires-Dist: qtextra
|
|
45
|
+
Provides-Extra: pyside6
|
|
46
|
+
Requires-Dist: pyside6>6.9.0; platform_system == "Windows" and extra == "pyside6"
|
|
47
|
+
Requires-Dist: pyside6; platform_system != "Windows" and extra == "pyside6"
|
|
48
|
+
Provides-Extra: pyside
|
|
49
|
+
Requires-Dist: napari_plot[pyside6]; extra == "pyside"
|
|
50
|
+
Provides-Extra: pyqt5
|
|
51
|
+
Requires-Dist: PyQt5!=5.15.0,>=5.13.2; extra == "pyqt5"
|
|
52
|
+
Provides-Extra: pyqt6
|
|
53
|
+
Requires-Dist: pyqt6>=6.9.0; extra == "pyqt6"
|
|
54
|
+
Requires-Dist: pyqt6!=6.6.1; platform_system == "Darwin" and extra == "pyqt6"
|
|
55
|
+
Provides-Extra: pyqt
|
|
56
|
+
Requires-Dist: napari_plot[pyqt6]; extra == "pyqt"
|
|
57
|
+
Provides-Extra: qt
|
|
58
|
+
Requires-Dist: napari_plot[pyqt]; extra == "qt"
|
|
59
|
+
Provides-Extra: all
|
|
60
|
+
Requires-Dist: napari_plot[optional,pyqt]; extra == "all"
|
|
61
|
+
Requires-Dist: napari-plugin-manager<0.2.0,>=0.1.10; extra == "all"
|
|
62
|
+
Provides-Extra: optional
|
|
63
|
+
Requires-Dist: triangle; platform_machine != "arm64" and extra == "optional"
|
|
64
|
+
Requires-Dist: numba>=0.57.1; extra == "optional"
|
|
65
|
+
Requires-Dist: zarr>=2.12.0; extra == "optional"
|
|
66
|
+
Provides-Extra: test
|
|
67
|
+
Requires-Dist: babel>=2.9.0; extra == "test"
|
|
68
|
+
Requires-Dist: fsspec>=2023.10.0; extra == "test"
|
|
69
|
+
Requires-Dist: hypothesis>=6.8.0; extra == "test"
|
|
70
|
+
Requires-Dist: lxml[html_clean]>5; extra == "test"
|
|
71
|
+
Requires-Dist: matplotlib>=3.6.1; extra == "test"
|
|
72
|
+
Requires-Dist: numba>=0.57.1; extra == "test"
|
|
73
|
+
Requires-Dist: pooch>=1.6.0; extra == "test"
|
|
74
|
+
Requires-Dist: coverage>7; extra == "test"
|
|
75
|
+
Requires-Dist: docstring_parser>=0.15; extra == "test"
|
|
76
|
+
Requires-Dist: pretend>=1.0.9; extra == "test"
|
|
77
|
+
Requires-Dist: pyautogui>=0.9.54; extra == "test"
|
|
78
|
+
Requires-Dist: pytest-qt>=4.3.1; extra == "test"
|
|
79
|
+
Requires-Dist: pytest-pretty>=1.1.0; extra == "test"
|
|
80
|
+
Requires-Dist: pytest>=8.1.0; extra == "test"
|
|
81
|
+
Requires-Dist: tensorstore>=0.1.13; extra == "test"
|
|
82
|
+
Requires-Dist: xarray>=0.16.2; extra == "test"
|
|
83
|
+
Requires-Dist: zarr<3.0.0,>=2.12.0; extra == "test"
|
|
84
|
+
Requires-Dist: IPython>=7.25.0; extra == "test"
|
|
85
|
+
Requires-Dist: qtconsole>=4.5.1; extra == "test"
|
|
86
|
+
Requires-Dist: rich>=12.0.0; extra == "test"
|
|
87
|
+
Requires-Dist: napari-plugin-manager<0.2.0,>=0.1.10; extra == "test"
|
|
88
|
+
Provides-Extra: test-extra
|
|
89
|
+
Requires-Dist: torch>=1.7; extra == "test-extra"
|
|
90
|
+
Provides-Extra: release
|
|
91
|
+
Requires-Dist: PyGithub>=1.44.1; extra == "release"
|
|
92
|
+
Requires-Dist: twine>=3.1.1; extra == "release"
|
|
93
|
+
Requires-Dist: gitpython>=3.1.0; extra == "release"
|
|
94
|
+
Requires-Dist: requests-cache>=0.9.2; extra == "release"
|
|
95
|
+
Provides-Extra: dev
|
|
96
|
+
Requires-Dist: ruff; extra == "dev"
|
|
97
|
+
Requires-Dist: pdbpp; extra == "dev"
|
|
98
|
+
Requires-Dist: check-manifest>=0.42; extra == "dev"
|
|
99
|
+
Requires-Dist: pre-commit>=2.9.0; extra == "dev"
|
|
100
|
+
Requires-Dist: pydantic; extra == "dev"
|
|
101
|
+
Requires-Dist: napari_plot[test]; extra == "dev"
|
|
102
|
+
Provides-Extra: build
|
|
103
|
+
Requires-Dist: ruff; extra == "build"
|
|
104
|
+
Requires-Dist: pyqt6; extra == "build"
|
|
105
|
+
Provides-Extra: docs
|
|
106
|
+
Requires-Dist: mkdocs; extra == "docs"
|
|
107
|
+
Requires-Dist: mkdocs-material; extra == "docs"
|
|
108
|
+
Requires-Dist: mkdocs-minify-plugin; extra == "docs"
|
|
109
|
+
Requires-Dist: mkdocstrings; extra == "docs"
|
|
110
|
+
Requires-Dist: mkdocstrings-python; extra == "docs"
|
|
111
|
+
Requires-Dist: markdown-changelog; extra == "docs"
|
|
112
|
+
Dynamic: license-file
|
|
113
|
+
|
|
114
|
+
# napari-plot
|
|
115
|
+
|
|
116
|
+
[](https://github.com/lukasz-migas/napari-plot/raw/main/LICENSE)
|
|
117
|
+
[](https://pypi.org/project/napari-plot)
|
|
118
|
+
[](https://anaconda.org/conda-forge/napari-plot)
|
|
119
|
+
[](https://python.org)
|
|
120
|
+
[](https://github.com/lukasz-migas/napari-plot/actions)
|
|
121
|
+
[](https://codecov.io/gh/lukasz-migas/napari-plot)
|
|
122
|
+
[](https://github.com/pre-commit/pre-commit)
|
|
123
|
+
[](https://pypistats.org/packages/napari-plot)
|
|
124
|
+
[](https://www.napari-hub.org/plugins/napari-plot)
|
|
125
|
+
[](https://napari-plot.readthedocs.io/en/latest/?badge=latest)
|
|
126
|
+
|
|
127
|
+
## Interactive plotting in napari or a standalone Qt viewer
|
|
128
|
+
|
|
129
|
+
napari-plot provides GPU-accelerated Line, Scatter, MultiLine, Centroids, Text,
|
|
130
|
+
Region, InfLine, and Bar layers. It supports linear, logarithmic, and categorical
|
|
131
|
+
axes, an interactive legend, data selection tools, and image display.
|
|
132
|
+
|
|
133
|
+
## Usage
|
|
134
|
+
|
|
135
|
+
You can use `napari-plot` alongside `napari` where it is embedded as a dock widget. If using this option, controls are relegated to a toolbar
|
|
136
|
+
where you can adjust layer properties like you would do in `napari`.
|
|
137
|
+
|
|
138
|
+

|
|
139
|
+
|
|
140
|
+
Or as a standalone app where only one-dimensional plotting is enabled. In this mode, controls take central stage and reflect `napari's` own
|
|
141
|
+
behaviour where layer controls are embedded in the main application.
|
|
142
|
+
|
|
143
|
+

|
|
144
|
+
|
|
145
|
+
Data selection is also permitted by enabling one of the available selection tools.
|
|
146
|
+
|
|
147
|
+

|
|
148
|
+
|
|
149
|
+
## Roadmap:
|
|
150
|
+
|
|
151
|
+
This is only provisional list of features that I would like to see implemented. It barely scratches the surface of what plotting tool should cover so as soon as the basics are covered,
|
|
152
|
+
focus will be put towards adding more exotic features. If there are features that you certainly wish to be included,
|
|
153
|
+
please modify the list below or create a [new issue](https://github.com/lukasz-migas/napari-plot/issues/new)
|
|
154
|
+
|
|
155
|
+
- [ ] Support for new layer types. Layers are based on `napari's` `Layer`, albeit in a two-dimensional setting. Supported and planned layers:
|
|
156
|
+
- [x] Line Layer - simple line plot.
|
|
157
|
+
- [x] Scatter Layer - scatter plot (similar to `napari's Points` layer).
|
|
158
|
+
- [x] Centroids/Segments Layer - horizontal or vertical line segments.
|
|
159
|
+
- [x] InfLine Layer - infinite horizontal or vertical lines that span over very broad range. Useful for defining regions of interest.
|
|
160
|
+
- [x] Region Layer - infinite horizontal or vertical rectangular boxes that span over very broad range. Useful for defining regions of interest.
|
|
161
|
+
- [x] Shapes Layer - `napari's` own `Shapes` layer
|
|
162
|
+
- [x] Points Layer - `napari's` own `Points` layer
|
|
163
|
+
- [x] Multi-line Layer - more efficient implementation of `Line` layer when multiple lines are necessary.
|
|
164
|
+
- [x] Bar - horizontal and vertical bar charts.
|
|
165
|
+
- [x] Proper interactivity of each layer type (e.g. moving `Region` or `InfLine`, adding points, etc...)
|
|
166
|
+
- [x] Intuitive interactivity. `napari-plot` will provide excellent level of interactivity with the plotted data. We plan to support several types of `Tools` that permit efficient interrogation of the data. We currently provide several `zoom` and `select` tools and hope to add few extras in the future.
|
|
167
|
+
- [x] Box-zoom - standard zooming rectangle. Simply `left-mouse + drag/release` in the canvas on region of interest
|
|
168
|
+
- [x] Horizontal span - zoom-in only in the y-axis by `Ctrl + left-mouse + drag/release` in the canvas.
|
|
169
|
+
- [x] Vertical span - span-in only in the x-axis by `Shift + left-mouse + drag/release` in the canvas.
|
|
170
|
+
- [x] Rectangle select - rectangle tool allowing sub-selection of data in the canvas. Similar to the `Box-zoom` but without the zooming part.
|
|
171
|
+
- [x] Polygon select - polygon tool allowing sub-selection of data in the canvas.
|
|
172
|
+
- [x] Lasso select - lasso tool allowing sub-selection of data in the canvas.
|
|
173
|
+
- [x] Interactive plot legend
|
|
174
|
+
- [x] Customizable axis visuals.
|
|
175
|
+
- [x] Plot axis enabling customization of tick/label size and color
|
|
176
|
+
- [x] Support for logarithmic and categorical scales
|
|
177
|
+
- [x] Add convenient plotting interface:
|
|
178
|
+
- [x] Add `.plot` functionality
|
|
179
|
+
- [x] Add `.scatter` functionality
|
|
180
|
+
- [x] Add `.hbar` and `.vbar` functionality
|
|
181
|
+
- [x] Add `.imshow` functionality
|
|
182
|
+
|
|
183
|
+
----------------------------------
|
|
184
|
+
|
|
185
|
+
This [napari] plugin was generated with [Cookiecutter] using with [@napari]'s [cookiecutter-napari-plugin] template.
|
|
186
|
+
|
|
187
|
+
<!--
|
|
188
|
+
Don't miss the full getting started guide to set up your new package:
|
|
189
|
+
https://github.com/napari/cookiecutter-napari-plugin#getting-started
|
|
190
|
+
|
|
191
|
+
and review the napari docs for plugin developers:
|
|
192
|
+
https://napari.org/docs/plugins/index.html
|
|
193
|
+
-->
|
|
194
|
+
|
|
195
|
+
## Installation
|
|
196
|
+
|
|
197
|
+
You can install `napari-plot` directly from PyPI via:
|
|
198
|
+
|
|
199
|
+
```shell
|
|
200
|
+
pip install napari-plot
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
or from the git repo:
|
|
204
|
+
|
|
205
|
+
```shell
|
|
206
|
+
git clone https://github.com/lukasz-migas/napari-plot.git
|
|
207
|
+
cd napari-plot
|
|
208
|
+
pip install -e '.[all]'
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Python 3.11 or later is required. See the
|
|
212
|
+
[documentation](https://napari-plot.readthedocs.io/) for standalone and embedded
|
|
213
|
+
quick starts, layer examples, axis controls, interactions, and the public API.
|
|
214
|
+
|
|
215
|
+
## Contributing
|
|
216
|
+
|
|
217
|
+
Contributions are very welcome. Install the test environment and run the tests with [uv]:
|
|
218
|
+
|
|
219
|
+
```shell
|
|
220
|
+
uv sync --no-dev --group test --extra pyqt6 --extra optional
|
|
221
|
+
uv run --no-sync pytest
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
Please ensure the coverage at least stays the same before you submit a pull request.
|
|
225
|
+
|
|
226
|
+
## License
|
|
227
|
+
|
|
228
|
+
Distributed under the terms of the [BSD-3] license,
|
|
229
|
+
"napari-plot" is free and open source software
|
|
230
|
+
|
|
231
|
+
## Issues
|
|
232
|
+
|
|
233
|
+
If you encounter any problems, please [file an issue] along with a detailed description.
|
|
234
|
+
|
|
235
|
+
## Support
|
|
236
|
+
|
|
237
|
+
This project is supported by a Chan-Zuckerberg Initiative [napari](https://chanzuckerberg.com/science/programs-resources/imaging/napari/maintain-1d-visualization-plugin/) grant.
|
|
238
|
+
|
|
239
|
+
[napari]: https://github.com/napari/napari
|
|
240
|
+
[Cookiecutter]: https://github.com/audreyr/cookiecutter
|
|
241
|
+
[@napari]: https://github.com/napari
|
|
242
|
+
[BSD-3]: http://opensource.org/licenses/BSD-3-Clause
|
|
243
|
+
[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0
|
|
244
|
+
[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin
|
|
245
|
+
[file an issue]: https://github.com/lukasz-migas/napari-plot/issues
|
|
246
|
+
[napari]: https://github.com/napari/napari
|
|
247
|
+
[uv]: https://docs.astral.sh/uv/
|
|
248
|
+
[pip]: https://pypi.org/project/pip/
|
|
249
|
+
[PyPI]: https://pypi.org/
|