Team logos, wordmarks, headshots and colors for Python plots and tables, from the SportsDataverse logo archive.
sdvplot
resolves team abbreviations, names and provider ids across 70 leagues and picks the right era's mark for a season. Colors
and logos work with any library through palette(), team_colors(), logo_url() and logo_image(), and the
add_logos(), add_wordmarks() and add_headshots() adapters draw them on matplotlib (and seaborn), plotnine, plotly,
altair, bokeh, holoviews, great_tables, folium and pygal plots, tables and maps. sdvplot.great_tables also ports
sdvplotR's table themes, cell styling, legends and image export, and surface() draws every sportyR playing surface
(football, basketball, baseball, softball, hockey, soccer, lacrosse, tennis, volleyball and curling), in a team's colors
where the league has teams. The Python counterpart to sdvplotR.
pip install sdvplot
# or
uv add sdvplotPlotting libraries are optional extras, for example
pip install "sdvplot[mpl]". Each extra adds the libraries for one feature: [svg] lets logo_image()
rasterize SVG marks. With [mpl], [plotnine], [plotly], [altair], [bokeh], [holoviews], [tables],
[folium] or [pygal], add_logos(), add_wordmarks() and add_headshots() draw on that library's plots, tables and
maps; axis_logos() works on matplotlib, seaborn, plotnine, Plotly and Altair. [surfaces] is for surface() (ten
sports' fields, courts, rinks and sheets), [reactable] and [plottable] add column helpers (sdvplot.reactable,
sdvplot.plottable), and [itables] the surveyed table themes for itables (sdvplot.itables). sdvplot.pydeck builds
deck.gl layers (team logos, team-colored arcs, sportypy surfaces) for pydeck, and sdvplot.perspective Perspective
viewer configs in team colors and a logo column (Python 3.11+).
| Extra | Adds |
|---|---|
[mpl] |
matplotlib |
[plotnine] |
plotnine |
[plotly] |
plotly |
[altair] |
altair |
[bokeh] |
bokeh |
[holoviews] |
holoviews |
[tables] |
great_tables |
[reactable] |
reactable (reactable-py) |
[folium] |
folium |
[svg] |
resvg-py, for SVG marks |
[surfaces] |
sportypy and mplsoccer |
[plottable] |
plottable |
[itables] |
itables, for sdvplot.itables.itables_sdv_theme() |
[pygal] |
pygal |
[pydeck] |
pydeck, for sdvplot.pydeck's layers and deck() (surface_layer also needs [surfaces]) |
[perspective] |
perspective-python (with its Jupyter widget), for sdvplot.perspective; Python 3.11+ |
[all] |
every extra above ([perspective] only on Python 3.11+) |
The same colors, logos, wordmarks and headshots are on npm as
@sportsdataverse/sdvplot: the marks work with Observable
Plot, D3 and React, plus adapters for 20+ chart, map, grid and 3D libraries (Chart.js, Plotly, Vega-Lite, ECharts,
Recharts, shadcn/ui, MUI X, nivo, Victory, uPlot, Svelte and LayerChart, G2, TanStack Charts, Unovis, Lightweight
Charts, Perspective, Cytoscape, deck.gl, MapLibre and Three.js), shot charts and linked interactivity. Its siblings
@sportsdataverse/sporty (playing surfaces for ten sports) and
@sportsdataverse/sdvtables (themed tables in HTML, React,
MUI X Data Grid, AG Grid and TanStack Table) ship from the same
sdvplot-js repo. Docs for all three:
plot.sportsdataverse.org.
npm install @sportsdataverse/sdvplotTeam identity, colors and marks:
import sdvplot
sdvplot.resolve(["LV", "OAK", "Las Vegas Raiders"], "nfl") # ['13', '13', '13']
sdvplot.palette("nfl", teams=["LV", "KC"]) # {'LV': '#000000', 'KC': '#e31837'}
sdvplot.logo_url("OAK", "nfl", season=2010) # the Oakland-era mark
img = sdvplot.logo_image("LV", "nfl", size=128) # a PIL imageLogos on a plot, here the 2024 AFC playoff field in seed order:
import matplotlib.pyplot as plt
import sdvplot
seeds = ["KC", "BUF", "BAL", "HOU", "LAC", "PIT", "DEN"]
x = list(range(1, 8))
fig, ax = plt.subplots(figsize=(8, 1.6))
sdvplot.add_logos(ax, x, [0] * 7, seeds, league="nfl", height=0.7)
ax.set(xlim=(0.5, 7.5), ylim=(-1, 1), xticks=x, yticks=[], title="2024 AFC playoff seeds")Colors work in any library that takes a {value: color} mapping, for example seaborn:
sns.barplot(data=df, x="team", y="epa", hue="team", palette=sdvplot.palette("nfl", teams=df["team"])).
teams() records where each team's colors come from in color_source: nflverse, espn or openf1 when that
source publishes them, logo when they are derived from the team's archived logo because no source does, and
fallback for a placeholder that is not the team's colors (cbbplotR on the conference rows
teams(league, include_conferences=True) adds).
cfbplotR's helpers, as sdvplotR has them: clean_names() cleans team names to one display name,
teams("cfb", division="P5") lists a division (FBS, FCS, DI-DIII, or the P4, P5 and G5 tiers), aliases() is
every name and id the index resolves, team_factor() orders teams by abbreviation as a categorical, alt_colors=
swaps teams to their other color in palette(), team_colors() and the plotnine scales, and add_athlete_id() adds
ESPN athlete ids to a frame of college football player names, from cfbfastR-data's rosters.
From the gallery, each drawn by sdvplot from the logo archive:
The sdvplot documentation website has the
getting started guide, the
API reference and the
gallery, plus:
League tutorials: NFL · CFB · Spring football · NBA · WNBA · MBB · WBB · MLB · College baseball & softball · NHL · PWHL · AHL, ECHL & junior hockey · College hockey · Soccer · Cricket · Lacrosse, tennis, volleyball & curling
Cookbooks: Matplotlib logos · Colors and themes · plotnine · Interactive web · Bokeh · HoloViews · pygal · folium maps · pydeck · Perspective · Tables · plottable · reactable · reactable formatters · reactable sparklines and gauges · reactable themes and titles · Surfaces and shot charts
Recipes, leaderboards and automation: Head-to-head card · CFB conference table · NFL weekly leaderboard · Social game-day graphics · every recipe · every leaderboard
The changelog lists every release, and contributing covers development.
SDVPLOT_CACHE_DIR: cache root.SDVPLOT_CACHE_TTL: cache lifetime in days (default 7).SDVPLOT_LIVE_TESTS=1: enable the network tests.
Team names, logos, wordmarks and player headshots are trademarks or copyrighted works of their respective leagues, teams, schools and other rights holders. sdvplot is not affiliated with, sponsored by or endorsed by any of them, and using sdvplot to draw a mark grants no right to use it. The package ships no logo files: the wheel carries only an index of team names, ids and colors, and marks are fetched at runtime from the SportsDataverse logo archive, headshots from ESPN (or, for NFL gsis ids, the URLs in nflverse's player table). Use of any mark in your own work is governed by that owner's terms, and following them is your responsibility. The MIT license covers the sdvplot code only; team data belongs to its respective owners and sources.
sdvplot draws the pictures; the companion packages fetch the data.
| Package | Sport / Scope |
|---|---|
| sportsdataverse-py | SportsDataverse data for Python: NFL, CFB, NBA, WNBA, MBB, WBB, MLB, NHL, PWHL, soccer and more |
| sdvplotR | The R package this one mirrors |
| sdvplot-js | The JavaScript port: @sportsdataverse/sdvplot, @sportsdataverse/sporty and @sportsdataverse/sdvtables on npm |
| sportypy | Playing-surface plots for Python |
| nflreadpy | nflverse data loaders for Python |
| sportsdataverse-R · sportsdataverse.js | R and Node.js |
See the full ecosystem at sportsdataverse.org.
Follow the SportsDataverse on X and star this repo
A printable four-page reference for sdvplot: team identity and colours, the nine plotting adapters, the great_tables toolkit, surfaces and coordinates, in four colour themes, light and dark.
📄 Download the sdvplot cheat sheet (PDF)
Browse the other SportsDataverse cheat sheets at sportsdataverse.org/cheatsheets.
Please note that the sdvplot project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
To cite sdvplot in publications, use:
BibTeX Citation
@misc{gilani_2026_sdvplot,
author = {Gilani, Saiem},
title = {sdvplot: Team logos, wordmarks, headshots and colors for Python plots and tables},
url = {https://sdvplot.sportsdataverse.org},
year = {2026}
}This package is released under the MIT License.




