pyfigures 0.2.22__tar.gz → 0.2.23__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 (423) hide show
  1. {pyfigures-0.2.22 → pyfigures-0.2.23}/PKG-INFO +6 -6
  2. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/categorized_mcp.py +7 -3
  3. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/live_mcp.py +25 -2
  4. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/drop_sketch.py +4 -4
  5. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/ezfig.py +54 -0
  6. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/panelcreationwidget.py +25 -1
  7. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/pfgui.py +26 -2
  8. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/show_me_how.py +56 -2
  9. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/show_me_where.py +6 -2
  10. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/mcp_server.py +12 -4
  11. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/mcp_tools/annotations.py +37 -12
  12. pyfigures-0.2.23/pyfigures/mcp_tools/category_surface.py +127 -0
  13. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/mcp_tools/content.py +64 -1
  14. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/mcp_tools/core.py +11 -5
  15. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/mcp_tools/export.py +1 -1
  16. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/mcp_tools/structure.py +7 -2
  17. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/object_detection.py +25 -2
  18. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/recipe.py +2 -2
  19. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/version.py +1 -1
  20. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures.egg-info/PKG-INFO +6 -6
  21. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures.egg-info/SOURCES.txt +13 -0
  22. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures.egg-info/requires.txt +5 -5
  23. {pyfigures-0.2.22 → pyfigures-0.2.23}/setup.py +5 -5
  24. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_canvas_context_menu.py +1 -0
  25. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_canvas_keyboard_and_clicks.py +1 -0
  26. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_detect_objects_20261113.py +1 -1
  27. pyfigures-0.2.23/tests/test_detect_objects_polygons_20261123.py +61 -0
  28. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_dnd_combine_with_target.py +1 -0
  29. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_dnd_main_editor.py +2 -0
  30. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_drop_sketches.py +23 -2
  31. pyfigures-0.2.23/tests/test_drop_tables_row_spacing_20261123.py +50 -0
  32. pyfigures-0.2.23/tests/test_figure_width_mm_20261123.py +52 -0
  33. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_fiji_formats.py +3 -1
  34. pyfigures-0.2.23/tests/test_fiji_quiet_start_20261123.py +47 -0
  35. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_folder_drag_and_drop.py +1 -0
  36. pyfigures-0.2.23/tests/test_grid_panel_default_shape_20261123.py +45 -0
  37. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_gui_e2e_tutorials.py +3 -2
  38. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_gui_menus_and_toolbar.py +1 -0
  39. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_gui_more_actions.py +1 -0
  40. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_human_requests_20261112.py +1 -1
  41. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_internal_dnd_group_placement.py +1 -0
  42. pyfigures-0.2.23/tests/test_letter_readability_no_bold_20261123.py +52 -0
  43. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_lettering_restore.py +1 -0
  44. pyfigures-0.2.23/tests/test_mcp_category_surface_20261123.py +90 -0
  45. pyfigures-0.2.23/tests/test_multi_drag_new_row_20261123.py +80 -0
  46. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_panel_editor.py +1 -0
  47. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_plot_edit_keeps_spacing_20261119.py +9 -0
  48. pyfigures-0.2.23/tests/test_plot_redraw_settles_20261123.py +81 -0
  49. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_qc_reports.py +1 -0
  50. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_row_letters_chat_style_20261106.py +1 -0
  51. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_row_letters_gui.py +1 -0
  52. pyfigures-0.2.23/tests/test_scale_bar_colour_choice_20261123.py +10 -0
  53. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_send_to_poster.py +1 -0
  54. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_show_me_how.py +24 -0
  55. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_show_me_where_20261105.py +26 -0
  56. pyfigures-0.2.23/tests/test_stack_merge_20261123.py +56 -0
  57. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_text_editor_and_widgets.py +1 -0
  58. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_typography_tidy.py +1 -0
  59. pyfigures-0.2.23/tests/test_window_fixtures_delete_20261121.py +50 -0
  60. {pyfigures-0.2.22 → pyfigures-0.2.23}/LICENSE +0 -0
  61. {pyfigures-0.2.22 → pyfigures-0.2.23}/README.md +0 -0
  62. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/__init__.py +0 -0
  63. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/__main__.py +0 -0
  64. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/album/__init__.py +0 -0
  65. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/album/__main__.py +0 -0
  66. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/arrowheads.py +0 -0
  67. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/__init__.py +0 -0
  68. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/advanced_annotations.py +0 -0
  69. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/assistant_actions.py +0 -0
  70. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/chat_replay.py +0 -0
  71. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/chat_video.py +0 -0
  72. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/existing_tools.py +0 -0
  73. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/figure_state.py +0 -0
  74. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/gui_selection.py +0 -0
  75. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/launch.py +0 -0
  76. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/letter_sequence.py +0 -0
  77. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/live_structure.py +0 -0
  78. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/manual_help.py +0 -0
  79. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/manual_help_verified.json +0 -0
  80. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/native_gui.py +0 -0
  81. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/original_registry.py +0 -0
  82. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/partner_gui.py +0 -0
  83. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/plot_info.py +0 -0
  84. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/plot_lifecycle.py +0 -0
  85. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/pointer_context.py +0 -0
  86. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/readability.py +0 -0
  87. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/recovery.py +0 -0
  88. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/result_evidence.py +0 -0
  89. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/session.py +0 -0
  90. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/submission_review.py +0 -0
  91. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/assistant/web_chat.py +0 -0
  92. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/atomic_io.py +0 -0
  93. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/burned_text.py +0 -0
  94. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/colorbar_script.py +0 -0
  95. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/connectors.py +0 -0
  96. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/constant_panels.py +0 -0
  97. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/cvd.py +0 -0
  98. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/equations.py +0 -0
  99. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/extras.py +0 -0
  100. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/flip.py +0 -0
  101. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/__init__.py +0 -0
  102. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/about_dialog_pzf.py +0 -0
  103. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/annotation_editor.py +0 -0
  104. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/asingleoraspanel.py +0 -0
  105. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/autolettering_widget.py +0 -0
  106. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/bg_color_selection.py +0 -0
  107. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/bug_recorder.py +0 -0
  108. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/caption_dialog.py +0 -0
  109. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/chat_video_dialog.py +0 -0
  110. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/colorassistant.py +0 -0
  111. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/command_box.py +0 -0
  112. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/ctrl_key.py +0 -0
  113. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/deckcraft_blank.json +0 -0
  114. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/dimchooser.py +0 -0
  115. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/drag_sketch.py +0 -0
  116. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/editable_export.py +0 -0
  117. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/editor_interaction.py +0 -0
  118. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/emptyimagedialog.py +0 -0
  119. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/equation_dialog.py +0 -0
  120. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/fonts/README.md +0 -0
  121. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/fontselectorgui.py +0 -0
  122. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/group_builder_GUI.py +0 -0
  123. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/headless_ops.py +0 -0
  124. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/integrity_ops.py +0 -0
  125. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/journal_style_editor.py +0 -0
  126. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/keep_tst_images_for_pzf.py +0 -0
  127. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/label_rows.py +0 -0
  128. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/latex_code_dialog.py +0 -0
  129. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/latex_support.py +0 -0
  130. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/lutmultiselector.py +0 -0
  131. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/mcp_server_dialog.py +0 -0
  132. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/page_fit.py +0 -0
  133. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/pagelimitswidget.py +0 -0
  134. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/pdf_support.py +0 -0
  135. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/portable_fonts.py +0 -0
  136. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/qc_reports.py +0 -0
  137. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/region_picker.py +0 -0
  138. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/render_headless.py +0 -0
  139. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/replay_dialog.py +0 -0
  140. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/review/__init__.py +0 -0
  141. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/review/_template.py +0 -0
  142. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/review/dialog.py +0 -0
  143. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/review/html_export.py +0 -0
  144. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/review/send.py +0 -0
  145. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/row_letters.py +0 -0
  146. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/scalebareditor.py +0 -0
  147. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/scrollableEZFIG.py +0 -0
  148. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/selection_badges.py +0 -0
  149. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/selection_style.py +0 -0
  150. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/simple_text_editor.py +0 -0
  151. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/spaceselector.py +0 -0
  152. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/staplot_editor.py +0 -0
  153. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/style_text_headless.py +0 -0
  154. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/svg_painter.py +0 -0
  155. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/textEditWatcher.py +0 -0
  156. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/theme.py +0 -0
  157. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/tipdialog.py +0 -0
  158. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/tutorial.py +0 -0
  159. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/user_extra_translation.py +0 -0
  160. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/user_prefs.py +0 -0
  161. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/video_support.py +0 -0
  162. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/web_chat_panel.py +0 -0
  163. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/widget_for_inset.py +0 -0
  164. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/zoom_bar.py +0 -0
  165. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/gui/zoom_links.py +0 -0
  166. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/guides.py +0 -0
  167. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/history.py +0 -0
  168. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/icons/__init__.py +0 -0
  169. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/icons/pyfigures.png +0 -0
  170. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/icons/pyfigures_album.png +0 -0
  171. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/icons/pyfigures_poster.png +0 -0
  172. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/image_search.py +0 -0
  173. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/journal_styles.py +0 -0
  174. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/latex_document.py +0 -0
  175. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/layout_formula.py +0 -0
  176. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/layout_picture.py +0 -0
  177. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/mcp_control.py +0 -0
  178. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/mcp_tools/__init__.py +0 -0
  179. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/mcp_tools/app.py +0 -0
  180. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/mcp_tools/guidance.py +0 -0
  181. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/mcp_tools/image_search.py +0 -0
  182. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/mcp_tools/journal.py +0 -0
  183. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/mcp_tools/overlays.py +0 -0
  184. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/mcp_tools/poster.py +0 -0
  185. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/mcp_tools/qc.py +0 -0
  186. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/mcp_tools/stacks.py +0 -0
  187. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/mcp_tools/upkeep.py +0 -0
  188. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/mcp_tools/workflow.py +0 -0
  189. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/office_math.py +0 -0
  190. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/offscreen.py +0 -0
  191. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/panel_source_preview.py +0 -0
  192. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/path_resolution.py +0 -0
  193. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/plot_tables.py +0 -0
  194. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/poster/__init__.py +0 -0
  195. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/poster/__main__.py +0 -0
  196. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/poster/page_presets.py +0 -0
  197. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/poster/poster_align.py +0 -0
  198. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/poster/poster_canvas.py +0 -0
  199. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/poster/poster_headless.py +0 -0
  200. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/poster/poster_layout_dialog.py +0 -0
  201. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/poster/poster_layouts.py +0 -0
  202. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/poster/poster_recipe.py +0 -0
  203. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/poster/poster_shapes.py +0 -0
  204. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/poster/poster_source_data.py +0 -0
  205. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/poster/poster_templates.py +0 -0
  206. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/poster/poster_text_dialog.py +0 -0
  207. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/poster/poster_web_export.py +0 -0
  208. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/poster/poster_window.py +0 -0
  209. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/poster/serialization.py +0 -0
  210. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/qt_exit.py +0 -0
  211. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/script_helpers.py +0 -0
  212. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/script_panels.py +0 -0
  213. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/script_safety.py +0 -0
  214. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/seaborn_plot.py +0 -0
  215. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/self_test.py +0 -0
  216. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/source_snapshot.py +0 -0
  217. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/stack_info.py +0 -0
  218. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/stats_legend.py +0 -0
  219. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/table_panel.py +0 -0
  220. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/text_fonts.py +0 -0
  221. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures/zoom_geometry.py +0 -0
  222. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures.egg-info/dependency_links.txt +0 -0
  223. {pyfigures-0.2.22 → pyfigures-0.2.23}/pyfigures.egg-info/top_level.txt +0 -0
  224. {pyfigures-0.2.22 → pyfigures-0.2.23}/setup.cfg +0 -0
  225. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_advanced_edit_tools.py +0 -0
  226. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_all_panels_hint_20261120.py +0 -0
  227. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_arrow_tip.py +0 -0
  228. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_arrowheads.py +0 -0
  229. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_assistant_live.py +0 -0
  230. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_atomic_io.py +0 -0
  231. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_audit_fixes.py +0 -0
  232. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_audit_fixes_20261008.py +0 -0
  233. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_backgrounds.py +0 -0
  234. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_box_handles_20261113.py +0 -0
  235. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_bug_recorder.py +0 -0
  236. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_bugs_found_by_gui_e2e.py +0 -0
  237. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_caption_statistics_20261119.py +0 -0
  238. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_channel_numbering_20261116.py +0 -0
  239. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_channels_property_20261105.py +0 -0
  240. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_chat_replay_20261113.py +0 -0
  241. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_chat_reports_20261110.py +0 -0
  242. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_chat_scenarios_20261113.py +0 -0
  243. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_chat_video_20261118.py +0 -0
  244. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_codex_trial_findings.py +0 -0
  245. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_colour_bar_gui.py +0 -0
  246. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_command_box.py +0 -0
  247. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_connectors_20261112.py +0 -0
  248. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_consolidate_download.py +0 -0
  249. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_constant_panels.py +0 -0
  250. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_data_plots_and_stats.py +0 -0
  251. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_default_scale_bar_length.py +0 -0
  252. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_deserialization.py +0 -0
  253. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_dispatcher_batch_20261113.py +0 -0
  254. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_dnd_canvas_more.py +0 -0
  255. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_docs_tool_count_20261117.py +0 -0
  256. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_draft_figure.py +0 -0
  257. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_editable_export.py +0 -0
  258. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_editable_plot_text.py +0 -0
  259. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_editor_interaction.py +0 -0
  260. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_editor_rotate_and_tool_20261105.py +0 -0
  261. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_empty_canvas_chat_arrow_20261120.py +0 -0
  262. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_empty_canvas_hints_20261119.py +0 -0
  263. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_empty_inset_roi_20261106.py +0 -0
  264. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_equations.py +0 -0
  265. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_exception_handler.py +0 -0
  266. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_export_waits_for_images.py +0 -0
  267. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_facet_panels_20261120.py +0 -0
  268. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_fig_rect_cache.py +0 -0
  269. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_figure_colors.py +0 -0
  270. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_figure_diff.py +0 -0
  271. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_file_io_encoding.py +0 -0
  272. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_file_state_tracking.py +0 -0
  273. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_flip.py +0 -0
  274. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_folder_files_20261119.py +0 -0
  275. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_fonts_available.py +0 -0
  276. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_forbidden_files.py +0 -0
  277. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_gui_e2e_context_menu.py +0 -0
  278. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_gui_e2e_coverage.py +0 -0
  279. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_gui_e2e_dnd.py +0 -0
  280. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_gui_e2e_image_editor.py +0 -0
  281. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_gui_e2e_menus.py +0 -0
  282. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_gui_e2e_monkey.py +0 -0
  283. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_gui_e2e_visual.py +0 -0
  284. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_gui_workflow_actions.py +0 -0
  285. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_guide_routing.py +0 -0
  286. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_h264_fallback_20261118.py +0 -0
  287. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_human_requests_20261116.py +0 -0
  288. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_human_requests_20261118.py +0 -0
  289. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_image_opacity_reload.py +0 -0
  290. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_image_search.py +0 -0
  291. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_inset_box_move_20261120.py +0 -0
  292. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_inset_crop_margins_20261106.py +0 -0
  293. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_integrity_and_stats.py +0 -0
  294. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_interactive_tools.py +0 -0
  295. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_inverted_luts.py +0 -0
  296. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_journal_styles.py +0 -0
  297. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_last_chat_procedure_20261113.py +0 -0
  298. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_latex_code.py +0 -0
  299. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_latex_documents.py +0 -0
  300. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_latex_extras.py +0 -0
  301. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_latex_full.py +0 -0
  302. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_latex_stress_findings.py +0 -0
  303. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_launchers.py +0 -0
  304. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_layout_canvas_geometry.py +0 -0
  305. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_layout_formula.py +0 -0
  306. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_layout_stability_gui.py +0 -0
  307. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_lazy_loading_placeholder_20261106.py +0 -0
  308. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_lazy_reflow.py +0 -0
  309. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_letter_box_lowercase_20261117.py +0 -0
  310. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_licensing.py +0 -0
  311. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_lif_series_reading.py +0 -0
  312. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_llm_feedback_20261020.py +0 -0
  313. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_llm_findings_20261118.py +0 -0
  314. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_lut_remove_20261105.py +0 -0
  315. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_max_height.py +0 -0
  316. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_mcp_audit_findings.py +0 -0
  317. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_mcp_control.py +0 -0
  318. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_mcp_history.py +0 -0
  319. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_mcp_probe_fixes_20261121.py +0 -0
  320. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_mcp_server.py +0 -0
  321. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_mcp_stdio_protocol.py +0 -0
  322. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_mcp_text_arguments.py +0 -0
  323. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_missing_images_gui.py +0 -0
  324. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_move_annotations_20261113.py +0 -0
  325. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_normalization.py +0 -0
  326. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_offscreen_env.py +0 -0
  327. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_ome_zarr.py +0 -0
  328. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_omero.py +0 -0
  329. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_open_perf.py +0 -0
  330. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_page_fit_20261116.py +0 -0
  331. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_panel_as_shown_20261117.py +0 -0
  332. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_panel_editor_more.py +0 -0
  333. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_panel_preview.py +0 -0
  334. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_parity_mcp.py +0 -0
  335. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_path_resolution.py +0 -0
  336. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_pdf_panels.py +0 -0
  337. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_placeholder_grid.py +0 -0
  338. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_plot_font_follows_labels_20261119.py +0 -0
  339. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_plot_font_glyph_failure_20261120.py +0 -0
  340. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_plot_kinds_more_20261120.py +0 -0
  341. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_plot_layers_y2_20261120.py +0 -0
  342. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_plot_panel_background_20261119.py +0 -0
  343. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_plot_requests_more_20261118.py +0 -0
  344. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_plot_subjects_20261120.py +0 -0
  345. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_plot_tables_consolidation_20261118.py +0 -0
  346. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_plot_text_parts_20261120.py +0 -0
  347. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_portability.py +0 -0
  348. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_poster_files_and_recipe.py +0 -0
  349. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_poster_gui.py +0 -0
  350. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_poster_mcp.py +0 -0
  351. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_poster_stress_findings.py +0 -0
  352. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_poster_vector_figures.py +0 -0
  353. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_preview_panel_direct_20261119.py +0 -0
  354. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_property_setters_validate.py +0 -0
  355. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_pyf_loader_thread_deadlock.py +0 -0
  356. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_pyf_loading.py +0 -0
  357. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_pymupdf_offer.py +0 -0
  358. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_qc_gui.py +0 -0
  359. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_qc_mcp_tools.py +0 -0
  360. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_qt_exit.py +0 -0
  361. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_recipe.py +0 -0
  362. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_recipe_checks_bundles.py +0 -0
  363. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_recipe_extra_keys.py +0 -0
  364. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_recipe_for_llms.py +0 -0
  365. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_recipe_more_keys.py +0 -0
  366. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_recordings.py +0 -0
  367. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_remove_many_panels_20261117.py +0 -0
  368. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_remove_rois_20261113.py +0 -0
  369. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_remove_rois_editor_20261113.py +0 -0
  370. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_render_export.py +0 -0
  371. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_request_rules_20261119.py +0 -0
  372. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_restyle_texts.py +0 -0
  373. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_review_and_library.py +0 -0
  374. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_roi_small_drag_20261116.py +0 -0
  375. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_rotation_direction_20261117.py +0 -0
  376. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_rotation_keeps_crop_20261119.py +0 -0
  377. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_ruler_labels.py +0 -0
  378. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_rules_first_20261119.py +0 -0
  379. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_save_reminder.py +0 -0
  380. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_scale_bar_calibration.py +0 -0
  381. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_scale_bar_one_property_20261112.py +0 -0
  382. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_scale_bar_text_mismatch_20261120.py +0 -0
  383. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_scale_bar_under_letter_20261119.py +0 -0
  384. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_scale_consistency.py +0 -0
  385. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_scan_folder_random_sample.py +0 -0
  386. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_schema_sweep_findings.py +0 -0
  387. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_script_panels_20261120.py +0 -0
  388. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_selection_two_tone_20261117.py +0 -0
  389. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_self_test.py +0 -0
  390. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_shapes.py +0 -0
  391. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_single_channel_colour_20261117.py +0 -0
  392. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_source_data.py +0 -0
  393. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_split_violins_20261118.py +0 -0
  394. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_stack_tools.py +0 -0
  395. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_stack_tools_gui.py +0 -0
  396. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_stack_with_image.py +0 -0
  397. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_staplot_editor_20261120.py +0 -0
  398. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_stress_findings.py +0 -0
  399. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_stress_findings_20261028.py +0 -0
  400. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_stress_findings_20261029.py +0 -0
  401. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_stroke_defaults_20261113.py +0 -0
  402. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_style_audit_calbar.py +0 -0
  403. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_svg_clipping_and_pdf_pages.py +0 -0
  404. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_svg_empty_glyph.py +0 -0
  405. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_tex_install.py +0 -0
  406. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_text_consistency_20261112.py +0 -0
  407. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_tiny_roi_audit_20261116.py +0 -0
  408. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_turned_plot_qc_20261120.py +0 -0
  409. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_tutorial_controller.py +0 -0
  410. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_tutorials.py +0 -0
  411. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_undo_guard_20261112.py +0 -0
  412. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_uneven_rows_20261105.py +0 -0
  413. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_user_chat_findings_20261104.py +0 -0
  414. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_user_findings_20261022.py +0 -0
  415. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_user_gui_findings_20261021.py +0 -0
  416. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_user_guide_menus.py +0 -0
  417. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_video_support.py +0 -0
  418. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_web_chat_20261109.py +0 -0
  419. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_web_chat_real_page.py +0 -0
  420. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_zarr_stress_findings.py +0 -0
  421. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_zoom_bar_20261116.py +0 -0
  422. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_zoom_callout_gui.py +0 -0
  423. {pyfigures-0.2.22 → pyfigures-0.2.23}/tests/test_zoom_callout_lut.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyfigures
3
- Version: 0.2.22
3
+ Version: 0.2.23
4
4
  Summary: PyFigures will assist you assemble publication ready scientific figures in no time.
5
5
  Home-page: https://github.com/baigouy/PyFigures
6
6
  Author: Benoit Aigouy
@@ -35,8 +35,8 @@ Requires-Dist: pyperclip
35
35
  Requires-Dist: QtPy>=2.1.0
36
36
  Requires-Dist: Deprecated
37
37
  Requires-Dist: Requests
38
- Requires-Dist: batoolset>=0.2.6
39
- Requires-Dist: batoolset-gui>=0.2.10
38
+ Requires-Dist: batoolset>=0.2.7
39
+ Requires-Dist: batoolset-gui>=0.2.11
40
40
  Requires-Dist: staplot>=0.1.3
41
41
  Requires-Dist: seaborn>=0.13
42
42
  Requires-Dist: openpyxl
@@ -49,7 +49,7 @@ Requires-Dist: latex2mathml
49
49
  Requires-Dist: mathml2omml
50
50
  Requires-Dist: pylatexenc
51
51
  Requires-Dist: pypdfium2
52
- Requires-Dist: qtpy-ai-sidecar>=0.1.17
52
+ Requires-Dist: qtpy-ai-sidecar>=0.1.18
53
53
  Requires-Dist: mcp<2,>=1.12
54
54
  Provides-Extra: ai
55
55
  Requires-Dist: mcp<2,>=1.12; extra == "ai"
@@ -66,10 +66,10 @@ Provides-Extra: omero
66
66
  Requires-Dist: omero-py; extra == "omero"
67
67
  Provides-Extra: chat
68
68
  Requires-Dist: mcp<2,>=1.12; extra == "chat"
69
- Requires-Dist: qtpy-ai-sidecar>=0.1.17; extra == "chat"
69
+ Requires-Dist: qtpy-ai-sidecar>=0.1.18; extra == "chat"
70
70
  Provides-Extra: all
71
71
  Requires-Dist: mcp<2,>=1.12; extra == "all"
72
- Requires-Dist: qtpy-ai-sidecar>=0.1.17; extra == "all"
72
+ Requires-Dist: qtpy-ai-sidecar>=0.1.18; extra == "all"
73
73
  Requires-Dist: av; extra == "all"
74
74
  Requires-Dist: opencv-python-headless<5.1; extra == "all"
75
75
  Requires-Dist: pyimagej; extra == "all"
@@ -119,7 +119,7 @@ TOPIC_RULES = (
119
119
  'Repeating a reference is not evidence of duplicate letters (use duplicate_letter_references from the state). '
120
120
  'Never delete / recreate letters to swap or relabel.'),
121
121
  ({'letter', 'letters', 'lettering', 'label', 'labels', 'abc', 'font', 'fonts', 'consistent', 'same'},
122
- 'LETTERS: edit_panel_letters once at the intended scope (placement, family, size, bold / italic / underline, '
122
+ 'LETTERS: a letter hard to read gets a contrasting box and letter colour, never bold, italic, another font or size unless asked (style_request quotes it). edit_panel_letters once at the intended scope (placement, family, size, bold / italic / underline, '
123
123
  'colour, background), never per-image loops. Letters stay alike: a style asked for one letter ("I can\'t see '
124
124
  'the letter b") goes to every letter; only when the user explicitly wants some different ("only b bold") use '
125
125
  'scope=panels with panel_ids and only_these_letters_request quoting them. Removal only on an explicit request '
@@ -157,7 +157,9 @@ TOPIC_RULES = (
157
157
  'invert', 'heading', 'headers', 'header', 'layout'},
158
158
  'ROWS: rearranging EXISTING images into rows / columns: arrange_live_images once (columns, or row_counts '
159
159
  'when equal rows are impossible: ask which split, e.g. 9 images in 4 rows = [3, 2, 2, 2]); order and letters '
160
- 'kept; never per-image move loops. NEW rows: add_group, then use its returned path; requested row numbers are '
160
+ 'kept; never per-image move loops. Panels (e.g. a channel split) onto their own row: the same call, row_counts '
161
+ 'ending the row before them; a missing merge then: add_channel_merge(group_path=that row, '
162
+ 'stack_path=the source stack) appends it last. NEW rows: add_group, then use its returned path; requested row numbers are '
161
163
  'not group paths; on a missing-container error inspect / create it, never fall back into another row. '
162
164
  'Reverse the selected row: reverse_selected_row (missing or several rows selected: ask). Delete the last N '
163
165
  'rows: delete_last_rows once (more than exist = all, report the actual number). Ungroup all / every image '
@@ -167,7 +169,9 @@ TOPIC_RULES = (
167
169
  ({'scale', 'scalebar', 'scalebars', 'bar', 'bars'},
168
170
  'SCALE BARS: all of them = set_scale_bar_all / remove_scale_bar_all once ("add scale bars to all" with no '
169
171
  'length = no bar_width_in_units: each image gets a round one). Single-panel tools only for named panels; a '
170
- 'named panel, even mistyped, never authorizes the _all tools: resolve it or ask.'),
172
+ 'named panel, even mistyped, never authorizes the _all tools: resolve it or ask. "Does not read well" with '
173
+ 'no colour named: choose it yourself, never ask (the opposite of its colour: black <-> white; preview_panel '
174
+ 'checks it); several colours given for several panels: the one reading best on each.'),
171
175
  ({'channel', 'channels', 'colour', 'colours', 'color', 'colors', 'lut', 'luts', 'magenta', 'green', 'red',
172
176
  'blue', 'cyan', 'yellow', 'unnatural', 'weird', 'original', 'normal', 'default'},
173
177
  'COLOURS: channels cannot be reordered, but each channel colour can be set (set_lut; null keeps a channel): '
@@ -150,6 +150,17 @@ def _names_letters(request):
150
150
  return bool(re.search(r'\b(letters?|lettering|labels?|lettre\w*)\b', str(request or '').lower()))
151
151
 
152
152
 
153
+ def _asks_for_type_style(request, font_family=None):
154
+ """The user's own words ask for bold / italic / underline, another font or another size."""
155
+ import re
156
+ words = str(request or '').lower()
157
+ if font_family and str(font_family).lower() in words:
158
+ return True
159
+ return bool(re.search(r'\b(bold\w*|gras|italic\w*|italique\w*|underlin\w*|soulign\w*|fonts?|police|typeface|'
160
+ r'sizes?|taille|bigger|larger|smaller|tiny|huge|plus\s+(?:grand|petit)\w*|\d+\s*pt|'
161
+ r'points?|serif|sans|helvetica|arial|times|calibri|verdana)\b', words))
162
+
163
+
153
164
  @mcp.tool()
154
165
  def edit_panel_letters(action: Literal['style','remove','restore','renumber'] = 'style', scope: Literal['auto','all','group','panels','selection'] = 'auto', group_path: list[int] | None = None,
155
166
  panel_ids: list[str] | None = None, placement: str | None = None,
@@ -159,8 +170,8 @@ def edit_panel_letters(action: Literal['style','remove','restore','renumber'] =
159
170
  removal_request: str | None = None, background_request: str | None = None,
160
171
  color_request: str | None = None, text: str | list[str] | None = None,
161
172
  bold: bool | None = None, italic: bool | None = None, underline: bool | None = None,
162
- only_these_letters_request: str | None = None) -> dict:
163
- """text gives panels their own letter ("rename g to G'": action=style, scope=panels, panel_ids=[that panel], text="G'"; several in ONE call: panel_ids=["0/0","0/1"], text=["1","2"]); automatic sequences are alphabetic only, so "numbers instead of letters" or roman numerals = one call with every panel's text. Letters OUTSIDE each image are not available: placement is a corner or the centre INSIDE the panel; the only outside lettering is one letter per ROW (set_panel_letter_layout letter_layout="row"): say so and offer it, do not search. A colour for the letter of named panels (panel_ids) needs color_request quoting the user's words, and those must name the letter/label: "change the colour of a to red" may be the letter, a channel or a border of panel a, so ask. A coloured background needs background_request quoting the user's words, and those must name the letter/label: "black background for g" or "add a black bg to g" means the PANEL g (the area behind the image, seen once it is rotated or transparent: set_image_property fill_color), not its letter; when the words do not say which, ask. Scope rules: use scope=all for all panel letters and omit panel_ids/group_path. scope=panels requires a nonempty panel_ids list; scope=selection uses the current selection. Pass ONLY changed fields, never the full letter_styles readback: opacity is not accepted. Letters stay CONSISTENT in a figure: a style (placement, font, size, bold, italic, underline, background box) given for some panels is applied to EVERY letter ("I can't see the letter b" = make all letters more readable, never b alone); only the letter text and colour stay per panel. Only when the user explicitly asks for some letters to differ ("only b bold", "bold letters on the rotated panels only") pass scope=panels, panel_ids=[those panels] and only_these_letters_request quoting those words. Preferred ONE-CALL bulk operation for panel-letter placement, font family/size, bold/italic/underline, color/background, removal and restoration. placement accepts center/centre/middle or a corner (inside the panel); letters OUTSIDE the panels = set_panel_letter_layout(letter_layout="row"). action=style preserves existing text; renumber scope=all creates a complete unique sequence for a newly constructed figure when asked to letter the panels; partial restore preserves existing IDs and is not a whole-figure renumber; remove requires removal_request quoting an explicit user request to remove/hide letters (never a swap), and hides panel letters persistently without deleting captions/scale bars; restore without start_letter preserves an existing or hidden panel text and otherwise uses its automatic position; explicit start_letter sets a new sequence; renumber changes sequence. scope=auto infers panels from panel_ids, group from group_path, otherwise all; explicit panels/group/selection/all are supported. Supplying panel_ids can never broaden to all panels. For WHITE Arial 12 with NO background use color="white", font_family="Arial", font_size=12, background="none". Black is a color, NOT transparent. Unspecified appearance is preserved. Per-panel overrides survive whole-figure style changes unless replace_overrides=true. One undo step. Returns actual styles, changed/skipped counts, and recovery status. Do not loop over individual annotations for figure/group requests. With one letter per row (letter_layout row) the row letters share the figure letter style: action=style scope=all restyles them (font, size, color, background; row_letters_restyled lists them, outcome VERIFIED_CHANGE)."""
173
+ only_these_letters_request: str | None = None, style_request: str | None = None) -> dict:
174
+ """text gives panels their own letter ("rename g to G'": action=style, scope=panels, panel_ids=[that panel], text="G'"; several in ONE call: panel_ids=["0/0","0/1"], text=["1","2"]); automatic sequences are alphabetic only, so "numbers instead of letters" or roman numerals = one call with every panel's text. Letters OUTSIDE each image are not available: placement is a corner or the centre INSIDE the panel; the only outside lettering is one letter per ROW (set_panel_letter_layout letter_layout="row"): say so and offer it, do not search. A colour for the letter of named panels (panel_ids) needs color_request quoting the user's words, and those must name the letter/label: "change the colour of a to red" may be the letter, a channel or a border of panel a, so ask. A coloured background needs background_request quoting the user's words, and those must name the letter/label: "black background for g" or "add a black bg to g" means the PANEL g (the area behind the image, seen once it is rotated or transparent: set_image_property fill_color), not its letter; when the words do not say which, ask. Scope rules: use scope=all for all panel letters and omit panel_ids/group_path. scope=panels requires a nonempty panel_ids list; scope=selection uses the current selection. Pass ONLY changed fields, never the full letter_styles readback: opacity is not accepted. Letters stay CONSISTENT in a figure: a style (placement, font, size, bold, italic, underline, background box) given for some panels is applied to EVERY letter ("I can't see the letter b" = make all letters more readable, never b alone); only the letter text and colour stay per panel. Only when the user explicitly asks for some letters to differ ("only b bold", "bold letters on the rotated panels only") pass scope=panels, panel_ids=[those panels] and only_these_letters_request quoting those words. Preferred ONE-CALL bulk operation for panel-letter placement, font family/size, bold/italic/underline, color/background, removal and restoration. placement accepts center/centre/middle or a corner (inside the panel); letters OUTSIDE the panels = set_panel_letter_layout(letter_layout="row"). action=style preserves existing text; renumber scope=all creates a complete unique sequence for a newly constructed figure when asked to letter the panels; partial restore preserves existing IDs and is not a whole-figure renumber; remove requires removal_request quoting an explicit user request to remove/hide letters (never a swap), and hides panel letters persistently without deleting captions/scale bars; restore without start_letter preserves an existing or hidden panel text and otherwise uses its automatic position; explicit start_letter sets a new sequence; renumber changes sequence. scope=auto infers panels from panel_ids, group from group_path, otherwise all; explicit panels/group/selection/all are supported. Supplying panel_ids can never broaden to all panels. A letter hard to read: a contrasting background box and letter colour, never bold, italic, another font or size unless the user asks (style_request quotes them). For WHITE Arial 12 with NO background use color="white", font_family="Arial", font_size=12, background="none". Black is a color, NOT transparent. Unspecified appearance is preserved. Per-panel overrides survive whole-figure style changes unless replace_overrides=true. One undo step. Returns actual styles, changed/skipped counts, and recovery status. Do not loop over individual annotations for figure/group requests. With one letter per row (letter_layout row) the row letters share the figure letter style: action=style scope=all restyles them (font, size, color, background; row_letters_restyled lists them, outcome VERIFIED_CHANGE)."""
164
175
  if scope == 'panels' and not panel_ids:
165
176
  raise ValueError('scope=panels requires a nonempty panel_ids list. For an explicit all-panel lettering request use scope=all and omit panel_ids; otherwise inspect and provide the intended panel IDs. No edit was submitted.')
166
177
  if _is_colour(background) and not _names_letters(background_request):
@@ -189,6 +200,18 @@ def edit_panel_letters(action: Literal['style','remove','restore','renumber'] =
189
200
  '("only b bold", "bold letters on the rotated panels"). Otherwise the style goes to every '
190
201
  'letter: call again without only_these_letters_request. No edit performed.')
191
202
  only_these = True
203
+ restyle = [k for k, v in (('bold', bold), ('italic', italic), ('underline', underline)) if v] \
204
+ + (['font_family'] if font_family else []) + (['font_size'] if font_size is not None else [])
205
+ if action == 'style' and restyle and not (_asks_for_type_style(style_request, font_family)
206
+ or _asks_for_type_style(only_these_letters_request, font_family)):
207
+ # "l is not well visible, fix it": the chat made every letter bold and recoloured them
208
+ # (user, 2026-11-23: "it should just have changed the bg first and make sure the font colour
209
+ # contrasts well on the bg rather than changing font or making text bold")
210
+ raise ValueError('STYLE_NOT_ASKED: ' + ', '.join(restyle) + ' change the letters\' type, which the user did '
211
+ 'not ask for. A letter hard to read is fixed with a box behind it (background, '
212
+ 'background_request quoting the user) and a letter colour that contrasts with that box '
213
+ '(color, color_request), keeping the font, size and weight. If the user did ask for it, '
214
+ 'quote their words in style_request. No edit performed.')
192
215
  if panel_ids and scope in ('auto', 'all'):
193
216
  scope = 'panels'
194
217
  elif group_path is not None and scope == 'auto':
@@ -15,7 +15,6 @@ Anything that cannot be told leaves the entry without a sketch.
15
15
  """
16
16
  from __future__ import annotations
17
17
 
18
- import math
19
18
  import os
20
19
  import traceback
21
20
 
@@ -134,10 +133,11 @@ def _canvas_result(canvas, op, files, target, montage):
134
133
  box._add_as_new_group([tc] + new, orientation="X" if op == "with_row" else "Y",
135
134
  remove_from_parents=True)
136
135
  elif op == "panel":
137
- # the panel dialog opens on 2 rows, left to right, empty panels added
138
- rows = min(2, len(new))
136
+ # the shape the panel dialog opens on (3-5 a row), left to right, empty panels added
137
+ from pyfigures.gui.panelcreationwidget import default_grid_shape
138
+ _rows, cols = default_grid_shape(len(new))
139
139
  size = (new[0].width(), new[0].height())
140
- grp = _grid(new, math.ceil(len(new) / rows), size)
140
+ grp = _grid(new, cols, size)
141
141
  box.shapes_to_draw.append(grp)
142
142
  box.force_update_size_of_parent.emit(grp)
143
143
  else: # single images / max projections
@@ -2182,6 +2182,58 @@ class MyWidget(QWidget):
2182
2182
  self.set_current_selection(new_grp)
2183
2183
  self.undo_redo_save_required.emit()
2184
2184
 
2185
+ def _multi_drop_menu(self, event, point):
2186
+ """Several panels (Ctrl+click) dragged onto empty space: offer a new row of them
2187
+ (user 2026-11-23: dropping three selected images on empty space did nothing;
2188
+ only single panels could be dragged). Dropped on a panel: nothing, as before."""
2189
+ items = [s for s in self.selected_shape if self.is_image_type(s)]
2190
+ self.reset_position() # back where they were, then look below the drop
2191
+ if len(items) < 2 or self.get_all_shapes_below_point(point):
2192
+ return None
2193
+ self.contextMenu = QMenu(self)
2194
+ act = self.contextMenu.addAction(f"New row of the {len(items)} selected panels")
2195
+ act.setToolTip("They leave their rows and form a row of their own, below the figure, "
2196
+ "in the order they were selected.")
2197
+ act.triggered.connect(partial(self.row_from_panels, items))
2198
+ self.contextMenu.addSeparator()
2199
+ self.contextMenu.addAction("Ignore")
2200
+ return self._run_context_menu_at_click(event)
2201
+
2202
+ def row_from_panels(self, items):
2203
+ """A new top-level row of *items* (panels from anywhere in the figure), appended
2204
+ below the figure; each leaves the group that held it (an emptied group goes too)."""
2205
+ items = [s for i, s in enumerate(items) if not any(s is o for o in items[:i])]
2206
+ if len(items) < 2:
2207
+ return None
2208
+ sources = [self.get_top_parent_of_shape(it) for it in items]
2209
+ self.set_current_selection(None)
2210
+ self.initial_position = None # the drag is over: nothing to put back
2211
+ holders = [self._group_of(it) for it in items]
2212
+ outers = [self._container_of(h) if h is not None else None for h in holders]
2213
+ self.shapes_to_draw[:] = [s for s in self.shapes_to_draw if not any(s is it for it in items)]
2214
+ for it, holder, outer in zip(items, holders, outers):
2215
+ if holder is None:
2216
+ continue
2217
+ holder.content[:] = [s for s in holder.content if s is not it]
2218
+ if not holder.content:
2219
+ if outer is not None:
2220
+ outer[:] = [s for s in outer if s is not holder]
2221
+ else:
2222
+ holder.update()
2223
+ new_grp = Group(*items, orientation='X')
2224
+ self.shapes_to_draw.append(new_grp)
2225
+ self.update()
2226
+ self.update_size()
2227
+ self.force_update_size_of_parent.emit(new_grp)
2228
+ for source_top, moved in zip(sources, items):
2229
+ self._refit_row_left(source_top, moved, new_grp)
2230
+ self.update_letters_required.emit()
2231
+ self.set_current_selection(new_grp)
2232
+ self.focus_required.emit()
2233
+ self.undo_redo_save_required.emit()
2234
+ self.update_text_rows.emit()
2235
+ return new_grp
2236
+
2185
2237
  def _drag_entry(self, kind, method, *args, moved=None, target=None):
2186
2238
  """A drag-and-drop menu entry: its label and tooltip say what it does
2187
2239
  with which panels; drag_sketch later drops the entries giving the same
@@ -6278,6 +6330,8 @@ class MyWidget(QWidget):
6278
6330
  if self.dragging and not isinstance(self.selected_shape, list) and dist>20:
6279
6331
  # print('neo stuff 5 bis')
6280
6332
  self.update_context_menu_according_to_selection(event,point)
6333
+ elif self.dragging and isinstance(self.selected_shape, list) and dist > 20:
6334
+ self._multi_drop_menu(event, point)
6281
6335
  else:
6282
6336
 
6283
6337
 
@@ -4,6 +4,30 @@ import sys
4
4
  from qtpy.QtWidgets import QApplication, QWidget, QGridLayout, QRadioButton, QSpinBox, QVBoxLayout, QPushButton, QLabel,QCheckBox,QButtonGroup
5
5
  from qtpy.QtCore import Qt
6
6
 
7
+
8
+ def default_grid_shape(n):
9
+ """(rows, columns) offered first for *n* images: 3-5 images a row, few empty slots, and
10
+ never a last row holding one image among empty slots (it always offered 2 rows: 13 images
11
+ were 2 rows of 7, user 2026-11-23). Up to 5 images: one row. The user can change it."""
12
+ n = max(int(n or 0), 1)
13
+ if n <= 5:
14
+ return 1, n
15
+ best = None
16
+ for cols in (3, 4, 5, 6): # 3-5 a row (user, 2026-11-23); 6 if no other fits
17
+ rows = -(-n // cols)
18
+ empty = rows * cols - n
19
+ last = n - (rows - 1) * cols
20
+ # the empty slots are all in the last row: more than one there does not look good
21
+ # (user, 2026-11-23); only when no width avoids it (13 images: 3 x 5, two empty)
22
+ cost = (0.5 * empty + 5 * max(0, empty - 1) + (10 if rows > 1 and last == 1 else 0)
23
+ + (1 if cols == 6 else 0))
24
+ key = (cost, -cols) # a tie: fewer rows
25
+ if best is None or key < best[0]:
26
+ best = (key, rows)
27
+ rows = best[1]
28
+ return rows, -(-n // rows)
29
+
30
+
7
31
  class PanelCreator(QWidget):
8
32
  def __init__(self, parent, num_widgets):
9
33
  super().__init__(parent)
@@ -31,7 +55,7 @@ class PanelCreator(QWidget):
31
55
 
32
56
  self.num_rows = QSpinBox(self)
33
57
  self.num_rows.setRange(1, 1000) # this is probably crazy oto have so many but...
34
- self.num_rows.setValue(2)
58
+ self.num_rows.setValue(default_grid_shape(self.num_widgets)[0])
35
59
  self.num_rows.valueChanged.connect(self.update_other_value)
36
60
 
37
61
  self.num_cols = QSpinBox(self)
@@ -294,6 +294,28 @@ def _folder_drop_items(folder):
294
294
  return items, left_out
295
295
 
296
296
 
297
+ import weakref as _weakref
298
+ _OPEN_WINDOWS = _weakref.WeakSet()
299
+
300
+
301
+ def _repack_after_plot_reshaped(panel):
302
+ """A plot fitted to its text sizes on the page (on its first paint) changed size after
303
+ its row was packed: the row's gaps were wrong until the user clicked it (images and
304
+ tables dropped "To row", user 2026-11-23). Each window repacks its rows once, after
305
+ the paint (repacking is a no-op for rows whose panels did not change)."""
306
+ for win in list(_OPEN_WINDOWS):
307
+ if not _qt_alive(win) or getattr(win, '_plot_repack_pending', False):
308
+ continue
309
+ win._plot_repack_pending = True
310
+
311
+ def repack(w=win):
312
+ w._plot_repack_pending = False
313
+ if _qt_alive(w):
314
+ w._lazy_size_drift = True
315
+ w._reflow_after_lazy_load()
316
+ QTimer.singleShot(0, repack)
317
+
318
+
297
319
  def _qt_alive(obj):
298
320
  """False once the C++ side of a Qt wrapper has been destroyed — a queued
299
321
  loader callback arriving after its window was deleted must not touch it
@@ -817,6 +839,8 @@ class EZFIG_GUI(QMainWindow):
817
839
  self._reload_toolbar_icons(load_saved_theme())
818
840
  self._active_img_loaders = []
819
841
  QApplication.instance().aboutToQuit.connect(self._stop_all_img_loaders)
842
+ _OPEN_WINDOWS.add(self)
843
+ Image2D.page_size_changed = _repack_after_plot_reshaped
820
844
  self.color_assistant = None # Add this line
821
845
 
822
846
  self.activate_or_reset_undo_redo()
@@ -5612,7 +5636,7 @@ class EZFIG_GUI(QMainWindow):
5612
5636
  frame = QFrame(self)
5613
5637
  grid = QGridLayout(frame)
5614
5638
  shape = QComboBox(frame)
5615
- shape.addItems(['rectangles', 'ellipses'])
5639
+ shape.addItems(['outlines (polygons)', 'rectangles', 'ellipses']) # outlines first (2026-11-23)
5616
5640
  polarity = QComboBox(frame)
5617
5641
  polarity.addItems(['automatic', 'dark objects on a light background', 'bright objects on a dark background'])
5618
5642
  min_area = QSpinBox(frame)
@@ -5654,7 +5678,7 @@ class EZFIG_GUI(QMainWindow):
5654
5678
  main_widget=frame, options=['Ok', 'Cancel'], parent=self, auto_adjust=True)
5655
5679
  if cd.exec_() != QDialog.Accepted:
5656
5680
  return
5657
- values = dict(shape=('rect', 'ellipse')[shape.currentIndex()],
5681
+ values = dict(shape=('polygon', 'rect', 'ellipse')[shape.currentIndex()],
5658
5682
  polarity=('auto', 'dark', 'bright')[polarity.currentIndex()],
5659
5683
  min_area=min_area.value() or None, split_touching=split.isChecked(),
5660
5684
  channel=channel.currentData(),
@@ -17,7 +17,7 @@ import os
17
17
  import time
18
18
  import uuid
19
19
 
20
- from qtpy.QtCore import QObject, Qt, QTimer
20
+ from qtpy.QtCore import QEvent, QObject, Qt, QTimer
21
21
  from qtpy.QtWidgets import QApplication, QFrame
22
22
 
23
23
  from pyfigures import guides as _guides
@@ -87,6 +87,23 @@ def _modal_open():
87
87
  return QApplication.activeModalWidget() is not None
88
88
 
89
89
 
90
+ class _ModalWatch(QObject):
91
+ """App event filter: reports every modal window as it is shown."""
92
+
93
+ def __init__(self, on_shown):
94
+ super().__init__()
95
+ self._on_shown = on_shown
96
+
97
+ def eventFilter(self, obj, event):
98
+ try:
99
+ if event.type() == QEvent.Show and obj.isWidgetType() and obj.isWindow() \
100
+ and obj.windowModality() != Qt.NonModal:
101
+ self._on_shown(obj)
102
+ except Exception: # a filter must never raise into Qt (PyQt6 aborts)
103
+ pass
104
+ return False
105
+
106
+
90
107
  class GuideRunner:
91
108
  """Runs one guide at a time on the window's TutorialController."""
92
109
 
@@ -102,6 +119,9 @@ class GuideRunner:
102
119
  self._baseline = None
103
120
  self._saw_dialog = False
104
121
  self._image_state0 = None
122
+ self._used_modal = None
123
+ self._shown_modals = []
124
+ self._modal_watch = None
105
125
 
106
126
  # ---- results the guides watch for -----------------------------------
107
127
  def _snapshot(self):
@@ -189,10 +209,35 @@ class GuideRunner:
189
209
  ScaleBar inside it — were both ticked off by the editor alone)."""
190
210
  modal = QApplication.activeModalWidget()
191
211
  if modal is None or modal is self._used_modal:
212
+ modal = self._take_shown_modal()
213
+ if modal is None:
214
+ return False
215
+ self._used_modal = modal
216
+ return True
217
+
218
+ def _take_shown_modal(self):
219
+ """A dialog the filter saw open since the last step, even if it is already closed:
220
+ the 400 ms poll alone missed a dialog answered quickly (a busy CI runner, a fast
221
+ user), and the guide waited for ever (CI 2026-11-21)."""
222
+ while self._shown_modals:
223
+ modal = self._shown_modals.pop(0)
224
+ if modal is not self._used_modal:
225
+ return modal
226
+ return None
227
+
228
+ def _shown_since_used(self):
229
+ """The menu entry opened its dialog, seen by the filter though it may be closed already."""
230
+ modal = QApplication.activeModalWidget() or self._take_shown_modal()
231
+ if modal is None:
192
232
  return False
193
233
  self._used_modal = modal
234
+ self._shown_modals = [m for m in self._shown_modals if m is not modal]
194
235
  return True
195
236
 
237
+ def _on_modal_shown(self, modal):
238
+ self._saw_dialog = True
239
+ self._shown_modals.append(modal)
240
+
196
241
  def _current_version(self, img):
197
242
  """The panel now standing for *img*: the image editor (Ok) replaces
198
243
  the edited panel by its edited clone, so the guide watching the
@@ -256,6 +301,9 @@ class GuideRunner:
256
301
  self.cancelled = False
257
302
  self._saw_dialog = False
258
303
  self._used_modal = None
304
+ self._shown_modals = []
305
+ self._modal_watch = _ModalWatch(self._on_modal_shown)
306
+ QApplication.instance().installEventFilter(self._modal_watch)
259
307
  self._target_image = None
260
308
  self._image_state0 = None
261
309
  self._baseline = self._snapshot()
@@ -289,7 +337,7 @@ class GuideRunner:
289
337
  completion_check=select_check, auto_advance=True))
290
338
  elif "menu" in spec:
291
339
  steps.extend(self._menu_steps(
292
- spec["menu"], lambda w: _modal_open() or done_check(w)))
340
+ spec["menu"], lambda w: self._shown_since_used() or done_check(w)))
293
341
  elif "context" in spec:
294
342
  steps.append(TutorialStep("Open it from the image", spec["context"],
295
343
  get_target=canvas,
@@ -340,6 +388,12 @@ class GuideRunner:
340
388
  self._cleanup()
341
389
 
342
390
  def _cleanup(self):
391
+ if self._modal_watch is not None:
392
+ app = QApplication.instance()
393
+ if app is not None:
394
+ app.removeEventFilter(self._modal_watch)
395
+ self._modal_watch = None
396
+ self._shown_modals = []
343
397
  for a in self._anchors:
344
398
  a.hide()
345
399
  a.deleteLater()
@@ -314,8 +314,12 @@ class ClickGuide(QObject):
314
314
  self._frame(bar, bar.tabRect(i), key=("tab", i))
315
315
  wanted = {clean(c) for c in self.controls}
316
316
  for button in window.findChildren(QAbstractButton):
317
- if clean(action_title(button.text())) in wanted:
318
- self._frame(button.parentWidget(), button.geometry(), key=("button", button.text()))
317
+ # the editor's drawing tools are icon buttons named only by their tooltip ("Polygon"):
318
+ # matched by text alone, the Polygon tool was never outlined (user, 2026-11-23)
319
+ names = (button.text(), button.toolTip())
320
+ if any(n and clean(action_title(n)) in wanted for n in names):
321
+ self._frame(button.parentWidget(), button.geometry(),
322
+ key=("button", button.text() or button.toolTip()))
319
323
 
320
324
  def _default_note(self):
321
325
  if self.where == "context":
@@ -191,15 +191,23 @@ def main(argv=None):
191
191
  ap.add_argument("--transport", choices=["stdio", "http", "sse"], default="stdio")
192
192
  ap.add_argument("--host", default="127.0.0.1")
193
193
  ap.add_argument("--port", type=int, default=8765)
194
+ ap.add_argument("--tools", choices=["all", "categories"],
195
+ default=os.environ.get("PYFIGURES_MCP_TOOLS", "all"),
196
+ help="all: every tool listed (~85k tokens of descriptions); categories: three "
197
+ "tools (categories, search, run) that reach them all, details on request")
194
198
  a = ap.parse_args(argv)
195
199
  global _JOB
196
200
  _JOB = _children_die_with_me()
201
+ server = mcp
202
+ if a.tools == "categories":
203
+ from .mcp_tools.category_surface import build
204
+ server = build(mcp)
197
205
  if a.transport == "stdio":
198
- run_stdio()
206
+ run_stdio(server)
199
207
  return
200
- mcp.settings.host = a.host
201
- mcp.settings.port = a.port
202
- mcp.run(transport="streamable-http" if a.transport == "http" else "sse")
208
+ server.settings.host = a.host
209
+ server.settings.port = a.port
210
+ server.run(transport="streamable-http" if a.transport == "http" else "sse")
203
211
 
204
212
 
205
213
  _JOB = None
@@ -23,6 +23,8 @@ from .app import (
23
23
  _warn,
24
24
  )
25
25
  from .core import (
26
+ _figure_size_mm,
27
+ _stored_target,
26
28
  _warn_missing_font,
27
29
  _restyle_html_batch,
28
30
  _roi_outside_error,
@@ -713,13 +715,13 @@ def detect_objects(
713
715
  pyf_path: str,
714
716
  group_path: list[int],
715
717
  image_index: int,
716
- shape: str = "rect",
718
+ shape: str = "polygon",
717
719
  polarity: str = "auto",
718
720
  min_area: int | None = None,
719
721
  max_area: int | None = None,
720
722
  split_touching: bool = True,
721
723
  channel: str | int = "all",
722
- padding: int = 3,
724
+ padding: int | None = None,
723
725
  color: str | int = "yellow",
724
726
  stroke: float = 0.65,
725
727
  dry_run: bool = False,
@@ -738,7 +740,8 @@ def detect_objects(
738
740
  preview_panel), which draws the ROIs, then remove or fix the odd ones.
739
741
  Only the visible (cropped) part of the image is searched.
740
742
 
741
- *shape*: "rect" or "ellipse".
743
+ *shape*: "polygon" (default: follows each object's outline), "rect" or "ellipse"
744
+ (a box / an ellipse around each object, only when asked).
742
745
  *polarity*: "auto" (the minority class), "dark" (objects darker than the
743
746
  background: brightfield) or "bright" (fluorescence).
744
747
  *min_area* / *max_area*: object size limits in pixels (default 0.02 % / 25 %
@@ -750,7 +753,7 @@ def detect_objects(
750
753
  on an RGB picture, its blue). Nuclei shown blue inside green / red cells need
751
754
  the nuclei channel (all colours together outline the whole cells). The
752
755
  channel is taken as displayed: same z, time point, projection and range.
753
- *padding*: pixels added around each object.
756
+ *padding*: pixels added around each object (default 1 for polygons, 3 for boxes).
754
757
  *color* / *stroke*: the ROIs' colour and line width in points on the page
755
758
  (default 0.65 pt, the usual paper line).
756
759
  *dry_run*: true only reports what was found (count, boxes); nothing is added.
@@ -767,8 +770,13 @@ def detect_objects(
767
770
  """
768
771
  from ..object_detection import detect, padded, visible_region
769
772
  from ..panel_source_preview import panel_rgb, panel_crop
770
- if shape not in ("rect", "ellipse"):
771
- return 'ERROR: shape is "rect" or "ellipse".'
773
+ shape = str(shape or "polygon").lower().strip()
774
+ shape = {"rectangle": "rect", "box": "rect", "circle": "ellipse", "oval": "ellipse",
775
+ "contour": "polygon", "outline": "polygon", "freehand": "polygon"}.get(shape, shape)
776
+ if shape not in ("polygon", "rect", "ellipse"):
777
+ return 'ERROR: shape is "polygon" (the outline, default), "rect" or "ellipse".'
778
+ if padding is None:
779
+ padding = 1 if shape == "polygon" else 3
772
780
  bad = _roi_style_error(color, None, stroke, 1.0)
773
781
  if bad:
774
782
  return f"ERROR: {bad}"
@@ -798,7 +806,8 @@ def detect_objects(
798
806
  search = (max(rx0, shown[0]), max(ry0, shown[1]), min(rx1, shown[2]), min(ry1, shown[3]))
799
807
  objects, info = detect(rgb if plane is None else plane, search,
800
808
  polarity=polarity, min_area=min_area, max_area=max_area,
801
- split_touching=split_touching, edge=shown)
809
+ split_touching=split_touching, edge=shown,
810
+ outline_grow=max(0, int(padding)))
802
811
  except ValueError as e:
803
812
  return f"ERROR: {e}"
804
813
  info["channel"] = what
@@ -816,8 +825,13 @@ def detect_objects(
816
825
  c = _color_to_int(color)
817
826
  make = _new_roi_rect if shape == "rect" else _new_roi_ellipse
818
827
  first = len(list(annots))
819
- for b in boxes:
820
- annots.append(make(b["x"], b["y"], b["width"], b["height"], c, None, stroke, 1.0))
828
+ for b, o in zip(boxes, objects):
829
+ if shape == "polygon" and len(o.get("outline") or []) >= 3:
830
+ flat = [v for pt in o["outline"] for v in pt]
831
+ annots.append(_new_roi_polygon(flat, "Polygon2D", c, None, stroke, 1.0))
832
+ else: # a polygon too small to trace: its box
833
+ annots.append((_new_roi_rect if shape == "polygon" else make)(
834
+ b["x"], b["y"], b["width"], b["height"], c, None, stroke, 1.0))
821
835
  _save(tree, pyf_path)
822
836
  result["added"] = len(boxes)
823
837
  result["annotation_indexes"] = [first, first + len(boxes) - 1]
@@ -1365,17 +1379,28 @@ def batch_fill_templates(
1365
1379
 
1366
1380
  @mcp.tool()
1367
1381
  def get_figure_properties(pyf_path: str) -> str:
1368
- """Return the figure-level settings: global font and default spacing.
1382
+ """How wide / tall the figure is (mm), plus its global font and default spacing.
1369
1383
 
1370
- These settings live in the ``<SerializableQFont>`` and
1384
+ ``size``: the laid-out figure's width and height in mm (and canvas pt, 1 pt =
1385
+ 1/72 in), and the target width the figure was resized to (resize_figure), if any.
1386
+ The font and spacing settings live in the ``<SerializableQFont>`` and
1371
1387
  ``<SerializableGUIparameters>`` elements at the root of the .pyf file.
1372
1388
  They control the default label font, background/foreground colours, and
1373
1389
  the default spacing between groups.
1374
1390
 
1375
- Use set_figure_properties() to change them.
1391
+ Use set_figure_properties() to change them; resize_figure to change the size.
1376
1392
  """
1377
1393
  _, root = _load(pyf_path)
1378
1394
  result = {}
1395
+ size = _figure_size_mm(pyf_path)
1396
+ if size is not None:
1397
+ result["size"] = {"width_mm": round(size[0], 1), "height_mm": round(size[1], 1),
1398
+ "width_pt": round(size[0] / 25.4 * 72, 1), "height_pt": round(size[1] / 25.4 * 72, 1)}
1399
+ target = _stored_target(pyf_path)
1400
+ if target:
1401
+ result["size"]["target_width_mm"] = target.get("width_mm")
1402
+ if target.get("journal"):
1403
+ result["size"]["target_journal"] = target["journal"]
1379
1404
 
1380
1405
  font_el = root.find("SerializableQFont")
1381
1406
  if font_el is not None: