anyplotlib 0.7.1__tar.gz → 0.7.2__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.
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/CHANGELOG.rst +18 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/PKG-INFO +1 -1
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/plot2d/_plot2d.py +64 -5
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot2d/test_imshow.py +54 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/_root/index.html +3 -3
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/_root/switcher.json +5 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/conf.py +1 -1
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/pyproject.toml +1 -1
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/.github/workflows/ci.yml +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/.github/workflows/docs.yml +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/.github/workflows/prepare_release.yml +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/.github/workflows/release.yml +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/.github/workflows/tests.yml +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/.gitignore +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/AGENTS.md +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Benchmarks/README.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Benchmarks/plot_benchmark_comparison.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Interactive/README.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Interactive/plot_3d_spectral_viewer.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Interactive/plot_eels_explorer.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Interactive/plot_figure_annotations.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Interactive/plot_interactive_fft.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Interactive/plot_interactive_fitting.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Interactive/plot_ipf_density_map.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Interactive/plot_ipf_explorer.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Interactive/plot_key_bindings.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Interactive/plot_particle_picker.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Interactive/plot_point_widget.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Interactive/plot_segment_by_contrast.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Interactive/plot_segment_by_contrast_advanced.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Interactive/plot_spectra_roi_inspector.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Interactive/plot_star_globe_explorer.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Interactive/plot_threshold_explorer.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Interactive/plot_voxel_grain_explorer.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Markers/README.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Markers/plot_arrows.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Markers/plot_circles.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Markers/plot_ellipses.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Markers/plot_horizontal_lines.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Markers/plot_line_segments.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Markers/plot_points.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Markers/plot_polygons.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Markers/plot_rectangles.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Markers/plot_squares.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Markers/plot_texts.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Markers/plot_transform_markers.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Markers/plot_vertical_lines.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/PlotTypes/README.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/PlotTypes/plot_3d.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/PlotTypes/plot_3d_texture.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/PlotTypes/plot_bar.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/PlotTypes/plot_gpu_voxels.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/PlotTypes/plot_gridspec_custom.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/PlotTypes/plot_image2d.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/PlotTypes/plot_inset.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/PlotTypes/plot_key_overlays.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/PlotTypes/plot_label_formatting.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/PlotTypes/plot_line_styles.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/PlotTypes/plot_pcolormesh.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/PlotTypes/plot_spectra1d.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/PlotTypes/plot_step_and_log.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/PlotTypes/plot_tile_backend.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/PlotTypes/plot_twinx.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/README.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Widgets/README.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Widgets/plot_widget1d_hline.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Widgets/plot_widget1d_point.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Widgets/plot_widget1d_range.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Widgets/plot_widget1d_vline.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Widgets/plot_widget2d_annular.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Widgets/plot_widget2d_arrow.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Widgets/plot_widget2d_circle.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Widgets/plot_widget2d_crosshair.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Widgets/plot_widget2d_label.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Widgets/plot_widget2d_polygon.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Widgets/plot_widget2d_rectangle.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Widgets/plot_widget3d_plane.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/LICENSE +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/Makefile +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/README.md +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/FIGURE_ESM.md +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/_base_plot.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/_binary_frame.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/_electron.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/_repr_utils.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/_utils.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/axes/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/axes/_axes.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/axes/_inset_axes.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/callbacks.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/conftest.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/embed.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/figure/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/figure/_figure.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/figure/_gridspec.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/figure/_subplots.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/figure_esm.js +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/keys.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/markers.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/plot1d/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/plot1d/_plot1d.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/plot1d/_plotbar.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/plot2d/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/plot2d/_layer.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/plot2d/_plotmesh.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/plot2d/_tile_backend.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/plot3d/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/plot3d/_plot3d.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/plotxy/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/plotxy/_plotxy.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/sphinx_anywidget/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/sphinx_anywidget/_directive.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/sphinx_anywidget/_repr_utils.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/sphinx_anywidget/_scraper.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/sphinx_anywidget/_wheel_builder.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/sphinx_anywidget/static/anywidget_bridge.js +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/sphinx_anywidget/static/anywidget_overlay.css +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/sphinx_anywidget/tests/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/sphinx_anywidget/tests/conftest.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/sphinx_anywidget/tests/test_directive.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/sphinx_anywidget/tests/test_init.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/sphinx_anywidget/tests/test_repr_utils.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/sphinx_anywidget/tests/test_scraper.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/sphinx_anywidget/tests/test_wheel_builder.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/_gpu_clim_check.cjs +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/_png_utils.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/bar_basic.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/gridspec_3col_equal_spectra.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/gridspec_asymmetric_width_ratios.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/gridspec_height_ratio_image_histogram.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/gridspec_image_two_spectra.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/gridspec_side_by_side_1d.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/gridspec_spanning_top_two_bottom.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/imshow_axis_off.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/imshow_checkerboard.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/imshow_gradient.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/imshow_labels.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/imshow_viridis.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/inset_1d.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/inset_maximized.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/inset_minimized.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/inset_normal_2d.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/inset_stacked.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/inset_stacked_one_minimized.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/pcolormesh_uniform.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/plot1d_all_linestyles.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/plot1d_alpha.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/plot1d_axis_off.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/plot1d_dashed.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/plot1d_marker_symbols.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/plot1d_markers.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/plot1d_multi.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/plot1d_sine.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/plot1d_title.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/plot1d_twinx.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/plot3d_surface.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/subplots_2x1.png +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/conftest.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_benchmarks/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_benchmarks/baselines.json +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_benchmarks/benchmarks/baselines.json +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_benchmarks/test_benchmarks.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_benchmarks/test_benchmarks_py.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_documentation/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_documentation/test_bridge.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_documentation/test_push_hook.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_documentation/test_scraper.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_electron/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_electron/test_binary_frame.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_embed/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_embed/test_embed_api.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_embed/test_embed_mount.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_embed/test_export_pixel_tokens.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_embed/test_export_png.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_embed/test_export_widget_sync.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_examples/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_examples/test_interactive_examples.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/_event_test_utils.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_blit_audit.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_callbacks_playwright.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_callbacks_unit.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_edit_chrome.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_edit_chrome_playwright.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_event_pause_hold.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_event_plots.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_event_settled.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_events_regression.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_orbit_direction.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_pointer_down_1d.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_range_orientation_snap.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_star_globe_linking.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_tile_parity_playwright.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_title.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_touch.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_widget_brush.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_widget_max_extent.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_widget_set_notify.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_widgets.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_interactive/test_widgets_line_2d.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_keys/test_keys.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_labels/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_labels/test_label_api.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_labels/test_label_rendering.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_labels/test_no_clipping.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_labels/test_ylabel_clearance.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_layouts/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_layouts/test_batch.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_layouts/test_coord_conversion.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_layouts/test_geom_channel.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_layouts/test_gridspec.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_layouts/test_inset.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_layouts/test_inset_callout.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_layouts/test_interaction.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_layouts/test_visual.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_markers/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_markers/test_marker_transforms.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_markers/test_markers.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_markers/test_per_marker_colors.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_markers/test_size_units.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot1d/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot1d/test_line_none_rendering.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot1d/test_plot1d.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot1d/test_plotbar.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot2d/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot2d/test_colorbar_gap_scalebar.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot2d/test_detail_tile.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot2d/test_first_paint_race.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot2d/test_gpu_image.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot2d/test_gpu_parity_playwright.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot2d/test_imshow_rgb.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot2d/test_layers.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot2d/test_layers_playwright.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot2d/test_pcolormesh.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot2d/test_plot2d_api.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot2d/test_rapid_frame_update.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot2d/test_tile_backend.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot2d/test_tile_diagnostics.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot2d/test_tiled_imshow.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot2d/test_zoom_view_write.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot3d/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot3d/test_colors_highlight.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot3d/test_gpu_depth.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot3d/test_gpu_fallback.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot3d/test_gpu_hidden_reveal.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot3d/test_plot3d.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot3d/test_texture.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plot3d/test_voxels_planes.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/test_plotxy/test_plotxy.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/widgets/__init__.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/widgets/_base.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/widgets/_widgets1d.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/widgets/_widgets2d.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/widgets/_widgets3d.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/_sg_html_scraper.py +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/_static/anyplotlib.svg +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/_static/custom.css +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/_static/pyodide_bridge.js +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/_templates/autosummary/class.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/api/callbacks.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/api/figure.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/api/figure_plots.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/api/index.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/api/keys.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/api/markers.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/api/widgets.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/benchmarking.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/dev/index.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/embedding.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/events.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/getting_started.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/docs/index.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/make.bat +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/upcoming_changes/.gitkeep +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/upcoming_changes/README.rst +0 -0
- {anyplotlib-0.7.1 → anyplotlib-0.7.2}/uv.lock +0 -0
|
@@ -10,6 +10,24 @@ Fragment files in ``upcoming_changes/`` are assembled into this file by
|
|
|
10
10
|
|
|
11
11
|
.. towncrier release notes start
|
|
12
12
|
|
|
13
|
+
0.7.2 (2026-08-03)
|
|
14
|
+
==================
|
|
15
|
+
|
|
16
|
+
Bug Fixes
|
|
17
|
+
---------
|
|
18
|
+
|
|
19
|
+
- ``Plot2D.set_overlay_mask`` now works in TILE mode. The renderer sizes the mask
|
|
20
|
+
against ``base_width || image_width`` -- the tile overview grid -- but tile mode
|
|
21
|
+
sets ``image_width`` to the full native frame, so the shape check accepted only
|
|
22
|
+
the one shape the renderer silently discards (``maskCache = null``, no error) and
|
|
23
|
+
rejected the one that actually renders. On a 4096x4096 tiled plot neither a
|
|
24
|
+
1024x1024 nor a 4096x4096 mask could be drawn: the first raised ``ValueError``,
|
|
25
|
+
the second encoded 22.4 MB the renderer dropped. Both shapes are now accepted and
|
|
26
|
+
a full-resolution mask is reduced to the overview grid with a block ANY -- never
|
|
27
|
+
a subsample, so an object a few pixels across cannot vanish into a skipped
|
|
28
|
+
sample.
|
|
29
|
+
|
|
30
|
+
|
|
13
31
|
0.7.1 (2026-08-02)
|
|
14
32
|
==================
|
|
15
33
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: anyplotlib
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.2
|
|
4
4
|
Summary: A plotting library using python, javascript and anywidget for performant in browser plotting.
|
|
5
5
|
Project-URL: Homepage, https://cssfrancis.github.io/anyplotlib/
|
|
6
6
|
Project-URL: Repository, https://github.com/CSSFrancis/anyplotlib
|
|
@@ -45,6 +45,40 @@ def _binary_transport_active() -> bool:
|
|
|
45
45
|
return os.environ.get("APL_BINARY_TRANSPORT") == "1"
|
|
46
46
|
|
|
47
47
|
|
|
48
|
+
def _reduce_mask_any(mask, out_h: int, out_w: int):
|
|
49
|
+
"""Reduce a boolean *mask* to ``(out_h, out_w)`` with a block ANY.
|
|
50
|
+
|
|
51
|
+
A block of the source is True in the output if ANY of its pixels is. For a
|
|
52
|
+
mask that is the only defensible reduction: it marks *where objects are*,
|
|
53
|
+
and an object smaller than one output block must not vanish because the
|
|
54
|
+
sampled pixel happened to miss it.
|
|
55
|
+
|
|
56
|
+
The tail rows/columns that do not divide evenly are folded into the last
|
|
57
|
+
block rather than cropped, so an object at the right or bottom edge is kept.
|
|
58
|
+
"""
|
|
59
|
+
import numpy as _np
|
|
60
|
+
|
|
61
|
+
src_h, src_w = mask.shape
|
|
62
|
+
if (src_h, src_w) == (out_h, out_w):
|
|
63
|
+
return mask
|
|
64
|
+
ys = max(1, src_h // out_h)
|
|
65
|
+
xs = max(1, src_w // out_w)
|
|
66
|
+
keep_h, keep_w = (src_h // ys) * ys, (src_w // xs) * xs
|
|
67
|
+
small = mask[:keep_h, :keep_w].reshape(
|
|
68
|
+
keep_h // ys, ys, keep_w // xs, xs).any(axis=(1, 3))
|
|
69
|
+
out = _np.zeros((out_h, out_w), bool)
|
|
70
|
+
sh, sw = min(out_h, small.shape[0]), min(out_w, small.shape[1])
|
|
71
|
+
out[:sh, :sw] = small[:sh, :sw]
|
|
72
|
+
# Fold any cropped tail into the final block so edge objects survive.
|
|
73
|
+
if keep_h < src_h and sh > 0:
|
|
74
|
+
out[sh - 1, :sw] |= mask[keep_h:, :keep_w].reshape(
|
|
75
|
+
1, src_h - keep_h, keep_w // xs, xs).any(axis=(1, 3))[0, :sw]
|
|
76
|
+
if keep_w < src_w and sw > 0:
|
|
77
|
+
out[:sh, sw - 1] |= mask[:keep_h, keep_w:].reshape(
|
|
78
|
+
keep_h // ys, ys, 1, src_w - keep_w).any(axis=(1, 3))[:sh, 0]
|
|
79
|
+
return out
|
|
80
|
+
|
|
81
|
+
|
|
48
82
|
class Plot2D(_BasePlot, _PanelMixin, _MarkerMixin):
|
|
49
83
|
"""2-D image plot panel.
|
|
50
84
|
|
|
@@ -1115,6 +1149,13 @@ class Plot2D(_BasePlot, _PanelMixin, _MarkerMixin):
|
|
|
1115
1149
|
Boolean array aligned to the image data. ``True`` / non-zero
|
|
1116
1150
|
pixels are filled with *color* at transparency *alpha*.
|
|
1117
1151
|
Pass ``None`` to clear the overlay.
|
|
1152
|
+
|
|
1153
|
+
In TILE mode pass the mask at the FULL image resolution: the
|
|
1154
|
+
renderer composites the mask against the OVERVIEW texture, so it
|
|
1155
|
+
is reduced to the base grid here. A mask already at the base grid
|
|
1156
|
+
is accepted unchanged. (Both are accepted because neither is
|
|
1157
|
+
wrong; what was wrong was accepting only the full-resolution one
|
|
1158
|
+
and then shipping bytes the renderer silently discards.)
|
|
1118
1159
|
color : str, optional
|
|
1119
1160
|
CSS hex colour for the overlay, e.g. ``"#ff4444"``. Default red.
|
|
1120
1161
|
Must be in ``#RRGGBB`` format.
|
|
@@ -1137,14 +1178,32 @@ class Plot2D(_BasePlot, _PanelMixin, _MarkerMixin):
|
|
|
1137
1178
|
self._state["overlay_mask_alpha"] = alpha
|
|
1138
1179
|
else:
|
|
1139
1180
|
arr = np.asarray(mask)
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1181
|
+
ih, iw = self._state["image_height"], self._state["image_width"]
|
|
1182
|
+
bh = int(self._state.get("base_height") or 0)
|
|
1183
|
+
bw = int(self._state.get("base_width") or 0)
|
|
1184
|
+
# THE TILE-MODE SHAPE TRAP. The renderer sizes the mask against
|
|
1185
|
+
# `base_width || image_width` -- the OVERVIEW grid -- but tile mode
|
|
1186
|
+
# sets image_width/height to the FULL native frame. So validating
|
|
1187
|
+
# only against the image shape rejected the one shape that renders
|
|
1188
|
+
# and accepted the one the renderer drops on the floor
|
|
1189
|
+
# (`mBytes.length===iw*ih` else `maskCache=null`, silently). Both
|
|
1190
|
+
# shapes are legal here; the overview is what actually ships.
|
|
1191
|
+
tiled = bw > 0 and bh > 0 and (bh, bw) != (ih, iw)
|
|
1192
|
+
if arr.shape != (ih, iw) and not (tiled and arr.shape == (bh, bw)):
|
|
1193
|
+
want = f"({ih} x {iw})"
|
|
1194
|
+
if tiled:
|
|
1195
|
+
want += f" or the tile overview ({bh} x {bw})"
|
|
1196
|
+
raise ValueError(f"mask shape {arr.shape} does not match image {want}")
|
|
1145
1197
|
# For origin='lower' the image data was flipped; flip mask to match.
|
|
1146
1198
|
if self._origin == "lower":
|
|
1147
1199
|
arr = np.flipud(arr)
|
|
1200
|
+
if tiled and arr.shape == (ih, iw):
|
|
1201
|
+
# Block ANY, never a subsample: a mask marks objects that are
|
|
1202
|
+
# often only a few pixels across, and striding a 4096² mask
|
|
1203
|
+
# down to 1024² drops three quarters of them at random. ANY
|
|
1204
|
+
# keeps every object visible at the cost of fattening it, which
|
|
1205
|
+
# is the right trade for an overlay you are looking at.
|
|
1206
|
+
arr = _reduce_mask_any(np.asarray(arr, dtype=bool), bh, bw)
|
|
1148
1207
|
# Convert to uint8: True/non-zero → 255, False/zero → 0
|
|
1149
1208
|
u8 = (np.asarray(arr, dtype=bool).view(np.uint8) * 255).astype(np.uint8)
|
|
1150
1209
|
self._state["overlay_mask_b64"] = base64.b64encode(u8.tobytes()).decode("ascii")
|
|
@@ -575,6 +575,60 @@ class TestImshowOverlayMask:
|
|
|
575
575
|
with pytest.raises(ValueError, match="mask shape"):
|
|
576
576
|
plot.set_overlay_mask(bad_mask)
|
|
577
577
|
|
|
578
|
+
def test_overlay_mask_in_TILE_mode_ships_the_overview_size(self):
|
|
579
|
+
"""The mask must be sized for what the RENDERER checks.
|
|
580
|
+
|
|
581
|
+
The renderer sizes the mask against ``base_width || image_width`` — the
|
|
582
|
+
OVERVIEW grid — and on a mismatch sets ``maskCache=null``: no error, no
|
|
583
|
+
overlay, nothing in the log. Tile mode sets ``image_width`` to the FULL
|
|
584
|
+
native frame, so validating a mask only against the image shape both
|
|
585
|
+
rejected the one shape that renders and accepted the one the renderer
|
|
586
|
+
drops. A caller that did the reduction itself got a ValueError; one that
|
|
587
|
+
did not got 22 MB of bytes silently discarded.
|
|
588
|
+
|
|
589
|
+
Either shape in, overview-sized bytes out.
|
|
590
|
+
"""
|
|
591
|
+
import base64
|
|
592
|
+
|
|
593
|
+
plot = apl.subplots(1, 1)[1].imshow(
|
|
594
|
+
np.zeros((2048, 2048), np.uint8), tile="auto")
|
|
595
|
+
st = plot._state
|
|
596
|
+
bw, bh = st.get("base_width"), st.get("base_height")
|
|
597
|
+
assert bw and bh and (bw, bh) != (st["image_width"], st["image_height"]), \
|
|
598
|
+
"this test needs a genuinely tiled plot with a smaller base grid"
|
|
599
|
+
|
|
600
|
+
for shape in [(st["image_height"], st["image_width"]), (bh, bw)]:
|
|
601
|
+
mask = np.zeros(shape, bool)
|
|
602
|
+
mask[::5, ::5] = True
|
|
603
|
+
plot.set_overlay_mask(mask)
|
|
604
|
+
sent = base64.b64decode(st["overlay_mask_b64"])
|
|
605
|
+
assert len(sent) == bw * bh, (
|
|
606
|
+
f"a {shape} mask shipped {len(sent)} bytes; the renderer "
|
|
607
|
+
f"expects {bw * bh} and drops anything else silently")
|
|
608
|
+
assert any(sent), "the reduction emptied the mask"
|
|
609
|
+
|
|
610
|
+
def test_overlay_mask_reduction_is_block_ANY_not_a_subsample(self):
|
|
611
|
+
"""A single-pixel object 4 blocks in must survive the reduction.
|
|
612
|
+
|
|
613
|
+
Objects here are often a few pixels across; a strided sample of a 2048²
|
|
614
|
+
mask at 512² keeps one pixel in sixteen and drops them at random.
|
|
615
|
+
"""
|
|
616
|
+
import base64
|
|
617
|
+
|
|
618
|
+
plot = apl.subplots(1, 1)[1].imshow(
|
|
619
|
+
np.zeros((2048, 2048), np.uint8), tile="auto")
|
|
620
|
+
st = plot._state
|
|
621
|
+
bw, bh = st["base_width"], st["base_height"]
|
|
622
|
+
mask = np.zeros((st["image_height"], st["image_width"]), bool)
|
|
623
|
+
# Deliberately NOT on a block boundary — a subsample would miss it.
|
|
624
|
+
mask[537, 921] = True
|
|
625
|
+
plot.set_overlay_mask(mask)
|
|
626
|
+
sent = np.frombuffer(base64.b64decode(st["overlay_mask_b64"]), np.uint8)
|
|
627
|
+
# Bytes are 0/255, so COUNT the lit ones rather than summing them.
|
|
628
|
+
assert np.count_nonzero(sent.reshape(bh, bw)) == 1, (
|
|
629
|
+
"the single lit pixel did not survive the reduction — this is a "
|
|
630
|
+
"subsample, not a block ANY")
|
|
631
|
+
|
|
578
632
|
def test_set_overlay_mask_alpha_boundary(self):
|
|
579
633
|
plot = _img(n=16)
|
|
580
634
|
mask = np.zeros((16, 16), dtype=bool)
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<title>anyplotlib – redirecting…</title>
|
|
6
6
|
<!-- Redirect to the latest dev docs. -->
|
|
7
|
-
<meta http-equiv="refresh" content="0; url=v0.7.
|
|
8
|
-
<link rel="canonical" href="v0.7.
|
|
7
|
+
<meta http-equiv="refresh" content="0; url=v0.7.2/" />
|
|
8
|
+
<link rel="canonical" href="v0.7.2/" />
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<p>
|
|
12
|
-
Redirecting to <a href="v0.7.
|
|
12
|
+
Redirecting to <a href="v0.7.2/">v0.7.2 documentation</a>…
|
|
13
13
|
</p>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
"version": "dev",
|
|
5
5
|
"url": "https://cssfrancis.github.io/anyplotlib/dev/"
|
|
6
6
|
},
|
|
7
|
+
{
|
|
8
|
+
"name": "v0.7.2 (stable)",
|
|
9
|
+
"version": "v0.7.2",
|
|
10
|
+
"url": "https://cssfrancis.github.io/anyplotlib/v0.7.2/"
|
|
11
|
+
},
|
|
7
12
|
{
|
|
8
13
|
"name": "v0.7.1 (stable)",
|
|
9
14
|
"version": "v0.7.1",
|
|
@@ -17,7 +17,7 @@ from _sg_html_scraper import ViewerScraper # noqa: E402
|
|
|
17
17
|
project = "anyplotlib"
|
|
18
18
|
copyright = "2026, anyplotlib contributors"
|
|
19
19
|
author = "anyplotlib contributors"
|
|
20
|
-
release = "0.7.
|
|
20
|
+
release = "0.7.2"
|
|
21
21
|
|
|
22
22
|
# When built in CI the workflow sets DOCS_VERSION to the tag name (e.g.
|
|
23
23
|
# "v0.1.0") or "dev". Fall back to "dev" for local builds.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{anyplotlib-0.7.1 → anyplotlib-0.7.2}/Examples/Interactive/plot_segment_by_contrast_advanced.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/sphinx_anywidget/static/anywidget_bridge.js
RENAMED
|
File without changes
|
{anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/sphinx_anywidget/static/anywidget_overlay.css
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/sphinx_anywidget/tests/test_wheel_builder.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/gridspec_3col_equal_spectra.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/gridspec_image_two_spectra.png
RENAMED
|
File without changes
|
{anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/gridspec_side_by_side_1d.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{anyplotlib-0.7.1 → anyplotlib-0.7.2}/anyplotlib/tests/baselines/inset_stacked_one_minimized.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|