$npx skillfedfor your agent

matplotlib-scalebar

Artist for matplotlib to display a scale bar

Worth itPyPI VisualizationReleased Jan 2025148.9K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — matplotlib_scalebar-0.9.0-py3-none-any.whl
v0.9.0 · released 2025-01-17 · Python >=3.9 · 1 runtime deps: matplotlib

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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires matplotlib as a runtime dependency.
  • Low friction: single runtime dependency on matplotlib, pure Python wheel.
  • Repository shows recent activity (last commit 2025-01-17) and stable release history since 2016, though marked dormant.

License · maintenance · safety

permissive license (permissive) — Permissive license (BSD) allows use in commercial and proprietary projects with minimal restrictions.

last release 2025-01-17 (574 days) · last repo commit 2025-01-17 · 171 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 148,860 downloads/mo, #11,016 on PyPI

Verify before relying

pip install matplotlib-scalebar

import matplotlib.pyplot as plt
from matplotlib_scalebar.scalebar import ScaleBar

fig, ax = plt.subplots()
ax.imshow(image_array, cmap="gray")
scalebar = ScaleBar(0.08, "cm", length_fraction=0.25)
ax.add_artist(scalebar)
plt.show()
  • Whether the package supports all matplotlib backends equally or has known limitations with certain renderers.
  • Performance characteristics when rendering scale bars on very large images or in animation loops.
  • Full extent of customization options beyond those shown in the provided examples.
Same gist for agents: .md · .json

What it is and 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).

The scale bar integrates directly into matplotlib's artist system—you 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.

Use it for

  • 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.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

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.

Install

matplotlib-scalebar on PyPI

Before you install

Low friction: single runtime dependency on matplotlib, pure Python wheel. Repository shows recent activity (last commit 2025-01-17) and stable release history since 2016, though marked dormant.

Requires matplotlib as a runtime dependency.

License in practice

Permissive license (BSD) allows use in commercial and proprietary projects with minimal restrictions.

Quickstart

pip install matplotlib-scalebar

import matplotlib.pyplot as plt
from matplotlib_scalebar.scalebar import ScaleBar

fig, ax = plt.subplots()
ax.imshow(image_array, cmap="gray")
scalebar = ScaleBar(0.08, "cm", length_fraction=0.25)
ax.add_artist(scalebar)
plt.show()

Verify before relying

  • Whether the package supports all matplotlib backends equally or has known limitations with certain renderers.
  • Performance characteristics when rendering scale bars on very large images or in animation loops.
  • Full extent of customization options beyond those shown in the provided examples.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
matplotlib
MaintenanceDormant 574 days since the last release
Last repo commit
First released
Downloads148,860 / month, #11,016 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableFramework :: MatplotlibIntended Audience :: Science/ResearchLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.9Topic :: Scientific/Engineering :: Visualization

Evidence: matplotlib_scalebar-0.9.0-py3-none-any.whl

Tags

Capabilities
matplotlib scale barimage calibration barmicron bar matplotlibpixel size visualizationscientific image annotation
Topics
scientific-visualizationimage-annotation
PyPI keywords
barmatplotlibmicronscale

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “matplotlib scale bar”

  • matplotlib-scalebarAdds a matplotlib artist that renders a calibrated scale bar on…
  • termplotlibtermplotlib renders line plots, histograms, and bar charts directly…
  • alchemlybalchemlyb parses molecular dynamics simulation output, extracts…

Give your agent the search over MCP, or paste the wish link into any chat.

More Visualization packages

matplotlib Worth it
PyPI · Visualization · released Jul 2026

matplotlib creates static, animated, and interactive visualizations in Python, producing publication-quality figures in multiple formats for scripts, shells, web servers, and graphical interfaces.

Install it if you need to visualize data, generate publication-quality figures, or embed plots in applications.

permissive licensecompiled wheel · 3.11+
232.4Mdownloads / mo
contourpy Worth it
PyPI · Information Analysis · released Jul 2025

ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.

BSD-3-Clausecompiled wheel · 3.11+
191.2Mdownloads / mo
plotly Worth it
PyPI · Visualization · released Jul 2026

Plotly is an interactive, browser-based graphing library that creates charts and visualizations from Python, rendering them as HTML that can be viewed in Jupyter notebooks, standalone files, or web applications.

MITpure Python · 3.8+
74.2Mdownloads / mo
graphviz Worth it
PyPI · Visualization · released Jun 2025

Generates DOT language source code for graph structures and renders them using the Graphviz graph drawing software installed on your system.

Install it if you need to generate or render graphs from Python.

MITpure Python · 3.9+
56.8Mdownloads / mo
streamlit Worth it
PyPI · Application Frameworks · released Aug 2026

Streamlit transforms Python scripts into interactive web applications with minimal code, enabling rapid development of data dashboards, reports, and chat interfaces without requiring web development expertise.

Apache-2.0pure Python · 3.10+
29.7Mdownloads / mo
leather Unrated
PyPI · Python Modules · released Dec 2025

Leather is a lightweight Python charting library for quick, no-frills data visualization. It generates charts without requiring perfect styling or extensive configuration.

MITpure Pythonaging
28.7Mdownloads / mo

See also koreanize-matplotlib · progressbar33 · lovelyplots · palettable · cmcrameri · hist · cmap · japanize-matplotlib