pyfigures 0.2.20__tar.gz → 0.2.22__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 (410) hide show
  1. {pyfigures-0.2.20 → pyfigures-0.2.22}/PKG-INFO +7 -7
  2. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/assistant_actions.py +21 -131
  3. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/categorized_mcp.py +4 -3
  4. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/original_registry.py +7 -1
  5. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/partner_gui.py +12 -3
  6. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/plot_info.py +38 -4
  7. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/session.py +3 -3
  8. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/annotation_editor.py +59 -1
  9. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/ezfig.py +38 -5
  10. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/pfgui.py +37 -1
  11. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/qc_reports.py +22 -0
  12. pyfigures-0.2.22/pyfigures/gui/staplot_editor.py +140 -0
  13. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/mcp_tools/annotations.py +8 -2
  14. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/mcp_tools/content.py +482 -14
  15. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/mcp_tools/core.py +72 -1
  16. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/mcp_tools/export.py +42 -1
  17. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/mcp_tools/overlays.py +48 -5
  18. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/mcp_tools/qc.py +9 -0
  19. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/mcp_tools/structure.py +41 -1
  20. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/mcp_tools/upkeep.py +1 -1
  21. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/mcp_tools/workflow.py +41 -3
  22. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/recipe.py +4 -2
  23. pyfigures-0.2.22/pyfigures/script_panels.py +86 -0
  24. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/stats_legend.py +3 -1
  25. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/version.py +1 -1
  26. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures.egg-info/PKG-INFO +7 -7
  27. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures.egg-info/SOURCES.txt +16 -0
  28. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures.egg-info/requires.txt +6 -6
  29. {pyfigures-0.2.20 → pyfigures-0.2.22}/setup.py +6 -6
  30. pyfigures-0.2.22/tests/test_all_panels_hint_20261120.py +21 -0
  31. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_assistant_live.py +48 -2
  32. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_canvas_keyboard_and_clicks.py +17 -0
  33. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_draft_figure.py +16 -0
  34. pyfigures-0.2.22/tests/test_empty_canvas_chat_arrow_20261120.py +30 -0
  35. pyfigures-0.2.22/tests/test_facet_panels_20261120.py +138 -0
  36. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_human_requests_20261112.py +6 -2
  37. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_human_requests_20261118.py +8 -5
  38. pyfigures-0.2.22/tests/test_inset_box_move_20261120.py +36 -0
  39. pyfigures-0.2.22/tests/test_mcp_probe_fixes_20261121.py +143 -0
  40. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_panel_editor.py +21 -0
  41. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_plot_edit_keeps_spacing_20261119.py +2 -2
  42. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_plot_font_follows_labels_20261119.py +8 -6
  43. pyfigures-0.2.22/tests/test_plot_font_glyph_failure_20261120.py +49 -0
  44. pyfigures-0.2.22/tests/test_plot_kinds_more_20261120.py +97 -0
  45. pyfigures-0.2.22/tests/test_plot_layers_y2_20261120.py +83 -0
  46. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_plot_panel_background_20261119.py +2 -2
  47. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_plot_requests_more_20261118.py +2 -1
  48. pyfigures-0.2.22/tests/test_plot_subjects_20261120.py +41 -0
  49. pyfigures-0.2.22/tests/test_plot_text_parts_20261120.py +95 -0
  50. pyfigures-0.2.22/tests/test_scale_bar_text_mismatch_20261120.py +89 -0
  51. pyfigures-0.2.22/tests/test_script_panels_20261120.py +78 -0
  52. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_split_violins_20261118.py +3 -2
  53. pyfigures-0.2.22/tests/test_staplot_editor_20261120.py +87 -0
  54. pyfigures-0.2.22/tests/test_turned_plot_qc_20261120.py +56 -0
  55. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_web_chat_20261109.py +14 -1
  56. {pyfigures-0.2.20 → pyfigures-0.2.22}/LICENSE +0 -0
  57. {pyfigures-0.2.20 → pyfigures-0.2.22}/README.md +0 -0
  58. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/__init__.py +0 -0
  59. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/__main__.py +0 -0
  60. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/album/__init__.py +0 -0
  61. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/album/__main__.py +0 -0
  62. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/arrowheads.py +0 -0
  63. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/__init__.py +0 -0
  64. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/advanced_annotations.py +0 -0
  65. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/chat_replay.py +0 -0
  66. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/chat_video.py +0 -0
  67. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/existing_tools.py +0 -0
  68. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/figure_state.py +0 -0
  69. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/gui_selection.py +0 -0
  70. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/launch.py +0 -0
  71. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/letter_sequence.py +0 -0
  72. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/live_mcp.py +0 -0
  73. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/live_structure.py +0 -0
  74. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/manual_help.py +0 -0
  75. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/manual_help_verified.json +0 -0
  76. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/native_gui.py +0 -0
  77. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/plot_lifecycle.py +0 -0
  78. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/pointer_context.py +0 -0
  79. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/readability.py +0 -0
  80. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/recovery.py +0 -0
  81. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/result_evidence.py +0 -0
  82. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/submission_review.py +0 -0
  83. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/assistant/web_chat.py +0 -0
  84. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/atomic_io.py +0 -0
  85. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/burned_text.py +0 -0
  86. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/colorbar_script.py +0 -0
  87. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/connectors.py +0 -0
  88. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/constant_panels.py +0 -0
  89. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/cvd.py +0 -0
  90. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/equations.py +0 -0
  91. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/extras.py +0 -0
  92. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/flip.py +0 -0
  93. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/__init__.py +0 -0
  94. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/about_dialog_pzf.py +0 -0
  95. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/asingleoraspanel.py +0 -0
  96. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/autolettering_widget.py +0 -0
  97. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/bg_color_selection.py +0 -0
  98. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/bug_recorder.py +0 -0
  99. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/caption_dialog.py +0 -0
  100. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/chat_video_dialog.py +0 -0
  101. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/colorassistant.py +0 -0
  102. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/command_box.py +0 -0
  103. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/ctrl_key.py +0 -0
  104. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/deckcraft_blank.json +0 -0
  105. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/dimchooser.py +0 -0
  106. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/drag_sketch.py +0 -0
  107. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/drop_sketch.py +0 -0
  108. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/editable_export.py +0 -0
  109. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/editor_interaction.py +0 -0
  110. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/emptyimagedialog.py +0 -0
  111. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/equation_dialog.py +0 -0
  112. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/fonts/README.md +0 -0
  113. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/fontselectorgui.py +0 -0
  114. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/group_builder_GUI.py +0 -0
  115. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/headless_ops.py +0 -0
  116. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/integrity_ops.py +0 -0
  117. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/journal_style_editor.py +0 -0
  118. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/keep_tst_images_for_pzf.py +0 -0
  119. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/label_rows.py +0 -0
  120. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/latex_code_dialog.py +0 -0
  121. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/latex_support.py +0 -0
  122. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/lutmultiselector.py +0 -0
  123. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/mcp_server_dialog.py +0 -0
  124. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/page_fit.py +0 -0
  125. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/pagelimitswidget.py +0 -0
  126. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/panelcreationwidget.py +0 -0
  127. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/pdf_support.py +0 -0
  128. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/portable_fonts.py +0 -0
  129. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/region_picker.py +0 -0
  130. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/render_headless.py +0 -0
  131. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/replay_dialog.py +0 -0
  132. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/review/__init__.py +0 -0
  133. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/review/_template.py +0 -0
  134. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/review/dialog.py +0 -0
  135. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/review/html_export.py +0 -0
  136. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/review/send.py +0 -0
  137. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/row_letters.py +0 -0
  138. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/scalebareditor.py +0 -0
  139. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/scrollableEZFIG.py +0 -0
  140. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/selection_badges.py +0 -0
  141. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/selection_style.py +0 -0
  142. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/show_me_how.py +0 -0
  143. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/show_me_where.py +0 -0
  144. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/simple_text_editor.py +0 -0
  145. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/spaceselector.py +0 -0
  146. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/style_text_headless.py +0 -0
  147. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/svg_painter.py +0 -0
  148. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/textEditWatcher.py +0 -0
  149. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/theme.py +0 -0
  150. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/tipdialog.py +0 -0
  151. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/tutorial.py +0 -0
  152. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/user_extra_translation.py +0 -0
  153. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/user_prefs.py +0 -0
  154. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/video_support.py +0 -0
  155. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/web_chat_panel.py +0 -0
  156. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/widget_for_inset.py +0 -0
  157. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/zoom_bar.py +0 -0
  158. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/gui/zoom_links.py +0 -0
  159. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/guides.py +0 -0
  160. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/history.py +0 -0
  161. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/icons/__init__.py +0 -0
  162. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/icons/pyfigures.png +0 -0
  163. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/icons/pyfigures_album.png +0 -0
  164. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/icons/pyfigures_poster.png +0 -0
  165. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/image_search.py +0 -0
  166. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/journal_styles.py +0 -0
  167. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/latex_document.py +0 -0
  168. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/layout_formula.py +0 -0
  169. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/layout_picture.py +0 -0
  170. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/mcp_control.py +0 -0
  171. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/mcp_server.py +0 -0
  172. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/mcp_tools/__init__.py +0 -0
  173. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/mcp_tools/app.py +0 -0
  174. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/mcp_tools/guidance.py +0 -0
  175. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/mcp_tools/image_search.py +0 -0
  176. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/mcp_tools/journal.py +0 -0
  177. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/mcp_tools/poster.py +0 -0
  178. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/mcp_tools/stacks.py +0 -0
  179. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/object_detection.py +0 -0
  180. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/office_math.py +0 -0
  181. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/offscreen.py +0 -0
  182. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/panel_source_preview.py +0 -0
  183. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/path_resolution.py +0 -0
  184. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/plot_tables.py +0 -0
  185. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/poster/__init__.py +0 -0
  186. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/poster/__main__.py +0 -0
  187. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/poster/page_presets.py +0 -0
  188. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/poster/poster_align.py +0 -0
  189. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/poster/poster_canvas.py +0 -0
  190. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/poster/poster_headless.py +0 -0
  191. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/poster/poster_layout_dialog.py +0 -0
  192. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/poster/poster_layouts.py +0 -0
  193. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/poster/poster_recipe.py +0 -0
  194. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/poster/poster_shapes.py +0 -0
  195. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/poster/poster_source_data.py +0 -0
  196. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/poster/poster_templates.py +0 -0
  197. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/poster/poster_text_dialog.py +0 -0
  198. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/poster/poster_web_export.py +0 -0
  199. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/poster/poster_window.py +0 -0
  200. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/poster/serialization.py +0 -0
  201. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/qt_exit.py +0 -0
  202. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/script_helpers.py +0 -0
  203. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/script_safety.py +0 -0
  204. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/seaborn_plot.py +0 -0
  205. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/self_test.py +0 -0
  206. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/source_snapshot.py +0 -0
  207. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/stack_info.py +0 -0
  208. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/table_panel.py +0 -0
  209. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/text_fonts.py +0 -0
  210. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures/zoom_geometry.py +0 -0
  211. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures.egg-info/dependency_links.txt +0 -0
  212. {pyfigures-0.2.20 → pyfigures-0.2.22}/pyfigures.egg-info/top_level.txt +0 -0
  213. {pyfigures-0.2.20 → pyfigures-0.2.22}/setup.cfg +0 -0
  214. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_advanced_edit_tools.py +0 -0
  215. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_arrow_tip.py +0 -0
  216. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_arrowheads.py +0 -0
  217. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_atomic_io.py +0 -0
  218. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_audit_fixes.py +0 -0
  219. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_audit_fixes_20261008.py +0 -0
  220. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_backgrounds.py +0 -0
  221. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_box_handles_20261113.py +0 -0
  222. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_bug_recorder.py +0 -0
  223. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_bugs_found_by_gui_e2e.py +0 -0
  224. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_canvas_context_menu.py +0 -0
  225. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_caption_statistics_20261119.py +0 -0
  226. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_channel_numbering_20261116.py +0 -0
  227. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_channels_property_20261105.py +0 -0
  228. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_chat_replay_20261113.py +0 -0
  229. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_chat_reports_20261110.py +0 -0
  230. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_chat_scenarios_20261113.py +0 -0
  231. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_chat_video_20261118.py +0 -0
  232. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_codex_trial_findings.py +0 -0
  233. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_colour_bar_gui.py +0 -0
  234. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_command_box.py +0 -0
  235. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_connectors_20261112.py +0 -0
  236. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_consolidate_download.py +0 -0
  237. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_constant_panels.py +0 -0
  238. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_data_plots_and_stats.py +0 -0
  239. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_default_scale_bar_length.py +0 -0
  240. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_deserialization.py +0 -0
  241. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_detect_objects_20261113.py +0 -0
  242. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_dispatcher_batch_20261113.py +0 -0
  243. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_dnd_canvas_more.py +0 -0
  244. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_dnd_combine_with_target.py +0 -0
  245. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_dnd_main_editor.py +0 -0
  246. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_docs_tool_count_20261117.py +0 -0
  247. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_drop_sketches.py +0 -0
  248. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_editable_export.py +0 -0
  249. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_editable_plot_text.py +0 -0
  250. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_editor_interaction.py +0 -0
  251. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_editor_rotate_and_tool_20261105.py +0 -0
  252. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_empty_canvas_hints_20261119.py +0 -0
  253. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_empty_inset_roi_20261106.py +0 -0
  254. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_equations.py +0 -0
  255. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_exception_handler.py +0 -0
  256. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_export_waits_for_images.py +0 -0
  257. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_fig_rect_cache.py +0 -0
  258. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_figure_colors.py +0 -0
  259. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_figure_diff.py +0 -0
  260. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_fiji_formats.py +0 -0
  261. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_file_io_encoding.py +0 -0
  262. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_file_state_tracking.py +0 -0
  263. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_flip.py +0 -0
  264. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_folder_drag_and_drop.py +0 -0
  265. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_folder_files_20261119.py +0 -0
  266. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_fonts_available.py +0 -0
  267. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_forbidden_files.py +0 -0
  268. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_gui_e2e_context_menu.py +0 -0
  269. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_gui_e2e_coverage.py +0 -0
  270. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_gui_e2e_dnd.py +0 -0
  271. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_gui_e2e_image_editor.py +0 -0
  272. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_gui_e2e_menus.py +0 -0
  273. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_gui_e2e_monkey.py +0 -0
  274. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_gui_e2e_tutorials.py +0 -0
  275. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_gui_e2e_visual.py +0 -0
  276. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_gui_menus_and_toolbar.py +0 -0
  277. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_gui_more_actions.py +0 -0
  278. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_gui_workflow_actions.py +0 -0
  279. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_guide_routing.py +0 -0
  280. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_h264_fallback_20261118.py +0 -0
  281. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_human_requests_20261116.py +0 -0
  282. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_image_opacity_reload.py +0 -0
  283. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_image_search.py +0 -0
  284. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_inset_crop_margins_20261106.py +0 -0
  285. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_integrity_and_stats.py +0 -0
  286. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_interactive_tools.py +0 -0
  287. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_internal_dnd_group_placement.py +0 -0
  288. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_inverted_luts.py +0 -0
  289. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_journal_styles.py +0 -0
  290. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_last_chat_procedure_20261113.py +0 -0
  291. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_latex_code.py +0 -0
  292. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_latex_documents.py +0 -0
  293. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_latex_extras.py +0 -0
  294. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_latex_full.py +0 -0
  295. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_latex_stress_findings.py +0 -0
  296. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_launchers.py +0 -0
  297. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_layout_canvas_geometry.py +0 -0
  298. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_layout_formula.py +0 -0
  299. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_layout_stability_gui.py +0 -0
  300. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_lazy_loading_placeholder_20261106.py +0 -0
  301. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_lazy_reflow.py +0 -0
  302. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_letter_box_lowercase_20261117.py +0 -0
  303. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_lettering_restore.py +0 -0
  304. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_licensing.py +0 -0
  305. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_lif_series_reading.py +0 -0
  306. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_llm_feedback_20261020.py +0 -0
  307. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_llm_findings_20261118.py +0 -0
  308. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_lut_remove_20261105.py +0 -0
  309. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_max_height.py +0 -0
  310. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_mcp_audit_findings.py +0 -0
  311. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_mcp_control.py +0 -0
  312. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_mcp_history.py +0 -0
  313. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_mcp_server.py +0 -0
  314. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_mcp_stdio_protocol.py +0 -0
  315. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_mcp_text_arguments.py +0 -0
  316. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_missing_images_gui.py +0 -0
  317. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_move_annotations_20261113.py +0 -0
  318. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_normalization.py +0 -0
  319. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_offscreen_env.py +0 -0
  320. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_ome_zarr.py +0 -0
  321. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_omero.py +0 -0
  322. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_open_perf.py +0 -0
  323. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_page_fit_20261116.py +0 -0
  324. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_panel_as_shown_20261117.py +0 -0
  325. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_panel_editor_more.py +0 -0
  326. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_panel_preview.py +0 -0
  327. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_parity_mcp.py +0 -0
  328. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_path_resolution.py +0 -0
  329. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_pdf_panels.py +0 -0
  330. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_placeholder_grid.py +0 -0
  331. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_plot_tables_consolidation_20261118.py +0 -0
  332. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_portability.py +0 -0
  333. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_poster_files_and_recipe.py +0 -0
  334. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_poster_gui.py +0 -0
  335. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_poster_mcp.py +0 -0
  336. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_poster_stress_findings.py +0 -0
  337. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_poster_vector_figures.py +0 -0
  338. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_preview_panel_direct_20261119.py +0 -0
  339. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_property_setters_validate.py +0 -0
  340. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_pyf_loader_thread_deadlock.py +0 -0
  341. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_pyf_loading.py +0 -0
  342. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_pymupdf_offer.py +0 -0
  343. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_qc_gui.py +0 -0
  344. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_qc_mcp_tools.py +0 -0
  345. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_qc_reports.py +0 -0
  346. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_qt_exit.py +0 -0
  347. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_recipe.py +0 -0
  348. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_recipe_checks_bundles.py +0 -0
  349. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_recipe_extra_keys.py +0 -0
  350. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_recipe_for_llms.py +0 -0
  351. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_recipe_more_keys.py +0 -0
  352. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_recordings.py +0 -0
  353. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_remove_many_panels_20261117.py +0 -0
  354. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_remove_rois_20261113.py +0 -0
  355. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_remove_rois_editor_20261113.py +0 -0
  356. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_render_export.py +0 -0
  357. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_request_rules_20261119.py +0 -0
  358. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_restyle_texts.py +0 -0
  359. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_review_and_library.py +0 -0
  360. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_roi_small_drag_20261116.py +0 -0
  361. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_rotation_direction_20261117.py +0 -0
  362. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_rotation_keeps_crop_20261119.py +0 -0
  363. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_row_letters_chat_style_20261106.py +0 -0
  364. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_row_letters_gui.py +0 -0
  365. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_ruler_labels.py +0 -0
  366. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_rules_first_20261119.py +0 -0
  367. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_save_reminder.py +0 -0
  368. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_scale_bar_calibration.py +0 -0
  369. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_scale_bar_one_property_20261112.py +0 -0
  370. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_scale_bar_under_letter_20261119.py +0 -0
  371. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_scale_consistency.py +0 -0
  372. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_scan_folder_random_sample.py +0 -0
  373. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_schema_sweep_findings.py +0 -0
  374. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_selection_two_tone_20261117.py +0 -0
  375. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_self_test.py +0 -0
  376. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_send_to_poster.py +0 -0
  377. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_shapes.py +0 -0
  378. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_show_me_how.py +0 -0
  379. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_show_me_where_20261105.py +0 -0
  380. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_single_channel_colour_20261117.py +0 -0
  381. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_source_data.py +0 -0
  382. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_stack_tools.py +0 -0
  383. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_stack_tools_gui.py +0 -0
  384. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_stack_with_image.py +0 -0
  385. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_stress_findings.py +0 -0
  386. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_stress_findings_20261028.py +0 -0
  387. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_stress_findings_20261029.py +0 -0
  388. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_stroke_defaults_20261113.py +0 -0
  389. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_style_audit_calbar.py +0 -0
  390. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_svg_clipping_and_pdf_pages.py +0 -0
  391. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_svg_empty_glyph.py +0 -0
  392. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_tex_install.py +0 -0
  393. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_text_consistency_20261112.py +0 -0
  394. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_text_editor_and_widgets.py +0 -0
  395. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_tiny_roi_audit_20261116.py +0 -0
  396. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_tutorial_controller.py +0 -0
  397. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_tutorials.py +0 -0
  398. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_typography_tidy.py +0 -0
  399. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_undo_guard_20261112.py +0 -0
  400. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_uneven_rows_20261105.py +0 -0
  401. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_user_chat_findings_20261104.py +0 -0
  402. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_user_findings_20261022.py +0 -0
  403. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_user_gui_findings_20261021.py +0 -0
  404. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_user_guide_menus.py +0 -0
  405. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_video_support.py +0 -0
  406. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_web_chat_real_page.py +0 -0
  407. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_zarr_stress_findings.py +0 -0
  408. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_zoom_bar_20261116.py +0 -0
  409. {pyfigures-0.2.20 → pyfigures-0.2.22}/tests/test_zoom_callout_gui.py +0 -0
  410. {pyfigures-0.2.20 → pyfigures-0.2.22}/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.20
3
+ Version: 0.2.22
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,9 +35,9 @@ 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.3
39
- Requires-Dist: batoolset-gui>=0.2.6
40
- Requires-Dist: staplot>=0.1.1
38
+ Requires-Dist: batoolset>=0.2.6
39
+ Requires-Dist: batoolset-gui>=0.2.10
40
+ Requires-Dist: staplot>=0.1.3
41
41
  Requires-Dist: seaborn>=0.13
42
42
  Requires-Dist: openpyxl
43
43
  Requires-Dist: xlrd
@@ -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.15
52
+ Requires-Dist: qtpy-ai-sidecar>=0.1.17
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.15; extra == "chat"
69
+ Requires-Dist: qtpy-ai-sidecar>=0.1.17; 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.15; extra == "all"
72
+ Requires-Dist: qtpy-ai-sidecar>=0.1.17; 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"
@@ -1,4 +1,4 @@
1
- """Prototype message checkpoints, optional hidden drafts and durable action journal."""
1
+ """Message checkpoints (Undo / Redo of one answer) and the durable action journal."""
2
2
  import hashlib
3
3
  import json
4
4
  import shutil
@@ -178,9 +178,9 @@ class ActionManager:
178
178
  a = self.active
179
179
  atomic_json(a['folder'] / 'journal.json', a['record'])
180
180
 
181
- def begin(self, text='', preview=False):
181
+ def begin(self, text=''):
182
182
  if self.active:
183
- raise ValueError('Apply/discard the pending preview before sending another edit.')
183
+ raise ValueError('Finish the current action before sending another edit.')
184
184
  self.session._turn_submission_target=None
185
185
  from .submission_review import target_from_text
186
186
  named = target_from_text(text)
@@ -191,51 +191,19 @@ class ActionManager:
191
191
  folder = self.root / ident
192
192
  folder.mkdir()
193
193
  before = folder / 'before.pyf'
194
- baseline = capture(self.session, before, picture=preview)
195
- record = dict(id=ident, request=text, status='running', preview=preview,
194
+ baseline = capture(self.session, before)
195
+ record = dict(id=ident, request=text, status='running',
196
196
  before=str(before), baseline=baseline, operations=[], created_at=time.time())
197
- self.active = dict(folder=folder, record=record, draft=None)
198
- if preview:
199
- from .session import EZFIG_GUI, Session
200
- w = EZFIG_GUI()
201
- w.resize(self.session.window.size())
202
- draft = Session(w, recovery_dir=self.session.runtime / 'assistant_drafts')
203
- adopt(draft, before)
204
- # Copy selection by opaque scene address, never by Python identity.
205
- from .partner_gui import selection_state
206
- selected = selection_state(self.session.window).get('selected_objects', [])
207
- objects = []
208
- for item in selected:
209
- try:
210
- parts = item['object_id'].split('/')
211
- obj = w.paint.EZFIG_panel.shapes_to_draw[int(parts[1])]
212
- for offset in range(2, len(parts), 2):
213
- obj = getattr(obj, parts[offset])[int(parts[offset + 1])]
214
- objects.append(obj)
215
- except (AttributeError, ValueError, IndexError):
216
- pass
217
- w.paint.EZFIG_panel.set_current_selection(objects[0] if len(objects) == 1 else objects or None)
218
- self.active['draft'] = draft
219
- record['draft_session'] = draft.id
197
+ self.active = dict(folder=folder, record=record)
220
198
  record['checkpoint_ms'] = round((time.monotonic() - start) * 1000, 1)
221
199
  self.persist()
222
- return dict(id=ident, preview=preview, checkpoint_ms=record['checkpoint_ms'])
200
+ return dict(id=ident, checkpoint_ms=record['checkpoint_ms'])
223
201
 
224
202
  def dispatch(self, req):
225
203
  a = self.active
226
- target = a['draft'] or self.session
204
+ target = self.session
227
205
  op = req['operation']
228
206
  mutating = op not in ('inspect', 'letter_state', 'preview', 'panel_source', 'overlay_contrast', 'readability', 'submission_review', 'inspect_annotation_objects')
229
- name = req.get('arguments', {}).get('tool', '')
230
- read_only_native = op == 'original_tool' and name.startswith(('get_', 'list_', 'describe_', 'inspect_', 'check_', 'explain_'))
231
- if a['record'].get('resume_guard') and mutating and not read_only_native:
232
- if any(prior['status'] in ('pending', 'uncertain') for prior in a['record']['operations']):
233
- raise ValueError('UNCERTAIN_OPERATION: Inspect and review the recovered draft before further edits. Apply/discard it, then give explicit remaining instructions. No uncertain operation replayed.')
234
- for prior in a['record']['operations']:
235
- if prior['status'] == 'completed' and prior['operation'] == op and prior['arguments'] == req.get('arguments', {}):
236
- raise ValueError('ALREADY_COMPLETED: This operation was recorded as complete before interruption. Inspect current state; do not apply it twice. Ask for clarification if an identical repeated operation is intentional.')
237
- if a['draft'] and (op == 'save_copy' or (op == 'original_tool' and req.get('arguments', {}).get('tool', '').startswith('export_'))):
238
- raise ValueError('Export/save cannot be previewed. Apply the draft first, then request export.')
239
207
  item = None
240
208
  if mutating:
241
209
  item = dict(request_id=req['request_id'], operation=op, arguments=req.get('arguments', {}),
@@ -265,69 +233,24 @@ class ActionManager:
265
233
  a = self.active
266
234
  if not a:
267
235
  return {}
268
- target = a['draft'] or self.session
269
236
  after = a['folder'] / 'after.pyf'
270
237
  a['record']['after'] = str(after)
271
- a['record']['after_digest'] = capture(target, after, picture=bool(a['draft']))
238
+ a['record']['after_digest'] = capture(self.session, after)
272
239
  changed = a['record']['baseline'] != a['record']['after_digest']
273
240
  a['record']['changed'] = changed
274
- a['record']['status'] = 'interrupted' if interrupted else 'preview' if a['draft'] and changed else 'applied' if changed else 'no_change'
241
+ a['record']['status'] = 'interrupted' if interrupted else 'applied' if changed else 'no_change'
275
242
  self.persist()
276
243
  record = dict(a['record'])
277
- if not a['draft'] or not changed:
278
- self.release()
279
- return record
280
-
281
- def release(self):
282
- if self.active and self.active['draft']:
283
- draft = self.active['draft']
284
- draft.timer.stop()
285
- draft.recovery_timer.stop()
286
- draft.window._mark_clean()
287
- draft.window.close()
288
- draft.window.deleteLater()
289
244
  self.active = None
290
-
291
- def apply(self):
292
- a = self.active
293
- if not a or not a['draft']:
294
- raise ValueError('No draft to apply')
295
- current = a['folder'] / 'current_main.pyf'
296
- if capture(self.session, current) != a['record']['baseline']:
297
- raise ValueError('The main figure changed after this preview began. Discard and retry; no draft applied.')
298
- before = a['folder'] / 'before.pyf'
299
- history = (list(self.session.window.undo_stack), list(self.session.window.redo_stack), self.session.window.current_index, self.session.window.last_called_state)
300
- try:
301
- self.session.window.save_state(show_popup=False)
302
- adopt(self.session, Path(a['record']['after']))
303
- self.session.window.save_state(show_popup=False)
304
- a['record']['after_digest'] = capture(self.session, Path(a['record']['after']))
305
- a['record']['status'] = 'applied'
306
- self.persist()
307
- result = dict(a['record'])
308
- except Exception:
309
- adopt(self.session, before)
310
- w = self.session.window
311
- w.undo_stack, w.redo_stack, w.current_index, w.last_called_state = history
312
- raise
313
- self.release()
314
- return result
315
-
316
- def discard(self):
317
- if not self.active:
318
- return {}
319
- self.active['record']['status'] = 'discarded'
320
- self.persist()
321
- result = dict(self.active['record'])
322
- self.release()
323
- return result
245
+ return record
324
246
 
325
247
  def undo(self, ident):
326
248
  if self.active:
327
- raise ValueError('Apply/discard the pending draft first')
249
+ raise ValueError('Finish the current action first')
328
250
  folder = self.folder(ident)
329
251
  record = json.loads((folder / 'journal.json').read_text())
330
- if record['status'] not in ('applied', 'interrupted') or (record['status'] == 'interrupted' and record['preview']):
252
+ # an old journal's never-applied draft (the preview mode removed 2026-11-21) is not undone
253
+ if record['status'] not in ('applied', 'interrupted') or (record['status'] == 'interrupted' and record.get('preview')):
331
254
  raise ValueError('This action is not currently applied')
332
255
  if capture(self.session, folder / 'undo_check.pyf') != record['after_digest']:
333
256
  raise ValueError('Later edits exist. Undo those first; this message cannot be reversed without overwriting them.')
@@ -351,7 +274,7 @@ class ActionManager:
351
274
 
352
275
  def redo(self, ident=None):
353
276
  if self.active:
354
- raise ValueError('Finish the current action or draft before redoing a message')
277
+ raise ValueError('Finish the current action before redoing a message')
355
278
  if ident is None:
356
279
  records = [json.loads(p.read_text()) for p in self.root.glob('*/journal.json')]
357
280
  undone = [r for r in records if r['status'] == 'undone']
@@ -389,49 +312,16 @@ class ActionManager:
389
312
  raise ValueError('Invalid action identity')
390
313
  return self.root / ident
391
314
 
392
- def continue_action(self, ident):
393
- if not self.active or self.active['record']['id'] != ident or not self.active['record'].get('recovered_from'):
394
- raise ValueError('This recovered draft is no longer pending')
395
- self.active['record']['resume_guard'] = True
396
- self.active['record']['status'] = 'running'
397
- self.persist()
398
- return dict(self.active['record'])
399
-
400
315
  def recover(self, ident=None):
401
- """Recover a draft for review; never replay a recorded operation."""
316
+ """An unfinished action (the application stopped mid-turn): its edits are already in
317
+ the figure, so it is reported for inspection; never replayed."""
402
318
  if self.active:
403
- raise ValueError('Finish the current draft first')
319
+ raise ValueError('Finish the current action first')
404
320
  candidates = [self.folder(ident) / 'journal.json'] if ident else sorted(self.root.glob('*/journal.json'), key=lambda p: p.stat().st_mtime, reverse=True)
405
321
  for path in candidates:
406
322
  old = json.loads(path.read_text())
407
- if old['status'] not in ('running', 'interrupted', 'preview'):
323
+ if old['status'] not in ('running', 'interrupted'):
408
324
  continue
409
- if not old['preview']:
410
- return dict(status='inspect_only', request=old['request'], operations=old['operations'],
411
- note='Live edits may already exist. No operation replayed. Inspect current figure before asking for remaining work.')
412
- if capture(self.session, path.parent / 'recovery_check.pyf') != old['baseline']:
413
- return dict(status='conflict', request=old['request'], operations=old['operations'],
414
- note='Main figure differs from the original action checkpoint. Recovery was not applied or staged; inspect/export before choosing a version. No operation replayed.')
415
- source = Path(old.get('recovery_snapshot') or old.get('after') or path.parent / 'latest.pyf')
416
- if not source.is_file() or not source.resolve().is_relative_to(self.session.runtime.resolve()):
417
- raise ValueError('Recovery draft unavailable; no replay attempted')
418
- begin = self.begin(old['request'], preview=True)
419
- draft = self.active['draft']
420
- # Recovery snapshots have no .ui manifest; use the recorded action state.
421
- recovered = self.active['folder'] / 'recovered.pyf'
422
- shutil.copyfile(source, recovered)
423
- ui = Path(old.get('after', old['before'])).with_suffix('.ui.json')
424
- shutil.copyfile(ui, recovered.with_suffix('.ui.json'))
425
- for suffix in SIDECARS:
426
- if source.with_suffix(suffix).exists():
427
- shutil.copyfile(source.with_suffix(suffix), recovered.with_suffix(suffix))
428
- adopt(draft, recovered)
429
- self.active['record']['recovered_from'] = old['id']
430
- self.active['record']['operations'] = old['operations']
431
- result = self.finish(interrupted=True)
432
- old['status'] = 'recovered'
433
- old['recovered_as'] = result['id']
434
- atomic_json(path, old)
435
- result['note'] = 'Recovered draft for review. Completed operations were not replayed; pending/uncertain operations require fresh inspection and explicit remaining instructions.'
436
- return result
325
+ return dict(status='inspect_only', request=old['request'], operations=old['operations'],
326
+ note='Live edits may already exist. No operation replayed. Inspect current figure before asking for remaining work.')
437
327
  return dict(status='none', note='No unfinished action found')
@@ -41,7 +41,7 @@ CATEGORIES = {
41
41
 
42
42
  def category_for(name):
43
43
  if any(k in name for k in ('data_plot', 'seaborn', 'table_panel', 'describe_table', 'factor_columns',
44
- 'summarize_table', 'plot_panel_code')):
44
+ 'summarize_table', 'plot_panel_code', 'image_plot')):
45
45
  return 'plots'
46
46
  # 2026-11-19: these fell into 'setup' (server info) where no model looks for them
47
47
  if name in ('remove_rois', 'move_annotations', 'move_annotation_in_corner', 'add_connector',
@@ -105,7 +105,7 @@ def category_for(name):
105
105
  return 'setup'
106
106
 
107
107
 
108
- _PLOT_OPTIONS = 'edit_data_plot(panel_ref, kind="violin"|"box"|"bar"|"scatter"|"grouped"|"split_violin" (two conditions, e.g. sex, as the two halves of each violin; a two-factor table)|"paired" (before / after on the same subjects: a line per subject, paired tests)|"line" (a time course: mean ± error per group across days / doses, columns=[group, x, value]), error, only_significant, annotate_stats, stats_mode, ylabel, aspect=width/height only when asked: "wider" = 1.5-2, "taller" = 0.6-0.8; a plot can take any shape, unlike an image; text size: font_pt = the plot\'s text in the printed figure (default the labels\' size, else 7 pt; "bigger text" 8-9, "like the letters" their pt; "labels" = the labels\' size again); font_family="Verdana" ("labels" = the labels\' font, the default); size: width/height in inches; layout: order=[group names], ylim=[low, high] ([0, null] = y from 0; on a plot "the scale", "the scale bar", "the range", "start at 0 and go to 50" mean its y axis: ylim=[0, 50]; a plot has no scale bar; the plot just discussed is the one meant), log_y, xtick_rotation=45 for overlapping names (degrees ANTICLOCKWISE, unlike image rotation: "rotate left" = +45, names rising "/"; "rotate right" = -45), rename={"mutA": "mutant A"} for a group\'s shown name (never ask the user to edit the table), show_points=False ("remove the point cloud"), point_style="swarm" (points side by side, a beeswarm) | "line" | "jitter", violin_inner="box" ("a box plot within the violin") | "lines" | "none", violin_side="left" ("half violins", points on the other side) | "right" | "both" ("what can I put in / change on my plot?": list_data_plot_kinds lists every option per kind), legend="inside"|"outside"|"none", element_colors={"points": "black", "median": "red", "edges": "none", "brackets": "grey"} (colour of PARTS of the plot; the groups\' own colours = colors=[...]), columns=[x, (split,) value] of a tidy table, where="day == 14" (only some rows), control="WT" ("compare everything to WT": Dunnett\'s test), normalize="WT" ("as % of control"), pairs=[["WT", "mutA"]] ("only show WT vs mutA"; [] = every significant pair), stats_text=True (grouped / split / line: the two-way ANOVA written under the axes; off by default, stars only; "remove the stats text at the bottom" = stats_text=False, NOT annotate_stats=False which removes the stars too), show_n=True ("add the n"), p_format="p" ("p values instead of stars"), show_mean=True, hlines=[1.0] (a dashed reference line; [{"y": 100, "label": "control"}]), facet="day" (one plot per day, each tested; facet_row="sex" a grid; "split plots" / "facets"), skip_rows=3 (lines above the table; found automatically otherwise); 0 / "" / [] resets one; seaborn plots: edit_seaborn_plot height/aspect, title, palette={"female": "red", "male": "blue"} (a colour per group), legend="outside"|"top"|"inside"|"none", xlim/ylim=[low, high], col/row facets, rename={"weight_g": "weight (g)"} for column or value names, where, options={"cumulative": true, "element": "step", "fill": false} = cumulative histogram (function="histplot"; or "ecdfplot")) for a DATA PLOT; add_table_panel(group_path, csv_path, by=["genotype"], value="area", stats=["n", "mean±sd"]) = a TABLE as a figure panel (raw rows, or a summary per group; edit_table_panel changes it), describe_table(csv_path, sheet) = a table\'s columns, types, levels, first rows and the plots that fit (use it before add_seaborn_plot / add_data_plot when the columns are not known; never search for it), list_factor_columns(csv_path, sheet) = the columns that can split / colour / facet the data, with their levels, summarize_table(csv_path, value, by, where) = n / mean / sd / median per group (a DATA PLOT is a panel whose panel_references "code" says type data_plot; its statistics and p-values are there too; list_data_plot_kinds lists the kinds; never set_script on a data plot).'
108
+ _PLOT_OPTIONS = 'edit_data_plot(panel_ref, kind="violin"|"box"|"bar"|"scatter"|"grouped"|"split_violin" (two conditions, e.g. sex, as the two halves of each violin; a two-factor table)|"paired" (before / after on the same subjects: a line per subject, paired tests)|"line" (a time course: mean ± error per group across days / doses, columns=[group, x, value]), error, only_significant, annotate_stats, stats_mode, ylabel, aspect=width/height only when asked: "wider" = 1.5-2, "taller" = 0.6-0.8; a plot can take any shape, unlike an image; text size: font_pt = the plot\'s text in the printed figure (default the labels\' size, else 7 pt; "bigger text" 8-9, "like the letters" their pt; "labels" = the labels\' size again); font_family="Verdana" ("labels" = the labels\' font, the default); ONE part only ("bigger title", "smaller tick labels"): text_pt={"title": 9} / text_font={"ticks": "Arial"}, parts title|axis_labels|ticks|legend, null = as the whole plot; size: width/height in inches; layout: order=[group names], ylim=[low, high] ([0, null] = y from 0; on a plot "the scale", "the scale bar", "the range", "start at 0 and go to 50" mean its y axis: ylim=[0, 50]; a plot has no scale bar; the plot just discussed is the one meant), log_y, xtick_rotation=45 for overlapping names (degrees ANTICLOCKWISE, unlike image rotation: "rotate left" = +45, names rising "/"; "rotate right" = -45), rename={"mutA": "mutant A"} for a group\'s shown name (never ask the user to edit the table), show_points=False ("remove the point cloud"), point_style="swarm" (points side by side, a beeswarm) | "line" | "jitter", violin_inner="box" ("a box plot within the violin") | "lines" | "none", violin_side="left" ("half violins", points on the other side) | "right" | "both" ("what can I put in / change on my plot?": list_data_plot_kinds lists every option per kind), legend="inside"|"outside"|"none", element_colors={"points": "black", "median": "red", "edges": "none", "brackets": "grey"} (colour of PARTS of the plot; the groups\' own colours = colors=[...]), columns=[x, (split,) value] of a tidy table, where="day == 14" (only some rows), control="WT" ("compare everything to WT": Dunnett\'s test), normalize="WT" ("as % of control"), pairs=[["WT", "mutA"]] ("only show WT vs mutA"; [] = every significant pair), stats_text=True (grouped / split / line: the two-way ANOVA written under the axes; off by default, stars only; "remove the stats text at the bottom" = stats_text=False, NOT annotate_stats=False which removes the stars too), show_n=True ("add the n"), layers=["mean_line"|"median_line"|"mean_error"] (lines / mean±error over the groups: "points and a line"), y2={"columns": [x, value], "kind": "line"} (a 2nd measure on a RIGHT y axis; "csv" another table), invert_y / invert_x=True (axis upside down), ybreak=[low, high] (broken y axis), y_step / y_format="sci"|"percent"|"{:.1f}" / log_base (ticks), error_side="up" (one-sided error bars), kind="stacked" (percent=True) | "dose_response" (EC50) | "histogram" | "heatmap", p_format="p" ("p values instead of stars"), show_mean=True, hlines=[1.0] (a dashed reference line; [{"y": 100, "label": "control"}]), facet="day" (one plot per day, each tested; facet_row="sex" a grid; "split plots" / "facets"), skip_rows=3 (lines above the table; found automatically otherwise); 0 / "" / [] resets one; seaborn plots: edit_seaborn_plot height/aspect, title, palette={"female": "red", "male": "blue"} (a colour per group), legend="outside"|"top"|"inside"|"none", xlim/ylim=[low, high], col/row facets, rename={"weight_g": "weight (g)"} for column or value names, where, options={"cumulative": true, "element": "step", "fill": false} = cumulative histogram (function="histplot"; or "ecdfplot")) for a DATA PLOT; add_table_panel(group_path, csv_path, by=["genotype"], value="area", stats=["n", "mean±sd"]) = a TABLE as a figure panel (raw rows, or a summary per group; edit_table_panel changes it), describe_table(csv_path, sheet) = a table\'s columns, types, levels, first rows and the plots that fit (use it before add_seaborn_plot / add_data_plot when the columns are not known; never search for it), list_factor_columns(csv_path, sheet) = the columns that can split / colour / facet the data, with their levels, summarize_table(csv_path, value, by, where) = n / mean / sd / median per group (a DATA PLOT is a panel whose panel_references "code" says type data_plot; its statistics and p-values are there too; list_data_plot_kinds lists the kinds; never set_script on a data plot).'
109
109
 
110
110
 
111
111
  # The rules of one topic, said by find_pyfigures_tools when the search words fit it
@@ -408,7 +408,8 @@ def _special_note(words):
408
408
  'true}). Do not search further. ')
409
409
  if words & {'facet', 'facets', 'faceted'}:
410
410
  return ('FACETS: add_data_plot / edit_data_plot(facet="day") = one plot per value, each with its '
411
- 'statistics (facet_row for a grid); seaborn: col= / row=. Do not search further. ')
411
+ 'statistics (facet_row for a grid); add_data_plot(facet="day", facet_panels=True) = one '
412
+ 'separate panel per value, each with its own letter; seaborn: col= / row=. Do not search further. ')
412
413
  if words & {'plot', 'plots', 'chart', 'graph', 'violin', 'violins', 'boxplot', 'histogram', 'seaborn',
413
414
  'anova', 'stars', 'stats', 'statistics', 'significance', 'pvalue', 'pvalues', 'swarm'}:
414
415
  # the plot options, said only when the model asks about plots: they were 8 kB of the
@@ -122,7 +122,13 @@ def register_all(server, send):
122
122
  if ref is None and native_params[key].default is not inspect.Parameter.empty:
123
123
  kwargs[key]=native_params[key].default
124
124
  elif ref is None:
125
- raise ValueError('Supply panel_ref for a named live panel, or both group_path and image_index')
125
+ # "make all bars 10-15 % of the width": Qwen sent set_scale_bar with no
126
+ # panel 4 times (replay 2026-11-20); the tool for every panel is named
127
+ from pyfigures import mcp_server as _m
128
+ every = f'{name}_all' if hasattr(_m, f'{name}_all') else None
129
+ raise ValueError('Supply panel_ref for a named live panel, or both group_path and image_index'
130
+ + (f'. For EVERY panel at once ("all bars", "all panels"), call {every} '
131
+ 'instead: one call, no panel_ref.' if every else ''))
126
132
  if text_indexed and kwargs.get('annotation_index') is None:
127
133
  raise ValueError('Supply text_index from get_annotations (text tools count texts, not all annotations)')
128
134
  target = kwargs.get(parameter, 'live') if parameter else None
@@ -417,8 +417,11 @@ class PartnerGUI(BaseGUI):
417
417
  from batoolset.serializations.tools import clone_object
418
418
  from batoolset.pyqts.tools import get_original_shape_from_rect_and_angle
419
419
  panel = resolve_panel(self, panel_ref)
420
+ from batoolset.drawings.shapes.scalebar import ScaleBar
421
+ # a scale bar is a Rectangle2D too: it was taken as the ROI (replay 2026-11-20: the
422
+ # inset showed the scale bar's corner, and connect_roi_to_inset found no ROI)
420
423
  candidates = [(i, a) for i, a in enumerate(panel.annotations or []) if isinstance(a, Rectangle2D)
421
- and not isinstance(a, (Image2D, TAText2D))]
424
+ and not isinstance(a, (Image2D, TAText2D, ScaleBar))]
422
425
  at_click = None
423
426
  if annotation_index is not None:
424
427
  candidates = [(i, a) for i, a in candidates if i == annotation_index]
@@ -440,9 +443,15 @@ class PartnerGUI(BaseGUI):
440
443
  for j, a in enumerate(panel.annotations or []):
441
444
  if isinstance(a, Image2D) and ((roi_id and getattr(a, 'follows_roi', None) == roi_id)
442
445
  or (a.crop_left, a.crop_right, a.crop_top, a.crop_bottom) == tuple(crop0)):
446
+ # what to do instead, by request: Qwen resent this call 3 times on "the region is more to
447
+ # the left" and on "add a second inset" (replay 2026-11-20)
443
448
  raise ValueError(f'ALREADY_HAS_INSET: ROI {index0} already has its inset (annotation_index {j}); nothing was '
444
- 'added. To change it: edit_annotation_properties on that inset; to let the user edit it '
445
- 'by hand: open_annotation_editor. Make a second inset only if the user asks for another one.')
449
+ 'added, do not resend this call. To show ANOTHER REGION in it ("more to the left / up"): '
450
+ f'move the ROI in one call: move_annotations(annotation_indexes=[{index0}], dx=..., '
451
+ 'dy=...) in source pixels (or to_x / to_y); the inset and its leader lines follow. '
452
+ 'Never remove and redraw them. To resize the inset: '
453
+ f'changes {{"size_fraction": ...}} on annotation {j}. For a SECOND inset: draw its box '
454
+ 'first (add_roi_rect), then roi_to_inset with that box\'s annotation_index.')
446
455
  if validate_only:
447
456
  return
448
457
  if at_click is not None:
@@ -25,10 +25,17 @@ PLOT_KINDS = {
25
25
  't-test / Wilcoxon, repeated-measures ANOVA / Friedman',
26
26
  'split_violin': 'two conditions (e.g. sex) as the two halves of each violin, a legend naming them; '
27
27
  'each pair tested, two-way ANOVA (needs a two-factor table with a two-level factor)',
28
+ 'stacked': 'stacked bars of counts per category (percent=True: each bar 100 %); chi-square / Fisher '
29
+ 'test (a table: bars, categories, count)',
30
+ 'dose_response': 'mean ± error per dose and a 4-parameter logistic fit, EC50 in the legend (a table: '
31
+ 'dose, then one column per response)',
32
+ 'histogram': 'the distribution of each column as a histogram (bins)',
33
+ 'heatmap': 'the table\'s values as coloured cells (cmap)',
28
34
  }
29
35
  _LAYOUT_KEYS = ('aspect', 'width', 'height', 'font_scale', 'order', 'ylim', 'log_y', 'xtick_rotation', 'legend',
30
36
  'rename', 'violin_inner', 'violin_side', 'element_colors', 'show_n', 'show_mean', 'p_format',
31
- 'hlines', 'control', 'point_style', 'normalize', 'pairs', 'stats_text')
37
+ 'hlines', 'control', 'point_style', 'normalize', 'pairs', 'stats_text', 'layers', 'y2', 'invert_y', 'invert_x', 'ybreak', 'y_step', 'y_format',
38
+ 'log_base', 'error_side', 'percent', 'bins', 'cmap', 'log_x')
32
39
  SCRIPT_CHARS = 2500 # the code shown for a script panel (the rest: get_script)
33
40
  _STATS_CACHE: dict = {} # (csv, mtime, size, kind, only_significant, stats_mode) -> record
34
41
 
@@ -47,7 +54,7 @@ def _table_file(path):
47
54
 
48
55
  def _sel(spec: dict) -> dict:
49
56
  """How the plot reads its table: columns, where, skip_rows (those set)."""
50
- return {k: spec[k] for k in ('columns', 'where', 'skip_rows')
57
+ return {k: spec[k] for k in ('columns', 'where', 'skip_rows', 'subject')
51
58
  if spec.get(k) is not None and spec.get(k) not in ('', [])}
52
59
 
53
60
 
@@ -71,7 +78,7 @@ def parse_data_plot(script: str) -> dict | None:
71
78
  if node.func.attr in ('table_from_csv', 'grouped_table_from_csv'):
72
79
  spec['grouped_table'] = node.func.attr == 'grouped_table_from_csv'
73
80
  for kw in node.keywords:
74
- if kw.arg in ('columns', 'where', 'skip_rows'):
81
+ if kw.arg in ('columns', 'where', 'skip_rows', 'subject'):
75
82
  try:
76
83
  spec[kw.arg] = ast.literal_eval(kw.value)
77
84
  except ValueError:
@@ -103,6 +110,8 @@ def parse_data_plot(script: str) -> dict | None:
103
110
  'where': spec.get('where'),
104
111
  # lines skipped above the table by hand (None: found automatically)
105
112
  'skip_rows': spec.get('skip_rows'),
113
+ # the column naming each value's subject (animal): the subjects are the replicates
114
+ 'subject': spec.get('subject'),
106
115
  # facets: one plot per value of a column (staplot.api.plot_facets)
107
116
  'facet': spec.get('facet'), 'facet_row': spec.get('facet_row'),
108
117
  'facet_ncols': spec.get('facet_ncols')}
@@ -245,6 +254,26 @@ def data_cleaning(spec: dict) -> str | None:
245
254
  return _STATS_CACHE[key]
246
255
 
247
256
 
257
+ def _plot_text_sizes(panel) -> dict | None:
258
+ """{'pt': whole plot's size on the page, 'font', 'parts': {part: {pt, font}}} of a
259
+ plot panel (a live Image2D); None when it cannot be told."""
260
+ try:
261
+ if not getattr(panel, 'publication_font_on_page', False):
262
+ return None
263
+ out = {'pt': float(panel._page_font_pt()) if hasattr(panel, '_page_font_pt')
264
+ else float(getattr(panel, 'publication_font_size', 0))}
265
+ family = panel._publication_family() if hasattr(panel, '_publication_family') else None
266
+ if family:
267
+ out['font'] = family
268
+ from batoolset.drawings.shapes.image2d import parse_text_parts
269
+ parts = parse_text_parts(getattr(panel, 'publication_text_parts', None))
270
+ if parts:
271
+ out['parts'] = parts
272
+ return out
273
+ except Exception:
274
+ return None
275
+
276
+
248
277
  def describe_code_panel(panel, statistics: bool = True) -> dict:
249
278
  """The part of panel_references that says what a code panel draws."""
250
279
  script = panel_script(panel)
@@ -280,6 +309,10 @@ def describe_code_panel(panel, statistics: bool = True) -> dict:
280
309
  if statistics and spec['annotate_stats'] or spec['kind'] == 'scatter':
281
310
  out['statistics'] = plot_statistics(spec)
282
311
  out['kinds_available'] = list(PLOT_KINDS)
312
+ # its text as drawn: "make the title bigger" needs the size it has now
313
+ text = _plot_text_sizes(panel)
314
+ if text:
315
+ out['text'] = text
283
316
  # the staplot call that draws it: every setting at a glance, in the words the
284
317
  # parameters have (user: "that could also be sent to the model and help it
285
318
  # modify the parameters"); the whole script (with the test redone in scipy)
@@ -289,7 +322,8 @@ def describe_code_panel(panel, statistics: bool = True) -> dict:
289
322
  out['code'] = call
290
323
  out['full_code_with'] = 'data_plot_code'
291
324
  out['change_it_with'] = ('edit_data_plot (kind, error bars, only_significant, stats on/off, stats_mode, '
292
- 'labels, colours, csv_path, sheet; text size font_pt, font font_family; layout and size: aspect, width, height, '
325
+ 'labels, colours, csv_path, sheet; text size font_pt, font font_family (whole plot), '
326
+ 'text_pt / text_font {title, axis_labels, ticks, legend} (one part); layout and size: aspect, width, height, '
293
327
  'order, rename (group names shown), show_points, violin_inner, violin_side (half violins), ylim (its "scale" / "range": a plot has no scale bar), '
294
328
  'log_y, xtick_rotation (anticlockwise: left = +), legend) — never set_script on a data plot')
295
329
  return out
@@ -328,14 +328,14 @@ class Session:
328
328
  return {'rules': request_rules(args.get('text', ''), args.get('earlier', ''))}
329
329
  if not getattr(self, '_action_passthrough', False):
330
330
  op = req['operation']
331
- controls = {'action_begin', 'action_finish', 'action_apply', 'action_discard', 'action_undo', 'action_redo', 'action_recover', 'action_continue'}
331
+ controls = {'action_begin', 'action_finish', 'action_undo', 'action_redo', 'action_recover'}
332
332
  if op in controls:
333
333
  if not hasattr(self, 'actions'):
334
334
  from .assistant_actions import ActionManager
335
335
  self.actions = ActionManager(self)
336
336
  args = req.get('arguments', {})
337
- method = {'action_begin': 'begin', 'action_finish': 'finish', 'action_apply': 'apply',
338
- 'action_discard': 'discard', 'action_undo': 'undo', 'action_redo': 'redo', 'action_recover': 'recover', 'action_continue': 'continue_action'}[op]
337
+ method = {'action_begin': 'begin', 'action_finish': 'finish',
338
+ 'action_undo': 'undo', 'action_redo': 'redo', 'action_recover': 'recover'}[op]
339
339
  return getattr(self.actions, method)(**args)
340
340
  if op in ('inspect_native_gui','use_native_gui','open_native_menu','native_gesture','native_drop_files','native_keys'):
341
341
  if not hasattr(self,'native_gui'):
@@ -1577,6 +1577,35 @@ class MainWindow(QWidget):
1577
1577
  font_radio_layout.addLayout(font_name_row)
1578
1578
  font_radio_layout.addWidget(self.publication_font_radio_keep)
1579
1579
  pub_layout.addLayout(font_radio_layout)
1580
+
1581
+ # one part of a plot's text with its own size / font (user, 2026-11-20: "make
1582
+ # the title bigger" made all the text bigger); empty = as the whole plot
1583
+ parts_box = QGroupBox('Parts of the text (empty = as above)')
1584
+ parts_grid = QGridLayout(parts_box)
1585
+ parts_grid.addWidget(QLabel('Size'), 0, 1)
1586
+ parts_grid.addWidget(QLabel('Font'), 0, 2)
1587
+ self.publication_part_size_spinboxes = {}
1588
+ self.publication_part_font_edits = {}
1589
+ for row, (part, name) in enumerate((('title', 'Title'), ('axis_labels', 'Axis labels'),
1590
+ ('ticks', 'Tick labels'), ('legend', 'Legend')), start=1):
1591
+ spin = QDoubleSpinBox()
1592
+ spin.setDecimals(1)
1593
+ spin.setRange(0, 72)
1594
+ spin.setSingleStep(0.5)
1595
+ spin.setSpecialValueText('as above') # 0: the size of the whole plot
1596
+ spin.setSuffix(' pt')
1597
+ spin.setToolTip(f"The size of the plot's {name.lower()} on the page; 'as above' = the plot's size")
1598
+ edit = QLineEdit()
1599
+ edit.setPlaceholderText('as above')
1600
+ edit.setToolTip(f"The font of the plot's {name.lower()}; empty = the plot's font")
1601
+ parts_grid.addWidget(QLabel(name), row, 0)
1602
+ parts_grid.addWidget(spin, row, 1)
1603
+ parts_grid.addWidget(edit, row, 2)
1604
+ self.publication_part_size_spinboxes[part] = spin
1605
+ self.publication_part_font_edits[part] = edit
1606
+ spin.valueChanged.connect(self.on_publication_style_changed)
1607
+ edit.editingFinished.connect(self.on_publication_style_changed)
1608
+ pub_layout.addWidget(parts_box)
1580
1609
  pub_main_layout.addWidget(pub_group)
1581
1610
 
1582
1611
  # SVG images
@@ -3275,6 +3304,10 @@ class MainWindow(QWidget):
3275
3304
  self.script_text_edit.setText(
3276
3305
  self.qt_viewer.background.custom_loading_script if self.qt_viewer.background.custom_loading_script else '')
3277
3306
  bg = self.qt_viewer.background
3307
+ # read first: setting the widgets below saves them all back into the panel
3308
+ from batoolset.drawings.shapes.image2d import parse_text_parts
3309
+ self._publication_parts_loaded = False
3310
+ parts = parse_text_parts(getattr(bg, 'publication_text_parts', None))
3278
3311
  self.publication_style_checkbox.setChecked(getattr(bg, 'publication_style', True))
3279
3312
  self.publication_font_size_spinbox.setValue(getattr(bg, 'publication_font_size', 12))
3280
3313
  self.publication_line_width_spinbox.setValue(getattr(bg, 'publication_line_width', 0.65))
@@ -3293,6 +3326,12 @@ class MainWindow(QWidget):
3293
3326
  else:
3294
3327
  self.publication_font_radio_keep.setChecked(True)
3295
3328
  self.publication_font_edit.setText('')
3329
+ for part, spin in self.publication_part_size_spinboxes.items():
3330
+ with QSignalBlocker(spin):
3331
+ spin.setValue((parts.get(part) or {}).get('pt') or 0)
3332
+ with QSignalBlocker(self.publication_part_font_edits[part]):
3333
+ self.publication_part_font_edits[part].setText((parts.get(part) or {}).get('font') or '')
3334
+ self._publication_parts_loaded = True
3296
3335
  self.on_publication_font_radio_changed()
3297
3336
 
3298
3337
  svg_stroke = getattr(bg, 'publication_svg_stroke_width', 0.65)
@@ -3506,7 +3545,12 @@ class MainWindow(QWidget):
3506
3545
  return
3507
3546
 
3508
3547
 
3509
- if not isinstance(self.qt_viewer.selected_shape[0], Rectangle2D):
3548
+ from batoolset.drawings.shapes.scalebar import ScaleBar
3549
+ from batoolset.drawings.shapes.image2d import Image2D as _Inset
3550
+ from batoolset.drawings.shapes.txt2d import TAText2D as _Text
3551
+ # a scale bar, a text or an inset is a Rectangle2D too, not an ROI
3552
+ shape = self.qt_viewer.selected_shape[0]
3553
+ if not isinstance(shape, Rectangle2D) or isinstance(shape, (ScaleBar, _Inset, _Text)):
3510
3554
  self.show_warning("Draw a rectangular ROI and select it before pressing this button")
3511
3555
  # print('Draw a rectangular ROI and select it before pressing this button')
3512
3556
  return
@@ -3633,6 +3677,20 @@ class MainWindow(QWidget):
3633
3677
  bg.publication_font = None
3634
3678
  bg.publication_svg_stroke_width = (self.publication_svg_stroke_spinbox.value()
3635
3679
  if self.publication_svg_stroke_check.isChecked() else None)
3680
+ if not getattr(self, '_publication_parts_loaded', False):
3681
+ return # the editor is being set up: its part rows are not the panel's yet
3682
+ parts = {}
3683
+ for part, spin in getattr(self, 'publication_part_size_spinboxes', {}).items():
3684
+ style = {}
3685
+ if spin.value() > 0:
3686
+ style['pt'] = spin.value()
3687
+ font = self.publication_part_font_edits[part].text().strip()
3688
+ if font:
3689
+ style['font'] = font
3690
+ if style:
3691
+ parts[part] = style
3692
+ import json
3693
+ bg.publication_text_parts = json.dumps(parts) if parts else None
3636
3694
 
3637
3695
  def match_image_background(self):
3638
3696
  """'From image': the panel's background colour = the median colour of the