napari-plot 0.2.0__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.2.0 → 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.2.0 → napari_plot-0.3.1}/.gitignore +0 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/.pre-commit-config.yaml +3 -12
- {napari_plot-0.2.0 → napari_plot-0.3.1}/PKG-INFO +69 -62
- {napari_plot-0.2.0 → napari_plot-0.3.1}/README.md +29 -18
- {napari_plot-0.2.0 → napari_plot-0.3.1}/conftest.py +30 -3
- napari_plot-0.3.1/napari_plot/__init__.py +59 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/__main__.py +15 -17
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/_app.py +13 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/actions/_layerlist_context_actions.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/constants/_menus.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/context/_context.py +6 -4
- napari_plot-0.3.1/napari_plot/_app_model/context/_layerlist_context.py +5 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/utils.py +1 -3
- napari_plot-0.3.1/napari_plot/_plot_widget.py +64 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/_qapp_model/__init__.py +3 -3
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/component_controls/qt_axis_controls.py +79 -2
- 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.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_centroids_controls.py +16 -5
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_layer_controls_base.py +0 -3
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_layer_controls_container.py +25 -2
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_layers_dialog.py +9 -4
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_multiline_controls.py +15 -5
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_scatter_controls.py +2 -2
- napari_plot-0.3.1/napari_plot/_qt/layer_controls/qt_text_controls.py +221 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/qt_event_loop.py +7 -8
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/qt_layer_buttons.py +58 -21
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/qt_main_window.py +42 -14
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/qt_toolbar.py +27 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/qt_viewer.py +83 -19
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/widgets/qt_dev.py +4 -4
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/widgets/qt_icon_button.py +2 -2
- 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.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/camera.py +45 -11
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/canvas.py +59 -14
- napari_plot-0.3.1/napari_plot/_vispy/components/axis.py +305 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/components/camera.py +23 -10
- napari_plot-0.3.1/napari_plot/_vispy/layers/bar.py +58 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/layers/centroids.py +2 -2
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/layers/infline.py +38 -48
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/layers/line.py +2 -2
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/layers/multiline.py +2 -2
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/layers/region.py +33 -47
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/layers/scatter.py +2 -2
- napari_plot-0.3.1/napari_plot/_vispy/layers/text.py +72 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/overlays/__init__.py +4 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/overlays/axis.py +42 -3
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/overlays/grid_lines.py +11 -2
- napari_plot-0.3.1/napari_plot/_vispy/overlays/legend.py +284 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/overlays/text.py +2 -3
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/tools/polygon.py +4 -3
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/utils/visual.py +5 -1
- napari_plot-0.3.1/napari_plot/_vispy/visuals/bar.py +23 -0
- napari_plot-0.3.1/napari_plot/_vispy/visuals/infline.py +285 -0
- napari_plot-0.3.1/napari_plot/_vispy/visuals/region.py +283 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/_viewer_utils.py +5 -9
- napari_plot-0.3.1/napari_plot/components/axis.py +130 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/camera.py +16 -14
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/dragtool.py +3 -4
- napari_plot-0.3.1/napari_plot/components/legend.py +332 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/tools.py +12 -10
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/viewer_model.py +390 -27
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/__init__.py +24 -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.2.0 → napari_plot-0.3.1}/napari_plot/layers/base.py +31 -3
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/centroids/_centroids_constants.py +1 -2
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/centroids/_centroids_key_bindings.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/centroids/_centroids_utils.py +3 -3
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/centroids/centroids.py +9 -2
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/infline/_infline_constants.py +5 -5
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/infline/_infline_key_bindings.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/infline/_infline_list.py +3 -4
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/infline/_infline_utils.py +7 -7
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/infline/infline.py +32 -17
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/line/_line_key_bindings.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/line/line.py +8 -3
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/multiline/_multiline_key_bindings.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/multiline/_multiline_list.py +7 -9
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/multiline/_multiline_utils.py +27 -19
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/multiline/multiline.py +9 -3
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/region/_region_constants.py +5 -5
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/region/_region_key_bindings.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/region/_region_list.py +17 -13
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/region/_region_mouse_bindings.py +4 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/region/_region_utils.py +6 -6
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/region/region.py +39 -23
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/scatter/_scatter_key_bindings.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/scatter/scatter.py +21 -3
- 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.2.0 → napari_plot-0.3.1}/napari_plot/layers/utils/layer_utils.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/napari.yaml +5 -1
- napari_plot-0.3.1/napari_plot/resources/__init__.py +50 -0
- napari_plot-0.3.1/napari_plot/resources/qss/10_napari_plot.qss +183 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/utils/_test_support.py +6 -3
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/utils/_tool.py +2 -2
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/utils/action_manager.py +2 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/utils/utilities.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/viewer.py +7 -7
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot.egg-info/PKG-INFO +69 -62
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot.egg-info/SOURCES.txt +36 -6
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot.egg-info/requires.txt +18 -26
- 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.2.0 → napari_plot-0.3.1}/pyproject.toml +63 -30
- 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.2.0 → napari_plot-0.3.1}/tests/_qt/test_qt_viewer.py +67 -1
- 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.2.0 → napari_plot-0.3.1}/tests/_vispy/test_vispy_line_layer.py +2 -1
- napari_plot-0.3.1/tests/_vispy/test_vispy_region_layer.py +102 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_vispy/test_vispy_scatter_layer.py +2 -1
- napari_plot-0.3.1/tests/_vispy/test_vispy_text_layer.py +81 -0
- napari_plot-0.3.1/tests/components/test_axis.py +84 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/components/test_viewer_model.py +97 -7
- napari_plot-0.3.1/tests/layer_controls/test_qt_bar_controls.py +23 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layer_controls/test_qt_infline_controls.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layer_controls/test_qt_line_controls.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layer_controls/test_qt_multiline_controls.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layer_controls/test_qt_region_controls.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layer_controls/test_qt_scatter_controls.py +1 -1
- napari_plot-0.3.1/tests/layer_controls/test_qt_text_controls.py +127 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/infline/test_infline_list.py +2 -2
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/multiline/test_multiline_list.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/region/test_region.py +6 -7
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/region/test_region_mouse_bindings.py +0 -2
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/scatter/test_scatter.py +1 -1
- 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.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.2.0/.github/labeler.yml +0 -22
- napari_plot-0.2.0/.github/workflows/auto_label.yml +0 -12
- napari_plot-0.2.0/.github/workflows/make_release.yml +0 -81
- napari_plot-0.2.0/.github/workflows/test_comprehensive.yml +0 -153
- napari_plot-0.2.0/.github/workflows/test_pull_requests.yml +0 -147
- napari_plot-0.2.0/napari_plot/__init__.py +0 -30
- napari_plot-0.2.0/napari_plot/_app_model/context/_layerlist_context.py +0 -289
- napari_plot-0.2.0/napari_plot/_plot_widget.py +0 -23
- napari_plot-0.2.0/napari_plot/_scatter_widget.py +0 -89
- napari_plot-0.2.0/napari_plot/_version.py +0 -34
- napari_plot-0.2.0/napari_plot/_vispy/components/axis.py +0 -56
- napari_plot-0.2.0/napari_plot/_vispy/visuals/infline.py +0 -91
- napari_plot-0.2.0/napari_plot/_vispy/visuals/region.py +0 -93
- napari_plot-0.2.0/napari_plot/components/axis.py +0 -32
- napari_plot-0.2.0/napari_plot/resources/__init__.py +0 -48
- napari_plot-0.2.0/napari_plot/resources/qss/10_napari_plot.qss +0 -21
- napari_plot-0.2.0/tests/test_plot_widget.py +0 -22
- napari_plot-0.2.0/tests/test_scatter_widget.py +0 -52
- napari_plot-0.2.0/tox.ini +0 -110
- {napari_plot-0.2.0 → napari_plot-0.3.1}/.deepsource.toml +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/.github/ISSUE_TEMPLATE/documentation.md +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/.github/TEST_FAIL_TEMPLATE.md +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/.github/dependabot.yml +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/LICENSE +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/MANIFEST.in +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/Makefile +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/codecov.yml +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/actions/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/constants/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/context/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/context/_context_keys.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_contribution.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/_qapp_model/_qproviders.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/component_controls/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/component_controls/qt_camera_controls.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_infline_controls.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_line_controls.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_region_controls.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/qt_welcome.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/widgets/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/widgets/qt_splash_screen.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/components/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/layers/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/tools/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/tools/drag.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/utils/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/utils/axis.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/visuals/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/visuals/centroids.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/visuals/line.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/visuals/multiline.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/visuals/scatter.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/_viewer_key_bindings.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/_viewer_mouse_bindings.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/grid_lines.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/gridlines.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/layerlist.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/centroids/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/infline/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/infline/_infline.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/infline/_infline_mouse_bindings.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/line/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/line/_line_constants.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/multiline/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/multiline/_multiline_constants.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/region/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/region/_region.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/scatter/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/scatter/_utilities.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/utils/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/resources/icon.icns +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/resources/icon.ico +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/resources/icons/logo_silhouette_plot.svg +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/resources/icons/new_centroids.svg +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/resources/icons/new_inf_line.svg +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/resources/icons/new_line.svg +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/resources/icons/new_region.svg +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/resources/icons/new_scatter.svg +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/resources/logo.png +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/utils/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/utils/_register.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/utils/system.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/window.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot.egg-info/dependency_links.txt +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot.egg-info/entry_points.txt +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot.egg-info/not-zip-safe +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot.egg-info/top_level.txt +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/renovate.json +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/scripts/png_to_icon.bat +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/scripts/qtaicons.bat +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/setup.cfg +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_app_model/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_app_model/test_app.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_app_model/test_constants.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_app_model/test_context.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_qt/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_qt/test_qt_splash_screen.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_qt/test_qt_window.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_vispy/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_vispy/test_vispy_tools.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/components/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/components/test_camera.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/components/test_tools.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layer_controls/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/centroids/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/centroids/test_centroids.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/infline/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/infline/test_infline.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/infline/test_infline_mouse_bindings.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/infline/test_infline_utils.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/line/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/line/test_line.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/multiline/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/multiline/test_multiline.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/multiline/test_multiline_utils.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/region/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/scatter/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/test_examples.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/utils/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/utils/test_tool.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/utils/test_utilities.py +0 -0
|
@@ -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/*
|
|
@@ -4,26 +4,17 @@ repos:
|
|
|
4
4
|
hooks:
|
|
5
5
|
- id: no-commit-to-branch
|
|
6
6
|
args: ['--branch', 'master', "--branch", "main"]
|
|
7
|
-
- repo: https://github.com/MarcoGorelli/absolufy-imports
|
|
8
|
-
rev: v0.3.1
|
|
9
|
-
hooks:
|
|
10
|
-
- id: absolufy-imports
|
|
11
|
-
exclude: _vendor|vendored|examples|examples_with_napari
|
|
12
7
|
- repo: https://github.com/hadialqattan/pycln
|
|
13
|
-
rev: v2.
|
|
8
|
+
rev: v2.6.0
|
|
14
9
|
hooks:
|
|
15
10
|
- id: pycln
|
|
16
|
-
- repo: https://github.com/pycqa/isort
|
|
17
|
-
rev: 7.0.0
|
|
18
|
-
hooks:
|
|
19
|
-
- id: isort
|
|
20
11
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
21
|
-
rev: v0.
|
|
12
|
+
rev: v0.16.1
|
|
22
13
|
hooks:
|
|
23
14
|
- id: ruff
|
|
24
15
|
exclude: _vendor|vendored
|
|
25
16
|
- repo: https://github.com/seddonym/import-linter
|
|
26
|
-
rev: v2.
|
|
17
|
+
rev: v2.13
|
|
27
18
|
hooks:
|
|
28
19
|
- id: import-linter
|
|
29
20
|
stages: [manual]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: napari_plot
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: Plugin providing support for 1d plotting in napari
|
|
5
5
|
Author-email: Lukasz Migas <lukas.migas@yahoo.com>
|
|
6
6
|
License: BSD 3-Clause
|
|
@@ -17,10 +17,9 @@ Classifier: License :: OSI Approved :: BSD License
|
|
|
17
17
|
Classifier: Programming Language :: C
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
22
20
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
21
|
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
23
|
Classifier: Topic :: Scientific/Engineering
|
|
25
24
|
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
26
25
|
Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
@@ -31,66 +30,63 @@ Classifier: Operating System :: POSIX
|
|
|
31
30
|
Classifier: Operating System :: Unix
|
|
32
31
|
Classifier: Operating System :: MacOS
|
|
33
32
|
Classifier: Framework :: napari
|
|
34
|
-
Requires-Python: >=3.
|
|
33
|
+
Requires-Python: >=3.11
|
|
35
34
|
Description-Content-Type: text/markdown
|
|
36
35
|
License-File: LICENSE
|
|
37
36
|
Requires-Dist: napari-plugin-engine>=0.2.0
|
|
38
37
|
Requires-Dist: numpy
|
|
39
38
|
Requires-Dist: qtpy
|
|
40
39
|
Requires-Dist: qtawesome>=1.2.0
|
|
41
|
-
Requires-Dist: napari
|
|
42
|
-
Requires-Dist: napari>=0.6.6; python_version >= "3.10"
|
|
40
|
+
Requires-Dist: napari==0.8.0
|
|
43
41
|
Requires-Dist: matplotlib
|
|
44
42
|
Requires-Dist: vispy
|
|
45
43
|
Requires-Dist: koyo
|
|
46
44
|
Requires-Dist: qtextra
|
|
47
|
-
Provides-Extra:
|
|
48
|
-
Requires-Dist:
|
|
49
|
-
|
|
50
|
-
Requires-Dist: PySide6<6.5; python_version < "3.12" and extra == "pyside6-experimental"
|
|
51
|
-
Provides-Extra: pyqt6
|
|
52
|
-
Requires-Dist: PyQt6>6.5; extra == "pyqt6"
|
|
53
|
-
Requires-Dist: PyQt6!=6.6.1; platform_system == "Darwin" and extra == "pyqt6"
|
|
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"
|
|
54
48
|
Provides-Extra: pyside
|
|
55
|
-
Requires-Dist: napari_plot[
|
|
49
|
+
Requires-Dist: napari_plot[pyside6]; extra == "pyside"
|
|
56
50
|
Provides-Extra: pyqt5
|
|
57
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"
|
|
58
55
|
Provides-Extra: pyqt
|
|
59
|
-
Requires-Dist: napari_plot[
|
|
56
|
+
Requires-Dist: napari_plot[pyqt6]; extra == "pyqt"
|
|
60
57
|
Provides-Extra: qt
|
|
61
58
|
Requires-Dist: napari_plot[pyqt]; extra == "qt"
|
|
62
59
|
Provides-Extra: all
|
|
63
60
|
Requires-Dist: napari_plot[optional,pyqt]; extra == "all"
|
|
64
|
-
Requires-Dist: napari-plugin-manager<0.2.0,>=0.1.
|
|
61
|
+
Requires-Dist: napari-plugin-manager<0.2.0,>=0.1.10; extra == "all"
|
|
65
62
|
Provides-Extra: optional
|
|
66
63
|
Requires-Dist: triangle; platform_machine != "arm64" and extra == "optional"
|
|
67
64
|
Requires-Dist: numba>=0.57.1; extra == "optional"
|
|
68
65
|
Requires-Dist: zarr>=2.12.0; extra == "optional"
|
|
69
|
-
Provides-Extra:
|
|
70
|
-
Requires-Dist: babel>=2.9.0; extra == "
|
|
71
|
-
Requires-Dist: fsspec>=2023.10.0; extra == "
|
|
72
|
-
Requires-Dist: hypothesis>=6.8.0; extra == "
|
|
73
|
-
Requires-Dist: lxml[html_clean]>5; extra == "
|
|
74
|
-
Requires-Dist: matplotlib>=3.6.1; extra == "
|
|
75
|
-
Requires-Dist: numba>=0.57.1; extra == "
|
|
76
|
-
Requires-Dist: pooch>=1.6.0; extra == "
|
|
77
|
-
Requires-Dist: coverage>7; extra == "
|
|
78
|
-
Requires-Dist: docstring_parser>=0.15; extra == "
|
|
79
|
-
Requires-Dist: pretend>=1.0.9; extra == "
|
|
80
|
-
Requires-Dist: pyautogui>=0.9.54; extra == "
|
|
81
|
-
Requires-Dist: pytest-qt>=4.3.1; extra == "
|
|
82
|
-
Requires-Dist: pytest-pretty>=1.1.0; extra == "
|
|
83
|
-
Requires-Dist: pytest>=8.1.0; extra == "
|
|
84
|
-
Requires-Dist: tensorstore>=0.1.13; extra == "
|
|
85
|
-
Requires-Dist:
|
|
86
|
-
Requires-Dist:
|
|
87
|
-
Requires-Dist:
|
|
88
|
-
Requires-Dist:
|
|
89
|
-
Requires-Dist:
|
|
90
|
-
Requires-Dist:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
Requires-Dist: torch>=1.7; extra == "testing-extra"
|
|
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"
|
|
94
90
|
Provides-Extra: release
|
|
95
91
|
Requires-Dist: PyGithub>=1.44.1; extra == "release"
|
|
96
92
|
Requires-Dist: twine>=3.1.1; extra == "release"
|
|
@@ -101,11 +97,11 @@ Requires-Dist: ruff; extra == "dev"
|
|
|
101
97
|
Requires-Dist: pdbpp; extra == "dev"
|
|
102
98
|
Requires-Dist: check-manifest>=0.42; extra == "dev"
|
|
103
99
|
Requires-Dist: pre-commit>=2.9.0; extra == "dev"
|
|
104
|
-
Requires-Dist: pydantic
|
|
105
|
-
Requires-Dist: napari_plot[
|
|
100
|
+
Requires-Dist: pydantic; extra == "dev"
|
|
101
|
+
Requires-Dist: napari_plot[test]; extra == "dev"
|
|
106
102
|
Provides-Extra: build
|
|
107
103
|
Requires-Dist: ruff; extra == "build"
|
|
108
|
-
Requires-Dist:
|
|
104
|
+
Requires-Dist: pyqt6; extra == "build"
|
|
109
105
|
Provides-Extra: docs
|
|
110
106
|
Requires-Dist: mkdocs; extra == "docs"
|
|
111
107
|
Requires-Dist: mkdocs-material; extra == "docs"
|
|
@@ -122,16 +118,17 @@ Dynamic: license-file
|
|
|
122
118
|
[](https://anaconda.org/conda-forge/napari-plot)
|
|
123
119
|
[](https://python.org)
|
|
124
120
|
[](https://github.com/lukasz-migas/napari-plot/actions)
|
|
125
|
-
[](https://codecov.io/gh/lukasz-migas/napari-plot)
|
|
126
122
|
[](https://github.com/pre-commit/pre-commit)
|
|
127
123
|
[](https://pypistats.org/packages/napari-plot)
|
|
128
124
|
[](https://www.napari-hub.org/plugins/napari-plot)
|
|
129
125
|
[](https://napari-plot.readthedocs.io/en/latest/?badge=latest)
|
|
130
126
|
|
|
131
|
-
##
|
|
127
|
+
## Interactive plotting in napari or a standalone Qt viewer
|
|
132
128
|
|
|
133
|
-
|
|
134
|
-
|
|
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.
|
|
135
132
|
|
|
136
133
|
## Usage
|
|
137
134
|
|
|
@@ -164,7 +161,7 @@ please modify the list below or create a [new issue](https://github.com/lukasz-m
|
|
|
164
161
|
- [x] Shapes Layer - `napari's` own `Shapes` layer
|
|
165
162
|
- [x] Points Layer - `napari's` own `Points` layer
|
|
166
163
|
- [x] Multi-line Layer - more efficient implementation of `Line` layer when multiple lines are necessary.
|
|
167
|
-
- [
|
|
164
|
+
- [x] Bar - horizontal and vertical bar charts.
|
|
168
165
|
- [x] Proper interactivity of each layer type (e.g. moving `Region` or `InfLine`, adding points, etc...)
|
|
169
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.
|
|
170
167
|
- [x] Box-zoom - standard zooming rectangle. Simply `left-mouse + drag/release` in the canvas on region of interest
|
|
@@ -173,15 +170,15 @@ please modify the list below or create a [new issue](https://github.com/lukasz-m
|
|
|
173
170
|
- [x] Rectangle select - rectangle tool allowing sub-selection of data in the canvas. Similar to the `Box-zoom` but without the zooming part.
|
|
174
171
|
- [x] Polygon select - polygon tool allowing sub-selection of data in the canvas.
|
|
175
172
|
- [x] Lasso select - lasso tool allowing sub-selection of data in the canvas.
|
|
176
|
-
- [
|
|
177
|
-
- [
|
|
173
|
+
- [x] Interactive plot legend
|
|
174
|
+
- [x] Customizable axis visuals.
|
|
178
175
|
- [x] Plot axis enabling customization of tick/label size and color
|
|
179
|
-
- [
|
|
180
|
-
- [
|
|
181
|
-
- [
|
|
182
|
-
- [
|
|
183
|
-
- [
|
|
184
|
-
- [
|
|
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
|
|
185
182
|
|
|
186
183
|
----------------------------------
|
|
187
184
|
|
|
@@ -199,22 +196,32 @@ https://napari.org/docs/plugins/index.html
|
|
|
199
196
|
|
|
200
197
|
You can install `napari-plot` directly from PyPI via:
|
|
201
198
|
|
|
202
|
-
```
|
|
199
|
+
```shell
|
|
203
200
|
pip install napari-plot
|
|
204
201
|
```
|
|
205
202
|
|
|
206
203
|
or from the git repo:
|
|
207
204
|
|
|
208
|
-
```
|
|
205
|
+
```shell
|
|
209
206
|
git clone https://github.com/lukasz-migas/napari-plot.git
|
|
210
207
|
cd napari-plot
|
|
211
208
|
pip install -e '.[all]'
|
|
212
209
|
```
|
|
213
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
|
+
|
|
214
215
|
## Contributing
|
|
215
216
|
|
|
216
|
-
Contributions are very welcome.
|
|
217
|
-
|
|
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.
|
|
218
225
|
|
|
219
226
|
## License
|
|
220
227
|
|
|
@@ -237,6 +244,6 @@ This project is supported by a Chan-Zuckerberg Initiative [napari](https://chanz
|
|
|
237
244
|
[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin
|
|
238
245
|
[file an issue]: https://github.com/lukasz-migas/napari-plot/issues
|
|
239
246
|
[napari]: https://github.com/napari/napari
|
|
240
|
-
[
|
|
247
|
+
[uv]: https://docs.astral.sh/uv/
|
|
241
248
|
[pip]: https://pypi.org/project/pip/
|
|
242
249
|
[PyPI]: https://pypi.org/
|
|
@@ -5,16 +5,17 @@
|
|
|
5
5
|
[](https://anaconda.org/conda-forge/napari-plot)
|
|
6
6
|
[](https://python.org)
|
|
7
7
|
[](https://github.com/lukasz-migas/napari-plot/actions)
|
|
8
|
-
[](https://codecov.io/gh/lukasz-migas/napari-plot)
|
|
9
9
|
[](https://github.com/pre-commit/pre-commit)
|
|
10
10
|
[](https://pypistats.org/packages/napari-plot)
|
|
11
11
|
[](https://www.napari-hub.org/plugins/napari-plot)
|
|
12
12
|
[](https://napari-plot.readthedocs.io/en/latest/?badge=latest)
|
|
13
13
|
|
|
14
|
-
##
|
|
14
|
+
## Interactive plotting in napari or a standalone Qt viewer
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
napari-plot provides GPU-accelerated Line, Scatter, MultiLine, Centroids, Text,
|
|
17
|
+
Region, InfLine, and Bar layers. It supports linear, logarithmic, and categorical
|
|
18
|
+
axes, an interactive legend, data selection tools, and image display.
|
|
18
19
|
|
|
19
20
|
## Usage
|
|
20
21
|
|
|
@@ -47,7 +48,7 @@ please modify the list below or create a [new issue](https://github.com/lukasz-m
|
|
|
47
48
|
- [x] Shapes Layer - `napari's` own `Shapes` layer
|
|
48
49
|
- [x] Points Layer - `napari's` own `Points` layer
|
|
49
50
|
- [x] Multi-line Layer - more efficient implementation of `Line` layer when multiple lines are necessary.
|
|
50
|
-
- [
|
|
51
|
+
- [x] Bar - horizontal and vertical bar charts.
|
|
51
52
|
- [x] Proper interactivity of each layer type (e.g. moving `Region` or `InfLine`, adding points, etc...)
|
|
52
53
|
- [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.
|
|
53
54
|
- [x] Box-zoom - standard zooming rectangle. Simply `left-mouse + drag/release` in the canvas on region of interest
|
|
@@ -56,15 +57,15 @@ please modify the list below or create a [new issue](https://github.com/lukasz-m
|
|
|
56
57
|
- [x] Rectangle select - rectangle tool allowing sub-selection of data in the canvas. Similar to the `Box-zoom` but without the zooming part.
|
|
57
58
|
- [x] Polygon select - polygon tool allowing sub-selection of data in the canvas.
|
|
58
59
|
- [x] Lasso select - lasso tool allowing sub-selection of data in the canvas.
|
|
59
|
-
- [
|
|
60
|
-
- [
|
|
60
|
+
- [x] Interactive plot legend
|
|
61
|
+
- [x] Customizable axis visuals.
|
|
61
62
|
- [x] Plot axis enabling customization of tick/label size and color
|
|
62
|
-
- [
|
|
63
|
-
- [
|
|
64
|
-
- [
|
|
65
|
-
- [
|
|
66
|
-
- [
|
|
67
|
-
- [
|
|
63
|
+
- [x] Support for logarithmic and categorical scales
|
|
64
|
+
- [x] Add convenient plotting interface:
|
|
65
|
+
- [x] Add `.plot` functionality
|
|
66
|
+
- [x] Add `.scatter` functionality
|
|
67
|
+
- [x] Add `.hbar` and `.vbar` functionality
|
|
68
|
+
- [x] Add `.imshow` functionality
|
|
68
69
|
|
|
69
70
|
----------------------------------
|
|
70
71
|
|
|
@@ -82,22 +83,32 @@ https://napari.org/docs/plugins/index.html
|
|
|
82
83
|
|
|
83
84
|
You can install `napari-plot` directly from PyPI via:
|
|
84
85
|
|
|
85
|
-
```
|
|
86
|
+
```shell
|
|
86
87
|
pip install napari-plot
|
|
87
88
|
```
|
|
88
89
|
|
|
89
90
|
or from the git repo:
|
|
90
91
|
|
|
91
|
-
```
|
|
92
|
+
```shell
|
|
92
93
|
git clone https://github.com/lukasz-migas/napari-plot.git
|
|
93
94
|
cd napari-plot
|
|
94
95
|
pip install -e '.[all]'
|
|
95
96
|
```
|
|
96
97
|
|
|
98
|
+
Python 3.11 or later is required. See the
|
|
99
|
+
[documentation](https://napari-plot.readthedocs.io/) for standalone and embedded
|
|
100
|
+
quick starts, layer examples, axis controls, interactions, and the public API.
|
|
101
|
+
|
|
97
102
|
## Contributing
|
|
98
103
|
|
|
99
|
-
Contributions are very welcome.
|
|
100
|
-
|
|
104
|
+
Contributions are very welcome. Install the test environment and run the tests with [uv]:
|
|
105
|
+
|
|
106
|
+
```shell
|
|
107
|
+
uv sync --no-dev --group test --extra pyqt6 --extra optional
|
|
108
|
+
uv run --no-sync pytest
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Please ensure the coverage at least stays the same before you submit a pull request.
|
|
101
112
|
|
|
102
113
|
## License
|
|
103
114
|
|
|
@@ -120,6 +131,6 @@ This project is supported by a Chan-Zuckerberg Initiative [napari](https://chanz
|
|
|
120
131
|
[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin
|
|
121
132
|
[file an issue]: https://github.com/lukasz-migas/napari-plot/issues
|
|
122
133
|
[napari]: https://github.com/napari/napari
|
|
123
|
-
[
|
|
134
|
+
[uv]: https://docs.astral.sh/uv/
|
|
124
135
|
[pip]: https://pypi.org/project/pip/
|
|
125
136
|
[PyPI]: https://pypi.org/
|
|
@@ -14,12 +14,39 @@ import pytest
|
|
|
14
14
|
|
|
15
15
|
if ty.TYPE_CHECKING:
|
|
16
16
|
from pytest import FixtureRequest
|
|
17
|
+
from qtpy.QtWidgets import QApplication
|
|
17
18
|
|
|
18
19
|
COUNTER = 0
|
|
19
20
|
_SAVE_GRAPH_OPNAME = "--save-leaked-object-graph-np"
|
|
20
21
|
_SHOW_VIEWER = "--show-napari-plot-viewer"
|
|
21
22
|
|
|
22
23
|
|
|
24
|
+
@pytest.fixture(scope="session", autouse=True)
|
|
25
|
+
def _cleanup_pyqt6_before_shutdown(qapp: QApplication) -> ty.Iterator[None]:
|
|
26
|
+
"""Release Qt objects before PyQt6 runs its interpreter-exit cleanup."""
|
|
27
|
+
yield
|
|
28
|
+
|
|
29
|
+
from qtpy import PYQT6
|
|
30
|
+
|
|
31
|
+
if not PYQT6:
|
|
32
|
+
return
|
|
33
|
+
|
|
34
|
+
from qtpy.QtCore import QCoreApplication, QEvent, QThreadPool
|
|
35
|
+
from qtpy.QtWidgets import QApplication
|
|
36
|
+
|
|
37
|
+
for widget in QApplication.topLevelWidgets():
|
|
38
|
+
widget.close()
|
|
39
|
+
widget.deleteLater()
|
|
40
|
+
|
|
41
|
+
QThreadPool.globalInstance().waitForDone(5_000)
|
|
42
|
+
QCoreApplication.sendPostedEvents(None, QEvent.Type.DeferredDelete)
|
|
43
|
+
qapp.processEvents()
|
|
44
|
+
gc.collect()
|
|
45
|
+
QCoreApplication.sendPostedEvents(None, QEvent.Type.DeferredDelete)
|
|
46
|
+
qapp.processEvents()
|
|
47
|
+
gc.collect()
|
|
48
|
+
|
|
49
|
+
|
|
23
50
|
def pytest_addoption(parser):
|
|
24
51
|
parser.addoption(
|
|
25
52
|
_SHOW_VIEWER,
|
|
@@ -203,7 +230,7 @@ def MouseEvent():
|
|
|
203
230
|
|
|
204
231
|
type: str
|
|
205
232
|
is_dragging: bool
|
|
206
|
-
position:
|
|
233
|
+
position: tuple | list | np.ndarray
|
|
207
234
|
view_direction: np.ndarray
|
|
208
235
|
dims_displayed: np.ndarray
|
|
209
236
|
dims_point: np.ndarray
|
|
@@ -228,7 +255,7 @@ def QtMouseEvent():
|
|
|
228
255
|
type: str
|
|
229
256
|
is_dragging: bool
|
|
230
257
|
modifiers: list[str]
|
|
231
|
-
pos:
|
|
232
|
-
position:
|
|
258
|
+
pos: tuple | list | np.ndarray
|
|
259
|
+
position: tuple | list | np.ndarray
|
|
233
260
|
|
|
234
261
|
return Event
|