napari-plot 0.2.0__tar.gz → 0.4.0__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.4.0}/.github/workflows/auto_author_assign.yml +1 -1
- napari_plot-0.4.0/.github/workflows/test_and_deploy.yml +214 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/.gitignore +0 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/.pre-commit-config.yaml +3 -12
- napari_plot-0.4.0/CHANGELOG.md +40 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/PKG-INFO +89 -64
- {napari_plot-0.2.0 → napari_plot-0.4.0}/README.md +46 -18
- {napari_plot-0.2.0 → napari_plot-0.4.0}/conftest.py +30 -3
- napari_plot-0.4.0/napari_plot/__init__.py +59 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/__main__.py +15 -17
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_app_model/_app.py +13 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_app_model/actions/_layerlist_context_actions.py +4 -4
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_app_model/constants/_menus.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_app_model/context/_context.py +6 -4
- napari_plot-0.4.0/napari_plot/_app_model/context/_layerlist_context.py +5 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_app_model/utils.py +1 -3
- napari_plot-0.4.0/napari_plot/_plot_widget.py +64 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/_qapp_model/__init__.py +3 -3
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/_qapp_model/_qproviders.py +3 -22
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/component_controls/qt_axis_controls.py +79 -2
- napari_plot-0.4.0/napari_plot/_qt/component_controls/qt_legend_controls.py +247 -0
- napari_plot-0.4.0/napari_plot/_qt/layer_controls/qt_bar_controls.py +145 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/layer_controls/qt_centroids_controls.py +16 -5
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/layer_controls/qt_layer_controls_base.py +2 -5
- napari_plot-0.4.0/napari_plot/_qt/layer_controls/qt_layer_controls_container.py +128 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/layer_controls/qt_layers_dialog.py +9 -4
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/layer_controls/qt_multiline_controls.py +15 -5
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/layer_controls/qt_scatter_controls.py +8 -4
- napari_plot-0.4.0/napari_plot/_qt/layer_controls/qt_text_controls.py +229 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/qt_event_loop.py +11 -22
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/qt_layer_buttons.py +58 -21
- napari_plot-0.4.0/napari_plot/_qt/qt_layer_list.py +45 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/qt_main_window.py +58 -18
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/qt_toolbar.py +27 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/qt_viewer.py +83 -21
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/qt_welcome.py +1 -2
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/widgets/qt_dev.py +4 -4
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/widgets/qt_icon_button.py +2 -2
- napari_plot-0.4.0/napari_plot/_scatter_widget.py +121 -0
- napari_plot-0.4.0/napari_plot/_version.py +24 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/camera.py +45 -11
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/canvas.py +108 -65
- napari_plot-0.4.0/napari_plot/_vispy/components/axis.py +305 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/components/camera.py +39 -13
- napari_plot-0.4.0/napari_plot/_vispy/layers/bar.py +58 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/layers/centroids.py +2 -2
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/layers/infline.py +38 -48
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/layers/line.py +2 -2
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/layers/multiline.py +2 -2
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/layers/region.py +33 -47
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/layers/scatter.py +9 -6
- napari_plot-0.4.0/napari_plot/_vispy/layers/text.py +78 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/overlays/__init__.py +4 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/overlays/axis.py +42 -3
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/overlays/grid_lines.py +11 -2
- napari_plot-0.4.0/napari_plot/_vispy/overlays/legend.py +292 -0
- napari_plot-0.4.0/napari_plot/_vispy/overlays/text.py +41 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/tools/polygon.py +4 -3
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/utils/visual.py +5 -1
- napari_plot-0.4.0/napari_plot/_vispy/visuals/bar.py +23 -0
- napari_plot-0.4.0/napari_plot/_vispy/visuals/infline.py +285 -0
- napari_plot-0.4.0/napari_plot/_vispy/visuals/region.py +283 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/components/_viewer_key_bindings.py +12 -7
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/components/_viewer_mouse_bindings.py +70 -80
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/components/_viewer_utils.py +5 -9
- napari_plot-0.4.0/napari_plot/components/axis.py +130 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/components/camera.py +16 -14
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/components/dragtool.py +3 -4
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/components/layerlist.py +4 -5
- napari_plot-0.4.0/napari_plot/components/legend.py +343 -0
- napari_plot-0.4.0/napari_plot/components/scene.py +12 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/components/tools.py +12 -10
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/components/viewer_model.py +461 -30
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/__init__.py +24 -0
- napari_plot-0.4.0/napari_plot/layers/bar/__init__.py +5 -0
- napari_plot-0.4.0/napari_plot/layers/bar/bar.py +394 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/base.py +31 -3
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/centroids/_centroids_constants.py +1 -2
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/centroids/_centroids_key_bindings.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/centroids/_centroids_utils.py +3 -3
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/centroids/centroids.py +9 -2
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/infline/_infline_constants.py +5 -5
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/infline/_infline_key_bindings.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/infline/_infline_list.py +3 -4
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/infline/_infline_utils.py +7 -7
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/infline/infline.py +32 -17
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/line/_line_key_bindings.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/line/line.py +8 -3
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/multiline/_multiline_key_bindings.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/multiline/_multiline_list.py +7 -9
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/multiline/_multiline_utils.py +27 -19
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/multiline/multiline.py +9 -3
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/region/_region_constants.py +5 -5
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/region/_region_key_bindings.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/region/_region_list.py +17 -13
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/region/_region_mouse_bindings.py +4 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/region/_region_utils.py +6 -6
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/region/region.py +39 -23
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/scatter/_scatter_key_bindings.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/scatter/scatter.py +24 -5
- napari_plot-0.4.0/napari_plot/layers/text/__init__.py +5 -0
- napari_plot-0.4.0/napari_plot/layers/text/text.py +561 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/utils/layer_utils.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/napari.yaml +9 -1
- napari_plot-0.4.0/napari_plot/resources/__init__.py +50 -0
- napari_plot-0.4.0/napari_plot/resources/qss/10_napari_plot.qss +183 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/utils/_test_support.py +6 -3
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/utils/_tool.py +2 -2
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/utils/action_manager.py +2 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/utils/utilities.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/viewer.py +7 -7
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot.egg-info/PKG-INFO +89 -64
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot.egg-info/SOURCES.txt +43 -7
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot.egg-info/requires.txt +22 -28
- napari_plot-0.4.0/napari_plot.egg-info/scm_file_list.json +300 -0
- napari_plot-0.4.0/napari_plot.egg-info/scm_version.json +8 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/pyproject.toml +82 -46
- napari_plot-0.4.0/tests/_app_model/test_layerlist_context.py +35 -0
- napari_plot-0.4.0/tests/_qt/test_qt_axis_controls.py +46 -0
- napari_plot-0.4.0/tests/_qt/test_qt_layer_buttons.py +81 -0
- napari_plot-0.4.0/tests/_qt/test_qt_layer_control_icons.py +165 -0
- napari_plot-0.4.0/tests/_qt/test_qt_layer_control_sliders.py +74 -0
- napari_plot-0.4.0/tests/_qt/test_qt_layer_list.py +144 -0
- napari_plot-0.4.0/tests/_qt/test_qt_legend.py +178 -0
- napari_plot-0.4.0/tests/_qt/test_qt_viewer.py +212 -0
- napari_plot-0.4.0/tests/_vispy/test_axis.py +321 -0
- napari_plot-0.4.0/tests/_vispy/test_camera.py +129 -0
- napari_plot-0.4.0/tests/_vispy/test_vispy_bar_layer.py +36 -0
- napari_plot-0.4.0/tests/_vispy/test_vispy_infline_layer.py +94 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/_vispy/test_vispy_line_layer.py +2 -1
- napari_plot-0.4.0/tests/_vispy/test_vispy_region_layer.py +102 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/_vispy/test_vispy_scatter_layer.py +2 -1
- napari_plot-0.4.0/tests/_vispy/test_vispy_text_layer.py +81 -0
- napari_plot-0.4.0/tests/components/test_axis.py +84 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/components/test_viewer_model.py +97 -7
- napari_plot-0.4.0/tests/components/test_viewer_mouse_bindings.py +114 -0
- napari_plot-0.4.0/tests/layer_controls/test_qt_bar_controls.py +23 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layer_controls/test_qt_infline_controls.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layer_controls/test_qt_line_controls.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layer_controls/test_qt_multiline_controls.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layer_controls/test_qt_region_controls.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layer_controls/test_qt_scatter_controls.py +1 -1
- napari_plot-0.4.0/tests/layer_controls/test_qt_text_controls.py +127 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layers/infline/test_infline_list.py +2 -2
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layers/multiline/test_multiline_list.py +1 -1
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layers/region/test_region.py +6 -7
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layers/region/test_region_mouse_bindings.py +0 -2
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layers/scatter/test_scatter.py +1 -1
- napari_plot-0.4.0/tests/layers/test_bar.py +84 -0
- napari_plot-0.4.0/tests/layers/test_duplication.py +131 -0
- napari_plot-0.4.0/tests/layers/test_registration.py +26 -0
- napari_plot-0.4.0/tests/layers/text/__init__.py +1 -0
- napari_plot-0.4.0/tests/layers/text/test_text.py +228 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/test_examples.py +0 -7
- napari_plot-0.4.0/tests/test_lazy_import.py +40 -0
- napari_plot-0.4.0/tests/test_napari_010.py +265 -0
- napari_plot-0.4.0/tests/test_plot_widget.py +103 -0
- napari_plot-0.4.0/tests/test_plotting_api.py +77 -0
- napari_plot-0.4.0/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/_qt/layer_controls/qt_layer_controls_container.py +0 -36
- 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/overlays/text.py +0 -51
- 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/napari_plot/utils/_register.py +0 -60
- napari_plot-0.2.0/tests/_qt/test_qt_viewer.py +0 -105
- 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.4.0}/.deepsource.toml +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/.github/ISSUE_TEMPLATE/documentation.md +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/.github/TEST_FAIL_TEMPLATE.md +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/.github/dependabot.yml +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/LICENSE +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/MANIFEST.in +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/Makefile +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/codecov.yml +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_app_model/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_app_model/actions/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_app_model/constants/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_app_model/context/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_app_model/context/_context_keys.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_contribution.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/component_controls/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/component_controls/qt_camera_controls.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/layer_controls/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/layer_controls/qt_infline_controls.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/layer_controls/qt_line_controls.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/layer_controls/qt_region_controls.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/widgets/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_qt/widgets/qt_splash_screen.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/components/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/layers/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/tools/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/tools/drag.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/utils/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/utils/axis.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/visuals/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/visuals/centroids.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/visuals/line.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/visuals/multiline.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/_vispy/visuals/scatter.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/components/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/components/grid_lines.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/components/gridlines.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/centroids/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/infline/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/infline/_infline.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/infline/_infline_mouse_bindings.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/line/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/line/_line_constants.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/multiline/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/multiline/_multiline_constants.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/region/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/region/_region.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/scatter/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/scatter/_utilities.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/layers/utils/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/resources/icon.icns +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/resources/icon.ico +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/resources/icons/logo_silhouette_plot.svg +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/resources/icons/new_centroids.svg +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/resources/icons/new_inf_line.svg +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/resources/icons/new_line.svg +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/resources/icons/new_region.svg +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/resources/icons/new_scatter.svg +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/resources/logo.png +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/utils/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/utils/system.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot/window.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot.egg-info/dependency_links.txt +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot.egg-info/entry_points.txt +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot.egg-info/not-zip-safe +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/napari_plot.egg-info/top_level.txt +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/renovate.json +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/scripts/png_to_icon.bat +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/scripts/qtaicons.bat +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/setup.cfg +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/_app_model/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/_app_model/test_app.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/_app_model/test_constants.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/_app_model/test_context.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/_qt/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/_qt/test_qt_splash_screen.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/_qt/test_qt_window.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/_vispy/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/_vispy/test_vispy_tools.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/components/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/components/test_camera.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/components/test_tools.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layer_controls/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layers/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layers/centroids/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layers/centroids/test_centroids.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layers/infline/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layers/infline/test_infline.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layers/infline/test_infline_mouse_bindings.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layers/infline/test_infline_utils.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layers/line/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layers/line/test_line.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layers/multiline/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layers/multiline/test_multiline.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layers/multiline/test_multiline_utils.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layers/region/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/layers/scatter/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/utils/__init__.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/utils/test_tool.py +0 -0
- {napari_plot-0.2.0 → napari_plot-0.4.0}/tests/utils/test_utilities.py +0 -0
|
@@ -0,0 +1,214 @@
|
|
|
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
|
+
PYTEST_QT_API: ${{ matrix.backend }}
|
|
95
|
+
UV_NO_SYNC: "1"
|
|
96
|
+
UV_MANAGED_PYTHON: "1"
|
|
97
|
+
strategy:
|
|
98
|
+
fail-fast: false
|
|
99
|
+
matrix:
|
|
100
|
+
os: [macos-latest, windows-latest, ubuntu-latest]
|
|
101
|
+
python-version: ["3.11", "3.12", "3.13"]
|
|
102
|
+
backend: [pyside6, pyqt6]
|
|
103
|
+
|
|
104
|
+
steps:
|
|
105
|
+
- uses: actions/checkout@v7
|
|
106
|
+
- uses: astral-sh/setup-uv@v9.0.0
|
|
107
|
+
with:
|
|
108
|
+
python-version: ${{ matrix.python-version }}
|
|
109
|
+
enable-cache: true
|
|
110
|
+
|
|
111
|
+
- name: Install dependencies
|
|
112
|
+
run: uv sync --no-dev --group test --extra ${{ matrix.backend }} --extra optional
|
|
113
|
+
|
|
114
|
+
- uses: pyvista/setup-headless-display-action@v4
|
|
115
|
+
with:
|
|
116
|
+
qt: true
|
|
117
|
+
|
|
118
|
+
- name: Test
|
|
119
|
+
env:
|
|
120
|
+
PYTHONFAULTHANDLER: "1"
|
|
121
|
+
PYTHONUNBUFFERED: "1"
|
|
122
|
+
run: >
|
|
123
|
+
uv run python -X faulthandler
|
|
124
|
+
-m coverage run -p -m pytest -v --color=yes
|
|
125
|
+
|
|
126
|
+
- name: Install GDB
|
|
127
|
+
if: failure() && runner.os == 'Linux' && matrix.backend == 'pyqt6'
|
|
128
|
+
run: |
|
|
129
|
+
sudo apt-get update
|
|
130
|
+
sudo apt-get install --yes gdb
|
|
131
|
+
|
|
132
|
+
- name: Collect native crash backtrace
|
|
133
|
+
if: failure() && runner.os == 'Linux' && matrix.backend == 'pyqt6'
|
|
134
|
+
env:
|
|
135
|
+
PYTHONFAULTHANDLER: "1"
|
|
136
|
+
PYTHONUNBUFFERED: "1"
|
|
137
|
+
run: |
|
|
138
|
+
gdb --batch --nx \
|
|
139
|
+
-ex "set pagination off" \
|
|
140
|
+
-ex "handle SIGPIPE nostop noprint pass" \
|
|
141
|
+
-ex run \
|
|
142
|
+
-ex "bt full" \
|
|
143
|
+
-ex "thread apply all bt 30" \
|
|
144
|
+
--args .venv/bin/python -X faulthandler \
|
|
145
|
+
-m coverage run -p -m pytest -v --color=yes
|
|
146
|
+
|
|
147
|
+
- name: Upload coverage
|
|
148
|
+
uses: actions/upload-artifact@v7
|
|
149
|
+
with:
|
|
150
|
+
name: covreport-${{ matrix.os }}-py${{ matrix.python-version }}-${{ matrix.backend }}
|
|
151
|
+
path: ./.coverage*
|
|
152
|
+
include-hidden-files: true
|
|
153
|
+
|
|
154
|
+
deploy-test:
|
|
155
|
+
name: Publish to TestPyPI
|
|
156
|
+
needs: [check-manifest, build-smoke, test_uv]
|
|
157
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
|
158
|
+
runs-on: ubuntu-latest
|
|
159
|
+
|
|
160
|
+
steps:
|
|
161
|
+
- name: Download package distributions
|
|
162
|
+
uses: actions/download-artifact@v8
|
|
163
|
+
with:
|
|
164
|
+
name: python-package-distributions
|
|
165
|
+
path: dist/
|
|
166
|
+
|
|
167
|
+
- name: Publish package distributions to TestPyPI
|
|
168
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
169
|
+
with:
|
|
170
|
+
user: __token__
|
|
171
|
+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
|
172
|
+
repository-url: https://test.pypi.org/legacy/
|
|
173
|
+
skip-existing: true
|
|
174
|
+
|
|
175
|
+
deploy:
|
|
176
|
+
name: Publish to PyPI
|
|
177
|
+
needs: deploy-test
|
|
178
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
|
179
|
+
runs-on: ubuntu-latest
|
|
180
|
+
|
|
181
|
+
steps:
|
|
182
|
+
- name: Download package distributions
|
|
183
|
+
uses: actions/download-artifact@v8
|
|
184
|
+
with:
|
|
185
|
+
name: python-package-distributions
|
|
186
|
+
path: dist/
|
|
187
|
+
|
|
188
|
+
- name: Publish package distributions to PyPI
|
|
189
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
190
|
+
with:
|
|
191
|
+
user: __token__
|
|
192
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
193
|
+
|
|
194
|
+
github-release:
|
|
195
|
+
name: Create GitHub release
|
|
196
|
+
needs: deploy
|
|
197
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
|
198
|
+
runs-on: ubuntu-latest
|
|
199
|
+
permissions:
|
|
200
|
+
contents: write
|
|
201
|
+
|
|
202
|
+
steps:
|
|
203
|
+
- name: Download package distributions
|
|
204
|
+
uses: actions/download-artifact@v8
|
|
205
|
+
with:
|
|
206
|
+
name: python-package-distributions
|
|
207
|
+
path: dist/
|
|
208
|
+
|
|
209
|
+
- name: Create GitHub release
|
|
210
|
+
uses: softprops/action-gh-release@v3
|
|
211
|
+
with:
|
|
212
|
+
generate_release_notes: true
|
|
213
|
+
prerelease: ${{ contains(github.ref_name, 'rc') }}
|
|
214
|
+
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]
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# napari-plot v0.3.1
|
|
2
|
+
|
|
3
|
+
Changes since `v0.2.0`.
|
|
4
|
+
|
|
5
|
+
## Added
|
|
6
|
+
|
|
7
|
+
- Added `Bar` layers with vertical and horizontal orientations.
|
|
8
|
+
- Supports positions, values, baseline, bar width, fill and border colors, border width, opacity, selection, and removal of selected bars.
|
|
9
|
+
- Added bar-layer controls and `vbar()` / `hbar()` convenience methods.
|
|
10
|
+
- Added `Text` layers with per-label text and colors, font styling, alignment, rotation, and offsets.
|
|
11
|
+
- Added interactive plot legends with automatic layer entries, custom entries, `Points`-property legends, synchronization, placement, and styling controls.
|
|
12
|
+
- Added logarithmic axes with positive-value validation and log tick generation.
|
|
13
|
+
- Added categorical axes with configurable ordered category labels.
|
|
14
|
+
- Added axis controls for linear, logarithmic, and categorical scales.
|
|
15
|
+
- Added the concise plotting API: `plot()`, `scatter()`, `imshow()`, `vbar()`, and `hbar()`.
|
|
16
|
+
- Added lazy imports for the top-level package.
|
|
17
|
+
- Added a complete Add Layer menu for supported napari-plot and napari layer types.
|
|
18
|
+
- Added extensive examples and API/usage documentation.
|
|
19
|
+
|
|
20
|
+
## Improvements and fixes
|
|
21
|
+
|
|
22
|
+
- Migrated to napari `0.8.0` and updated associated APIs, event handling, and Pydantic validation.
|
|
23
|
+
- Improved axis tick formatting, label-overlap handling, and custom tick formatter support.
|
|
24
|
+
- Improved region and infinite-line rendering using batched VisPy visuals.
|
|
25
|
+
- Improved region and infinite-line selection, opacity, visibility, extent calculation, and rendering updates.
|
|
26
|
+
- Improved camera drag and mouse-release handling.
|
|
27
|
+
- Improved layer duplication, registration, context menus, and layer controls.
|
|
28
|
+
- Improved embedded napari widgets with host-theme synchronization.
|
|
29
|
+
- Updated the scatter widget to use the currently displayed slices of selected image layers, support nD images, and report mismatched slice shapes clearly.
|
|
30
|
+
- Added broader test coverage for axes, legends, bars, text, rendering, controls, duplication, registration, and plotting helpers.
|
|
31
|
+
|
|
32
|
+
## Compatibility and packaging
|
|
33
|
+
|
|
34
|
+
- Python `3.11+` is now required.
|
|
35
|
+
- napari `0.8.0` is required.
|
|
36
|
+
- Qt6 is now the default configuration through PyQt6 or PySide6.
|
|
37
|
+
- Replaced the legacy tox-oriented development setup with uv dependency groups and workflows.
|
|
38
|
+
- Updated CI workflows, GitHub Actions versions, pre-commit configuration, and release/deployment automation.
|
|
39
|
+
- Renamed the top-level public model export from `ViewerModel1D` to `ViewerModel`.
|
|
40
|
+
- Updated CI and deployment workflow configuration.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: napari_plot
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
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,64 @@ 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.10.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:
|
|
51
|
-
|
|
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: napari[pyside6]==0.10.0; extra == "pyside6"
|
|
47
|
+
Requires-Dist: pyside6!=6.12.0; python_version < "3.12" and extra == "pyside6"
|
|
48
|
+
Requires-Dist: pyside6>6.9.0; platform_system == "Windows" and extra == "pyside6"
|
|
49
|
+
Requires-Dist: pyside6; platform_system != "Windows" and extra == "pyside6"
|
|
54
50
|
Provides-Extra: pyside
|
|
55
|
-
Requires-Dist: napari_plot[
|
|
56
|
-
Provides-Extra:
|
|
57
|
-
Requires-Dist:
|
|
51
|
+
Requires-Dist: napari_plot[pyside6]; extra == "pyside"
|
|
52
|
+
Provides-Extra: pyqt6
|
|
53
|
+
Requires-Dist: napari[pyqt6]==0.10.0; extra == "pyqt6"
|
|
54
|
+
Requires-Dist: pyqt6>=6.9.0; extra == "pyqt6"
|
|
55
|
+
Requires-Dist: pyqt6!=6.6.1; platform_system == "Darwin" and extra == "pyqt6"
|
|
58
56
|
Provides-Extra: pyqt
|
|
59
|
-
Requires-Dist: napari_plot[
|
|
57
|
+
Requires-Dist: napari_plot[pyqt6]; extra == "pyqt"
|
|
60
58
|
Provides-Extra: qt
|
|
61
59
|
Requires-Dist: napari_plot[pyqt]; extra == "qt"
|
|
62
60
|
Provides-Extra: all
|
|
63
61
|
Requires-Dist: napari_plot[optional,pyqt]; extra == "all"
|
|
64
|
-
Requires-Dist: napari-plugin-manager<0.2.0,>=0.1.
|
|
62
|
+
Requires-Dist: napari-plugin-manager<0.2.0,>=0.1.10; extra == "all"
|
|
65
63
|
Provides-Extra: optional
|
|
66
64
|
Requires-Dist: triangle; platform_machine != "arm64" and extra == "optional"
|
|
67
65
|
Requires-Dist: numba>=0.57.1; extra == "optional"
|
|
68
66
|
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"
|
|
67
|
+
Provides-Extra: test
|
|
68
|
+
Requires-Dist: babel>=2.9.0; extra == "test"
|
|
69
|
+
Requires-Dist: fsspec>=2023.10.0; extra == "test"
|
|
70
|
+
Requires-Dist: hypothesis>=6.8.0; extra == "test"
|
|
71
|
+
Requires-Dist: lxml[html_clean]>5; extra == "test"
|
|
72
|
+
Requires-Dist: matplotlib>=3.6.1; extra == "test"
|
|
73
|
+
Requires-Dist: numba>=0.57.1; extra == "test"
|
|
74
|
+
Requires-Dist: pooch>=1.6.0; extra == "test"
|
|
75
|
+
Requires-Dist: coverage>7; extra == "test"
|
|
76
|
+
Requires-Dist: docstring_parser>=0.15; extra == "test"
|
|
77
|
+
Requires-Dist: pretend>=1.0.9; extra == "test"
|
|
78
|
+
Requires-Dist: pyautogui>=0.9.54; extra == "test"
|
|
79
|
+
Requires-Dist: pytest-qt>=4.3.1; extra == "test"
|
|
80
|
+
Requires-Dist: pytest-pretty>=1.1.0; extra == "test"
|
|
81
|
+
Requires-Dist: pytest>=8.1.0; extra == "test"
|
|
82
|
+
Requires-Dist: tensorstore>=0.1.13; extra == "test"
|
|
83
|
+
Requires-Dist: xarray>=0.16.2; extra == "test"
|
|
84
|
+
Requires-Dist: zarr<3.0.0,>=2.12.0; extra == "test"
|
|
85
|
+
Requires-Dist: IPython>=7.25.0; extra == "test"
|
|
86
|
+
Requires-Dist: qtconsole>=4.5.1; extra == "test"
|
|
87
|
+
Requires-Dist: rich>=12.0.0; extra == "test"
|
|
88
|
+
Requires-Dist: napari-plugin-manager<0.2.0,>=0.1.10; extra == "test"
|
|
89
|
+
Provides-Extra: test-extra
|
|
90
|
+
Requires-Dist: torch>=1.7; extra == "test-extra"
|
|
94
91
|
Provides-Extra: release
|
|
95
92
|
Requires-Dist: PyGithub>=1.44.1; extra == "release"
|
|
96
93
|
Requires-Dist: twine>=3.1.1; extra == "release"
|
|
@@ -101,11 +98,11 @@ Requires-Dist: ruff; extra == "dev"
|
|
|
101
98
|
Requires-Dist: pdbpp; extra == "dev"
|
|
102
99
|
Requires-Dist: check-manifest>=0.42; extra == "dev"
|
|
103
100
|
Requires-Dist: pre-commit>=2.9.0; extra == "dev"
|
|
104
|
-
Requires-Dist: pydantic
|
|
105
|
-
Requires-Dist: napari_plot[
|
|
101
|
+
Requires-Dist: pydantic; extra == "dev"
|
|
102
|
+
Requires-Dist: napari_plot[test]; extra == "dev"
|
|
106
103
|
Provides-Extra: build
|
|
107
104
|
Requires-Dist: ruff; extra == "build"
|
|
108
|
-
Requires-Dist:
|
|
105
|
+
Requires-Dist: pyqt6; extra == "build"
|
|
109
106
|
Provides-Extra: docs
|
|
110
107
|
Requires-Dist: mkdocs; extra == "docs"
|
|
111
108
|
Requires-Dist: mkdocs-material; extra == "docs"
|
|
@@ -122,16 +119,17 @@ Dynamic: license-file
|
|
|
122
119
|
[](https://anaconda.org/conda-forge/napari-plot)
|
|
123
120
|
[](https://python.org)
|
|
124
121
|
[](https://github.com/lukasz-migas/napari-plot/actions)
|
|
125
|
-
[](https://codecov.io/gh/lukasz-migas/napari-plot)
|
|
126
123
|
[](https://github.com/pre-commit/pre-commit)
|
|
127
124
|
[](https://pypistats.org/packages/napari-plot)
|
|
128
125
|
[](https://www.napari-hub.org/plugins/napari-plot)
|
|
129
126
|
[](https://napari-plot.readthedocs.io/en/latest/?badge=latest)
|
|
130
127
|
|
|
131
|
-
##
|
|
128
|
+
## Interactive plotting in napari or a standalone Qt viewer
|
|
132
129
|
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
napari-plot provides GPU-accelerated Line, Scatter, MultiLine, Centroids, Text,
|
|
131
|
+
Region, InfLine, and Bar layers. It supports linear, logarithmic, and categorical
|
|
132
|
+
axes, an interactive legend, data selection tools, and image display.
|
|
135
133
|
|
|
136
134
|
## Usage
|
|
137
135
|
|
|
@@ -164,7 +162,7 @@ please modify the list below or create a [new issue](https://github.com/lukasz-m
|
|
|
164
162
|
- [x] Shapes Layer - `napari's` own `Shapes` layer
|
|
165
163
|
- [x] Points Layer - `napari's` own `Points` layer
|
|
166
164
|
- [x] Multi-line Layer - more efficient implementation of `Line` layer when multiple lines are necessary.
|
|
167
|
-
- [
|
|
165
|
+
- [x] Bar - horizontal and vertical bar charts.
|
|
168
166
|
- [x] Proper interactivity of each layer type (e.g. moving `Region` or `InfLine`, adding points, etc...)
|
|
169
167
|
- [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
168
|
- [x] Box-zoom - standard zooming rectangle. Simply `left-mouse + drag/release` in the canvas on region of interest
|
|
@@ -173,15 +171,15 @@ please modify the list below or create a [new issue](https://github.com/lukasz-m
|
|
|
173
171
|
- [x] Rectangle select - rectangle tool allowing sub-selection of data in the canvas. Similar to the `Box-zoom` but without the zooming part.
|
|
174
172
|
- [x] Polygon select - polygon tool allowing sub-selection of data in the canvas.
|
|
175
173
|
- [x] Lasso select - lasso tool allowing sub-selection of data in the canvas.
|
|
176
|
-
- [
|
|
177
|
-
- [
|
|
174
|
+
- [x] Interactive plot legend
|
|
175
|
+
- [x] Customizable axis visuals.
|
|
178
176
|
- [x] Plot axis enabling customization of tick/label size and color
|
|
179
|
-
- [
|
|
180
|
-
- [
|
|
181
|
-
- [
|
|
182
|
-
- [
|
|
183
|
-
- [
|
|
184
|
-
- [
|
|
177
|
+
- [x] Support for logarithmic and categorical scales
|
|
178
|
+
- [x] Add convenient plotting interface:
|
|
179
|
+
- [x] Add `.plot` functionality
|
|
180
|
+
- [x] Add `.scatter` functionality
|
|
181
|
+
- [x] Add `.hbar` and `.vbar` functionality
|
|
182
|
+
- [x] Add `.imshow` functionality
|
|
185
183
|
|
|
186
184
|
----------------------------------
|
|
187
185
|
|
|
@@ -197,24 +195,51 @@ https://napari.org/docs/plugins/index.html
|
|
|
197
195
|
|
|
198
196
|
## Installation
|
|
199
197
|
|
|
198
|
+
napari-plot requires napari 0.10.0 and Python 3.11 or later. Use a Qt6 backend
|
|
199
|
+
with `pip install "napari-plot[pyqt6]"` or `pip install "napari-plot[pyside6]"`.
|
|
200
|
+
Qt5 is no longer supported.
|
|
201
|
+
|
|
200
202
|
You can install `napari-plot` directly from PyPI via:
|
|
201
203
|
|
|
202
|
-
```
|
|
204
|
+
```shell
|
|
203
205
|
pip install napari-plot
|
|
204
206
|
```
|
|
205
207
|
|
|
206
208
|
or from the git repo:
|
|
207
209
|
|
|
208
|
-
```
|
|
210
|
+
```shell
|
|
209
211
|
git clone https://github.com/lukasz-migas/napari-plot.git
|
|
210
212
|
cd napari-plot
|
|
211
213
|
pip install -e '.[all]'
|
|
212
214
|
```
|
|
213
215
|
|
|
216
|
+
The plot widgets open in a tabified bottom dock in napari. Custom layers retain
|
|
217
|
+
their individual controls; selecting several layers exposes shared opacity and
|
|
218
|
+
blending controls. Built-in-only selections use napari's dynamic controls.
|
|
219
|
+
|
|
220
|
+
`viewer.scene.camera` and `viewer.canvas.overlays` expose the new model layout.
|
|
221
|
+
Existing `viewer.camera`, `viewer.text_overlay`, `viewer.legend`, and
|
|
222
|
+
`viewer.grid_lines` accessors refer to the same objects. The custom camera,
|
|
223
|
+
log axes, and plot grid remain available.
|
|
224
|
+
|
|
225
|
+
Layer axis labels automatically populate the plot labels until those labels
|
|
226
|
+
are edited explicitly. Unspecified text and legend font sizes follow the
|
|
227
|
+
application's appearance font size; pass a number to fix the size.
|
|
228
|
+
|
|
229
|
+
Python 3.11 or later is required. See the
|
|
230
|
+
[documentation](https://napari-plot.readthedocs.io/) for standalone and embedded
|
|
231
|
+
quick starts, layer examples, axis controls, interactions, and the public API.
|
|
232
|
+
|
|
214
233
|
## Contributing
|
|
215
234
|
|
|
216
|
-
Contributions are very welcome.
|
|
217
|
-
|
|
235
|
+
Contributions are very welcome. Install the test environment and run the tests with [uv]:
|
|
236
|
+
|
|
237
|
+
```shell
|
|
238
|
+
uv sync --no-dev --group test --extra pyqt6 --extra optional
|
|
239
|
+
uv run --no-sync pytest
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
Please ensure the coverage at least stays the same before you submit a pull request.
|
|
218
243
|
|
|
219
244
|
## License
|
|
220
245
|
|
|
@@ -237,6 +262,6 @@ This project is supported by a Chan-Zuckerberg Initiative [napari](https://chanz
|
|
|
237
262
|
[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin
|
|
238
263
|
[file an issue]: https://github.com/lukasz-migas/napari-plot/issues
|
|
239
264
|
[napari]: https://github.com/napari/napari
|
|
240
|
-
[
|
|
265
|
+
[uv]: https://docs.astral.sh/uv/
|
|
241
266
|
[pip]: https://pypi.org/project/pip/
|
|
242
267
|
[PyPI]: https://pypi.org/
|