Skip to main content

A tiny, themed data-visualization library with a warm boutique aesthetic, built on matplotlib.

Project description

urbn_viz

A tiny, themed data-visualization library built on matplotlib. A handful of guessable functions that draw charts in a warm boutique palette — an original interpretation of the Pantone 2025 Color-of-the-Year mood (Mocha Mousse, olive, lilac, burnt orange, cranberry on a greige canvas). Every chart follows the Evergreen & Emery checklist, using one vivid action color with the supporting hues softened rather than grayed out.

Install

pip install urbn-viz-yourhandle

The import name is urbn_viz; the pip name carries a handle to stay unique.

Quick start

import pandas as pd
import urbn_viz as uv

df = pd.read_csv("fashion_boutique_dataset.csv")

ax = uv.bar(df, x="category", y="current_price", agg="sum",
            colorful=True, highlight="Outerwear", value_fmt="${:,.0f}",
            title="Outerwear drives the most revenue, ~$49K",
            subtitle="Total current_price by category")
ax.figure.savefig("revenue.png", bbox_inches="tight")

Every function takes a DataFrame plus column names and never mutates it. Single-axes functions return the matplotlib Axes; faceted functions return the Figure.

Functions

Function Draws
bar Ordered bars; colorful=True gives each bar its own hue with the highlight bar vivid and the rest muted
line Single ordered line, final point labeled
hist Distribution of one column with the mean marked
scatter x vs y, optionally split/emphasized by a category
facet_hist Small-multiple histograms, one panel per category
dumbbell Two dots per category (e.g. original vs selling price)

Helpers: apply_theme(), mute(hex), category_colors(labels), PALETTE, PALETTE_CYCLE.

The palette

Role / hue Hex
Canvas #EAE6DD
Ink #2C2824
Mocha #A47864
Apple #A79555
Lilac #DCCEDF
Burnt orange #D57239
Cranberry (default action) #712E37
Plum / Camel (bridge tones) #8E5E6E / #C9A66B

mute() keeps a hue but drops its saturation and lifts its lightness, so the non-action elements stay softly colored instead of turning gray.

License

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

urbn_viz_chloejbuhl-0.1.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

urbn_viz_chloejbuhl-0.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file urbn_viz_chloejbuhl-0.1.0.tar.gz.

File metadata

  • Download URL: urbn_viz_chloejbuhl-0.1.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.9

File hashes

Hashes for urbn_viz_chloejbuhl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 34b5353ca54e8e5717eabd546f459642b91409a705e6ffbb4c7a21444ee3ce61
MD5 dcc92185f905cf97f6ebc73ff8e72a37
BLAKE2b-256 6ebb7e62303a5fa063c95fefc380705aba4e3c3c95eaa6220453c8bd141489f1

See more details on using hashes here.

File details

Details for the file urbn_viz_chloejbuhl-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for urbn_viz_chloejbuhl-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af0d87ed5970adcd6d2d0805afd3feb63bfb6148dd222f60f2c71acb8bd5c294
MD5 a401771c2547db67f1fdfe61863c3d71
BLAKE2b-256 8cae910b1ec409ea73fbbad9c2deff0a3b007bcd9153ee95330b6d8b82334484

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page