{"categories":[{"label":"Visualization","url":"https://skillfed.io/packages/category/scientific-engineering-visualization"}],"enrichment":{"capability":"Adds a matplotlib artist that renders a calibrated scale bar on images, with customizable size, position, units, and appearance.","skillfed_tags":["scientific-visualization","image-annotation"],"use_cases":["Annotate microscopy images with a calibrated scale bar showing micrometers or nanometers.","Display geospatial plots with distance references using UTM or lat/lon coordinate systems.","Save publication-quality scientific figures with scale information preserved at original resolution.","Add dimension references to satellite or aerial imagery without modifying the underlying data.","Customize scale bar appearance to match journal or presentation requirements."],"what_it_does":"matplotlib-scalebar extends matplotlib with a new artist class that overlays a scale bar on plots, primarily for displaying calibrated images via imshow(). You specify the pixel size (dx) and its units, and the package automatically renders an appropriately-scaled bar with optional labels, customizable positioning, and support for multiple unit systems (SI length, imperial, astronomical, angle, pixel-based, and reciprocal dimensions).\n\nThe scale bar integrates directly into matplotlib's artist system\u2014you create a ScaleBar object, add it to an axes via add_artist(), and configure appearance through constructor arguments or matplotlibrc settings. It's designed for scientific imaging workflows where pixel dimensions are known and need visual representation on output plots or saved figures.","worth_installing":"Yes. Low install friction, no security issues, permissive license, and recent maintenance make it a safe choice. Install if you regularly plot calibrated images and need a standard way to display scale information; skip if you never use imshow() or prefer manual annotation."},"id":"matplotlib-scalebar","links":{"html":"https://skillfed.io/packages/matplotlib-scalebar","md":"https://skillfed.io/packages/matplotlib-scalebar.md","pypi":"https://pypi.org/project/matplotlib-scalebar/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2025-01-17","license_spdx":null,"license_treatment":"permissive","name":"matplotlib-scalebar","python_support":"supports_current","summary":"Artist for matplotlib to display a scale bar"},"popularity":{"monthly_downloads":148860,"position":11016,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.9.0"}
