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.
Files changed (277) hide show
  1. {napari_plot-0.2.0 → napari_plot-0.3.1}/.github/workflows/auto_author_assign.yml +1 -1
  2. napari_plot-0.3.1/.github/workflows/test_and_deploy.yml +213 -0
  3. {napari_plot-0.2.0 → napari_plot-0.3.1}/.gitignore +0 -1
  4. {napari_plot-0.2.0 → napari_plot-0.3.1}/.pre-commit-config.yaml +3 -12
  5. {napari_plot-0.2.0 → napari_plot-0.3.1}/PKG-INFO +69 -62
  6. {napari_plot-0.2.0 → napari_plot-0.3.1}/README.md +29 -18
  7. {napari_plot-0.2.0 → napari_plot-0.3.1}/conftest.py +30 -3
  8. napari_plot-0.3.1/napari_plot/__init__.py +59 -0
  9. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/__main__.py +15 -17
  10. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/_app.py +13 -1
  11. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/actions/_layerlist_context_actions.py +1 -1
  12. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/constants/_menus.py +1 -1
  13. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/context/_context.py +6 -4
  14. napari_plot-0.3.1/napari_plot/_app_model/context/_layerlist_context.py +5 -0
  15. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/utils.py +1 -3
  16. napari_plot-0.3.1/napari_plot/_plot_widget.py +64 -0
  17. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/_qapp_model/__init__.py +3 -3
  18. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/component_controls/qt_axis_controls.py +79 -2
  19. napari_plot-0.3.1/napari_plot/_qt/component_controls/qt_legend_controls.py +239 -0
  20. napari_plot-0.3.1/napari_plot/_qt/layer_controls/qt_bar_controls.py +145 -0
  21. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_centroids_controls.py +16 -5
  22. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_layer_controls_base.py +0 -3
  23. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_layer_controls_container.py +25 -2
  24. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_layers_dialog.py +9 -4
  25. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_multiline_controls.py +15 -5
  26. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_scatter_controls.py +2 -2
  27. napari_plot-0.3.1/napari_plot/_qt/layer_controls/qt_text_controls.py +221 -0
  28. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/qt_event_loop.py +7 -8
  29. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/qt_layer_buttons.py +58 -21
  30. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/qt_main_window.py +42 -14
  31. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/qt_toolbar.py +27 -1
  32. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/qt_viewer.py +83 -19
  33. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/widgets/qt_dev.py +4 -4
  34. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/widgets/qt_icon_button.py +2 -2
  35. napari_plot-0.3.1/napari_plot/_scatter_widget.py +121 -0
  36. napari_plot-0.3.1/napari_plot/_version.py +24 -0
  37. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/camera.py +45 -11
  38. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/canvas.py +59 -14
  39. napari_plot-0.3.1/napari_plot/_vispy/components/axis.py +305 -0
  40. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/components/camera.py +23 -10
  41. napari_plot-0.3.1/napari_plot/_vispy/layers/bar.py +58 -0
  42. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/layers/centroids.py +2 -2
  43. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/layers/infline.py +38 -48
  44. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/layers/line.py +2 -2
  45. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/layers/multiline.py +2 -2
  46. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/layers/region.py +33 -47
  47. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/layers/scatter.py +2 -2
  48. napari_plot-0.3.1/napari_plot/_vispy/layers/text.py +72 -0
  49. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/overlays/__init__.py +4 -1
  50. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/overlays/axis.py +42 -3
  51. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/overlays/grid_lines.py +11 -2
  52. napari_plot-0.3.1/napari_plot/_vispy/overlays/legend.py +284 -0
  53. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/overlays/text.py +2 -3
  54. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/tools/polygon.py +4 -3
  55. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/utils/visual.py +5 -1
  56. napari_plot-0.3.1/napari_plot/_vispy/visuals/bar.py +23 -0
  57. napari_plot-0.3.1/napari_plot/_vispy/visuals/infline.py +285 -0
  58. napari_plot-0.3.1/napari_plot/_vispy/visuals/region.py +283 -0
  59. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/_viewer_utils.py +5 -9
  60. napari_plot-0.3.1/napari_plot/components/axis.py +130 -0
  61. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/camera.py +16 -14
  62. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/dragtool.py +3 -4
  63. napari_plot-0.3.1/napari_plot/components/legend.py +332 -0
  64. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/tools.py +12 -10
  65. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/viewer_model.py +390 -27
  66. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/__init__.py +24 -0
  67. napari_plot-0.3.1/napari_plot/layers/bar/__init__.py +5 -0
  68. napari_plot-0.3.1/napari_plot/layers/bar/bar.py +394 -0
  69. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/base.py +31 -3
  70. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/centroids/_centroids_constants.py +1 -2
  71. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/centroids/_centroids_key_bindings.py +1 -1
  72. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/centroids/_centroids_utils.py +3 -3
  73. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/centroids/centroids.py +9 -2
  74. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/infline/_infline_constants.py +5 -5
  75. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/infline/_infline_key_bindings.py +1 -1
  76. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/infline/_infline_list.py +3 -4
  77. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/infline/_infline_utils.py +7 -7
  78. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/infline/infline.py +32 -17
  79. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/line/_line_key_bindings.py +1 -1
  80. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/line/line.py +8 -3
  81. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/multiline/_multiline_key_bindings.py +1 -1
  82. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/multiline/_multiline_list.py +7 -9
  83. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/multiline/_multiline_utils.py +27 -19
  84. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/multiline/multiline.py +9 -3
  85. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/region/_region_constants.py +5 -5
  86. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/region/_region_key_bindings.py +1 -1
  87. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/region/_region_list.py +17 -13
  88. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/region/_region_mouse_bindings.py +4 -1
  89. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/region/_region_utils.py +6 -6
  90. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/region/region.py +39 -23
  91. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/scatter/_scatter_key_bindings.py +1 -1
  92. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/scatter/scatter.py +21 -3
  93. napari_plot-0.3.1/napari_plot/layers/text/__init__.py +5 -0
  94. napari_plot-0.3.1/napari_plot/layers/text/text.py +555 -0
  95. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/utils/layer_utils.py +1 -1
  96. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/napari.yaml +5 -1
  97. napari_plot-0.3.1/napari_plot/resources/__init__.py +50 -0
  98. napari_plot-0.3.1/napari_plot/resources/qss/10_napari_plot.qss +183 -0
  99. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/utils/_test_support.py +6 -3
  100. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/utils/_tool.py +2 -2
  101. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/utils/action_manager.py +2 -1
  102. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/utils/utilities.py +1 -1
  103. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/viewer.py +7 -7
  104. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot.egg-info/PKG-INFO +69 -62
  105. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot.egg-info/SOURCES.txt +36 -6
  106. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot.egg-info/requires.txt +18 -26
  107. napari_plot-0.3.1/napari_plot.egg-info/scm_file_list.json +294 -0
  108. napari_plot-0.3.1/napari_plot.egg-info/scm_version.json +8 -0
  109. {napari_plot-0.2.0 → napari_plot-0.3.1}/pyproject.toml +63 -30
  110. napari_plot-0.3.1/tests/_app_model/test_layerlist_context.py +35 -0
  111. napari_plot-0.3.1/tests/_qt/test_qt_axis_controls.py +46 -0
  112. napari_plot-0.3.1/tests/_qt/test_qt_layer_buttons.py +81 -0
  113. napari_plot-0.3.1/tests/_qt/test_qt_layer_control_icons.py +165 -0
  114. napari_plot-0.3.1/tests/_qt/test_qt_legend.py +178 -0
  115. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_qt/test_qt_viewer.py +67 -1
  116. napari_plot-0.3.1/tests/_vispy/test_axis.py +321 -0
  117. napari_plot-0.3.1/tests/_vispy/test_camera.py +105 -0
  118. napari_plot-0.3.1/tests/_vispy/test_vispy_bar_layer.py +36 -0
  119. napari_plot-0.3.1/tests/_vispy/test_vispy_infline_layer.py +94 -0
  120. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_vispy/test_vispy_line_layer.py +2 -1
  121. napari_plot-0.3.1/tests/_vispy/test_vispy_region_layer.py +102 -0
  122. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_vispy/test_vispy_scatter_layer.py +2 -1
  123. napari_plot-0.3.1/tests/_vispy/test_vispy_text_layer.py +81 -0
  124. napari_plot-0.3.1/tests/components/test_axis.py +84 -0
  125. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/components/test_viewer_model.py +97 -7
  126. napari_plot-0.3.1/tests/layer_controls/test_qt_bar_controls.py +23 -0
  127. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layer_controls/test_qt_infline_controls.py +1 -1
  128. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layer_controls/test_qt_line_controls.py +1 -1
  129. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layer_controls/test_qt_multiline_controls.py +1 -1
  130. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layer_controls/test_qt_region_controls.py +1 -1
  131. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layer_controls/test_qt_scatter_controls.py +1 -1
  132. napari_plot-0.3.1/tests/layer_controls/test_qt_text_controls.py +127 -0
  133. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/infline/test_infline_list.py +2 -2
  134. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/multiline/test_multiline_list.py +1 -1
  135. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/region/test_region.py +6 -7
  136. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/region/test_region_mouse_bindings.py +0 -2
  137. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/scatter/test_scatter.py +1 -1
  138. napari_plot-0.3.1/tests/layers/test_bar.py +84 -0
  139. napari_plot-0.3.1/tests/layers/test_duplication.py +131 -0
  140. napari_plot-0.3.1/tests/layers/test_registration.py +26 -0
  141. napari_plot-0.3.1/tests/layers/text/__init__.py +1 -0
  142. napari_plot-0.3.1/tests/layers/text/test_text.py +228 -0
  143. napari_plot-0.3.1/tests/test_lazy_import.py +40 -0
  144. napari_plot-0.3.1/tests/test_plot_widget.py +103 -0
  145. napari_plot-0.3.1/tests/test_plotting_api.py +77 -0
  146. napari_plot-0.3.1/tests/test_scatter_widget.py +86 -0
  147. napari_plot-0.2.0/.github/labeler.yml +0 -22
  148. napari_plot-0.2.0/.github/workflows/auto_label.yml +0 -12
  149. napari_plot-0.2.0/.github/workflows/make_release.yml +0 -81
  150. napari_plot-0.2.0/.github/workflows/test_comprehensive.yml +0 -153
  151. napari_plot-0.2.0/.github/workflows/test_pull_requests.yml +0 -147
  152. napari_plot-0.2.0/napari_plot/__init__.py +0 -30
  153. napari_plot-0.2.0/napari_plot/_app_model/context/_layerlist_context.py +0 -289
  154. napari_plot-0.2.0/napari_plot/_plot_widget.py +0 -23
  155. napari_plot-0.2.0/napari_plot/_scatter_widget.py +0 -89
  156. napari_plot-0.2.0/napari_plot/_version.py +0 -34
  157. napari_plot-0.2.0/napari_plot/_vispy/components/axis.py +0 -56
  158. napari_plot-0.2.0/napari_plot/_vispy/visuals/infline.py +0 -91
  159. napari_plot-0.2.0/napari_plot/_vispy/visuals/region.py +0 -93
  160. napari_plot-0.2.0/napari_plot/components/axis.py +0 -32
  161. napari_plot-0.2.0/napari_plot/resources/__init__.py +0 -48
  162. napari_plot-0.2.0/napari_plot/resources/qss/10_napari_plot.qss +0 -21
  163. napari_plot-0.2.0/tests/test_plot_widget.py +0 -22
  164. napari_plot-0.2.0/tests/test_scatter_widget.py +0 -52
  165. napari_plot-0.2.0/tox.ini +0 -110
  166. {napari_plot-0.2.0 → napari_plot-0.3.1}/.deepsource.toml +0 -0
  167. {napari_plot-0.2.0 → napari_plot-0.3.1}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  168. {napari_plot-0.2.0 → napari_plot-0.3.1}/.github/ISSUE_TEMPLATE/documentation.md +0 -0
  169. {napari_plot-0.2.0 → napari_plot-0.3.1}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  170. {napari_plot-0.2.0 → napari_plot-0.3.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  171. {napari_plot-0.2.0 → napari_plot-0.3.1}/.github/TEST_FAIL_TEMPLATE.md +0 -0
  172. {napari_plot-0.2.0 → napari_plot-0.3.1}/.github/dependabot.yml +0 -0
  173. {napari_plot-0.2.0 → napari_plot-0.3.1}/LICENSE +0 -0
  174. {napari_plot-0.2.0 → napari_plot-0.3.1}/MANIFEST.in +0 -0
  175. {napari_plot-0.2.0 → napari_plot-0.3.1}/Makefile +0 -0
  176. {napari_plot-0.2.0 → napari_plot-0.3.1}/codecov.yml +0 -0
  177. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/__init__.py +0 -0
  178. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/actions/__init__.py +0 -0
  179. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/constants/__init__.py +0 -0
  180. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/context/__init__.py +0 -0
  181. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_app_model/context/_context_keys.py +0 -0
  182. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_contribution.py +0 -0
  183. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/__init__.py +0 -0
  184. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/_qapp_model/_qproviders.py +0 -0
  185. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/component_controls/__init__.py +0 -0
  186. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/component_controls/qt_camera_controls.py +0 -0
  187. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/__init__.py +0 -0
  188. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_infline_controls.py +0 -0
  189. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_line_controls.py +0 -0
  190. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/layer_controls/qt_region_controls.py +0 -0
  191. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/qt_welcome.py +0 -0
  192. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/widgets/__init__.py +0 -0
  193. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_qt/widgets/qt_splash_screen.py +0 -0
  194. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/__init__.py +0 -0
  195. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/components/__init__.py +0 -0
  196. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/layers/__init__.py +0 -0
  197. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/tools/__init__.py +0 -0
  198. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/tools/drag.py +0 -0
  199. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/utils/__init__.py +0 -0
  200. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/utils/axis.py +0 -0
  201. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/visuals/__init__.py +0 -0
  202. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/visuals/centroids.py +0 -0
  203. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/visuals/line.py +0 -0
  204. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/visuals/multiline.py +0 -0
  205. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/_vispy/visuals/scatter.py +0 -0
  206. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/__init__.py +0 -0
  207. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/_viewer_key_bindings.py +0 -0
  208. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/_viewer_mouse_bindings.py +1 -1
  209. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/grid_lines.py +0 -0
  210. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/gridlines.py +0 -0
  211. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/components/layerlist.py +0 -0
  212. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/centroids/__init__.py +0 -0
  213. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/infline/__init__.py +0 -0
  214. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/infline/_infline.py +0 -0
  215. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/infline/_infline_mouse_bindings.py +0 -0
  216. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/line/__init__.py +0 -0
  217. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/line/_line_constants.py +0 -0
  218. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/multiline/__init__.py +0 -0
  219. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/multiline/_multiline_constants.py +0 -0
  220. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/region/__init__.py +0 -0
  221. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/region/_region.py +0 -0
  222. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/scatter/__init__.py +0 -0
  223. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/scatter/_utilities.py +0 -0
  224. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/layers/utils/__init__.py +0 -0
  225. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/resources/icon.icns +0 -0
  226. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/resources/icon.ico +0 -0
  227. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/resources/icons/logo_silhouette_plot.svg +0 -0
  228. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/resources/icons/new_centroids.svg +0 -0
  229. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/resources/icons/new_inf_line.svg +0 -0
  230. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/resources/icons/new_line.svg +0 -0
  231. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/resources/icons/new_region.svg +0 -0
  232. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/resources/icons/new_scatter.svg +0 -0
  233. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/resources/logo.png +0 -0
  234. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/utils/__init__.py +0 -0
  235. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/utils/_register.py +0 -0
  236. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/utils/system.py +0 -0
  237. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot/window.py +0 -0
  238. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot.egg-info/dependency_links.txt +0 -0
  239. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot.egg-info/entry_points.txt +0 -0
  240. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot.egg-info/not-zip-safe +0 -0
  241. {napari_plot-0.2.0 → napari_plot-0.3.1}/napari_plot.egg-info/top_level.txt +0 -0
  242. {napari_plot-0.2.0 → napari_plot-0.3.1}/renovate.json +0 -0
  243. {napari_plot-0.2.0 → napari_plot-0.3.1}/scripts/png_to_icon.bat +0 -0
  244. {napari_plot-0.2.0 → napari_plot-0.3.1}/scripts/qtaicons.bat +0 -0
  245. {napari_plot-0.2.0 → napari_plot-0.3.1}/setup.cfg +0 -0
  246. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/__init__.py +0 -0
  247. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_app_model/__init__.py +0 -0
  248. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_app_model/test_app.py +0 -0
  249. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_app_model/test_constants.py +0 -0
  250. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_app_model/test_context.py +0 -0
  251. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_qt/__init__.py +0 -0
  252. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_qt/test_qt_splash_screen.py +0 -0
  253. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_qt/test_qt_window.py +0 -0
  254. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_vispy/__init__.py +0 -0
  255. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/_vispy/test_vispy_tools.py +0 -0
  256. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/components/__init__.py +0 -0
  257. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/components/test_camera.py +0 -0
  258. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/components/test_tools.py +0 -0
  259. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layer_controls/__init__.py +0 -0
  260. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/__init__.py +0 -0
  261. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/centroids/__init__.py +0 -0
  262. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/centroids/test_centroids.py +0 -0
  263. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/infline/__init__.py +0 -0
  264. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/infline/test_infline.py +0 -0
  265. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/infline/test_infline_mouse_bindings.py +0 -0
  266. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/infline/test_infline_utils.py +0 -0
  267. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/line/__init__.py +0 -0
  268. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/line/test_line.py +0 -0
  269. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/multiline/__init__.py +0 -0
  270. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/multiline/test_multiline.py +0 -0
  271. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/multiline/test_multiline_utils.py +0 -0
  272. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/region/__init__.py +0 -0
  273. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/layers/scatter/__init__.py +0 -0
  274. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/test_examples.py +0 -0
  275. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/utils/__init__.py +0 -0
  276. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/utils/test_tool.py +0 -0
  277. {napari_plot-0.2.0 → napari_plot-0.3.1}/tests/utils/test_utilities.py +0 -0
@@ -12,4 +12,4 @@ jobs:
12
12
  assign-author:
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
- - uses: toshimaru/auto-author-assign@v2.1.1
15
+ - uses: toshimaru/auto-author-assign@v3.0.3
@@ -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/*
@@ -36,7 +36,6 @@ pip-delete-this-directory.txt
36
36
 
37
37
  # Unit test / coverage reports
38
38
  htmlcov/
39
- .tox/
40
39
  .coverage
41
40
  .coverage.*
42
41
  .cache
@@ -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.5.0
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.14.2
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.5.2
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.2.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.9
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<=0.5.6; python_version <= "3.9"
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: pyside2
48
- Requires-Dist: PySide2!=5.15.0,>=5.13.2; (python_version < "3.11" and platform_machine != "arm64") and extra == "pyside2"
49
- Provides-Extra: pyside6-experimental
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[pyside2]; extra == "pyside"
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[pyqt5]; extra == "pyqt"
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.3; extra == "all"
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: testing
70
- Requires-Dist: babel>=2.9.0; extra == "testing"
71
- Requires-Dist: fsspec>=2023.10.0; extra == "testing"
72
- Requires-Dist: hypothesis>=6.8.0; extra == "testing"
73
- Requires-Dist: lxml[html_clean]>5; extra == "testing"
74
- Requires-Dist: matplotlib>=3.6.1; extra == "testing"
75
- Requires-Dist: numba>=0.57.1; extra == "testing"
76
- Requires-Dist: pooch>=1.6.0; extra == "testing"
77
- Requires-Dist: coverage>7; extra == "testing"
78
- Requires-Dist: docstring_parser>=0.15; extra == "testing"
79
- Requires-Dist: pretend>=1.0.9; extra == "testing"
80
- Requires-Dist: pyautogui>=0.9.54; extra == "testing"
81
- Requires-Dist: pytest-qt>=4.3.1; extra == "testing"
82
- Requires-Dist: pytest-pretty>=1.1.0; extra == "testing"
83
- Requires-Dist: pytest>=8.1.0; extra == "testing"
84
- Requires-Dist: tensorstore>=0.1.13; extra == "testing"
85
- Requires-Dist: virtualenv>=20.17; extra == "testing"
86
- Requires-Dist: xarray>=0.16.2; extra == "testing"
87
- Requires-Dist: zarr>=2.12.0; extra == "testing"
88
- Requires-Dist: IPython>=7.25.0; extra == "testing"
89
- Requires-Dist: qtconsole>=4.5.1; extra == "testing"
90
- Requires-Dist: rich>=12.0.0; extra == "testing"
91
- Requires-Dist: napari-plugin-manager<0.2.0,>=0.1.0a2; extra == "testing"
92
- Provides-Extra: testing-extra
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[dotenv]; extra == "dev"
105
- Requires-Dist: napari_plot[testing]; extra == "dev"
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: pyqt5; extra == "build"
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
  [![Anaconda-Server Badge](https://anaconda.org/conda-forge/napari-plot/badges/version.svg)](https://anaconda.org/conda-forge/napari-plot)
123
119
  [![Python Version](https://img.shields.io/pypi/pyversions/napari-plot.svg?color=green)](https://python.org)
124
120
  [![tests](https://github.com/lukasz-migas/napari-plot/workflows/tests/badge.svg)](https://github.com/lukasz-migas/napari-plot/actions)
125
- [![codecov](https://codecov.io/gh/lukasz-migas/napari-1d/branch/main/graph/badge.svg)](https://codecov.io/gh/lukasz-migas/napari-plot)
121
+ [![codecov](https://codecov.io/gh/lukasz-migas/napari-plot/branch/main/graph/badge.svg)](https://codecov.io/gh/lukasz-migas/napari-plot)
126
122
  [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
127
123
  [![PyPI - Downloads](https://img.shields.io/pypi/dm/napari-plot.svg)](https://pypistats.org/packages/napari-plot)
128
124
  [![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-plot)](https://www.napari-hub.org/plugins/napari-plot)
129
125
  [![Documentation Status](https://readthedocs.org/projects/napari-plot/badge/?version=latest)](https://napari-plot.readthedocs.io/en/latest/?badge=latest)
130
126
 
131
- ## Plugin providing support for 1d plotting in napari.
127
+ ## Interactive plotting in napari or a standalone Qt viewer
132
128
 
133
- This plugin is in very early stages of development and many things are still in a state of disarray. New features and bug fixes
134
- will be coming over the coming months.
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
- - [ ] Bar - horizontal and vertical barchart (TODO)
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
- - [ ] Interactive plot legend
177
- - [ ] Customizable axis visuals.
173
+ - [x] Interactive plot legend
174
+ - [x] Customizable axis visuals.
178
175
  - [x] Plot axis enabling customization of tick/label size and color
179
- - [ ] Support for non-linear scale
180
- - [ ] Add convenient plotting interface:
181
- - [ ] Add `.plot` functionality
182
- - [ ] Add `.scatter` functionality
183
- - [ ] Add `.hbar` and `.vbar` functionality
184
- - [ ] Add `.imshow` functionality
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
- ```python
199
+ ```shell
203
200
  pip install napari-plot
204
201
  ```
205
202
 
206
203
  or from the git repo:
207
204
 
208
- ```python
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. Tests can be run with [tox], please ensure
217
- the coverage at least stays the same before you submit a pull request.
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
- [tox]: https://tox.readthedocs.io/en/latest/
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
  [![Anaconda-Server Badge](https://anaconda.org/conda-forge/napari-plot/badges/version.svg)](https://anaconda.org/conda-forge/napari-plot)
6
6
  [![Python Version](https://img.shields.io/pypi/pyversions/napari-plot.svg?color=green)](https://python.org)
7
7
  [![tests](https://github.com/lukasz-migas/napari-plot/workflows/tests/badge.svg)](https://github.com/lukasz-migas/napari-plot/actions)
8
- [![codecov](https://codecov.io/gh/lukasz-migas/napari-1d/branch/main/graph/badge.svg)](https://codecov.io/gh/lukasz-migas/napari-plot)
8
+ [![codecov](https://codecov.io/gh/lukasz-migas/napari-plot/branch/main/graph/badge.svg)](https://codecov.io/gh/lukasz-migas/napari-plot)
9
9
  [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
10
10
  [![PyPI - Downloads](https://img.shields.io/pypi/dm/napari-plot.svg)](https://pypistats.org/packages/napari-plot)
11
11
  [![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-plot)](https://www.napari-hub.org/plugins/napari-plot)
12
12
  [![Documentation Status](https://readthedocs.org/projects/napari-plot/badge/?version=latest)](https://napari-plot.readthedocs.io/en/latest/?badge=latest)
13
13
 
14
- ## Plugin providing support for 1d plotting in napari.
14
+ ## Interactive plotting in napari or a standalone Qt viewer
15
15
 
16
- This plugin is in very early stages of development and many things are still in a state of disarray. New features and bug fixes
17
- will be coming over the coming months.
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
- - [ ] Bar - horizontal and vertical barchart (TODO)
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
- - [ ] Interactive plot legend
60
- - [ ] Customizable axis visuals.
60
+ - [x] Interactive plot legend
61
+ - [x] Customizable axis visuals.
61
62
  - [x] Plot axis enabling customization of tick/label size and color
62
- - [ ] Support for non-linear scale
63
- - [ ] Add convenient plotting interface:
64
- - [ ] Add `.plot` functionality
65
- - [ ] Add `.scatter` functionality
66
- - [ ] Add `.hbar` and `.vbar` functionality
67
- - [ ] Add `.imshow` functionality
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
- ```python
86
+ ```shell
86
87
  pip install napari-plot
87
88
  ```
88
89
 
89
90
  or from the git repo:
90
91
 
91
- ```python
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. Tests can be run with [tox], please ensure
100
- the coverage at least stays the same before you submit a pull request.
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
- [tox]: https://tox.readthedocs.io/en/latest/
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: ty.Union[tuple, list, np.ndarray]
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: ty.Union[tuple, list, np.ndarray]
232
- position: ty.Union[tuple, list, np.ndarray]
258
+ pos: tuple | list | np.ndarray
259
+ position: tuple | list | np.ndarray
233
260
 
234
261
  return Event