Skip to main content

A lightweight, zero-effort wrapper around Matplotlib and Pandas for quick data visualization.

Project description

Zez: The Zero-Effort Visualization Kit for Python

Zez (pronounced "Zez") is a lightweight, zero-effort wrapper around Matplotlib and Pandas, designed to make generating common, high-quality data visualizations quick and painless. If you need a standard Bar, Pie, Line, Scatter, or Histogram instantly, Zez handles all the setup, labeling, and basic formatting for you.


🚀 Key Features

  • Zero Boilerplate: Quickly generate common charts with minimal code.
  • Built on Standards: Leveraging the power and flexibility of Matplotlib.
  • Clean Defaults: Provides sensible defaults for titles, labels, colors, and annotations.
  • Easy Output: Built-in helper to effortlessly save charts to disk or display them.

💾 Installation

Since this is a custom package, you would typically install it via a Git repository or a private index if it's not on PyPI yet.

Prerequisites

You need Python 3.6+ and the core libraries:

  • pandas
  • matplotlib
  • numpy

Via PyPI (Once published)

pip install zez

How to Import

Use this to import Zez on your code:

import zez

📚 Usage Examples

import zez

chart = zez.chart

chart.Bar(
    chart_title='Project Status: Q4 Completion Rate',
    alignment='horizontal',
    categories_in_order=['Project Alpha', 'Project Beta', 'Project Gamma'],
    amounts_in_order=[95, 80, 55],
    category_label='Project Name',
    amount_label='Completion (%)',
    colors_in_order=['green', 'blue', 'orange']
)

# 2. Pie Chart Example: Budget Allocation
# ----------------------------------------------------------------------
chart.Pie(
    chart_title='Department Budget Allocation',
    amounts_in_order=[45000, 30000, 15000, 10000],
    categories_in_order=['Marketing', 'Development', 'Admin', 'Support'],
    colors_in_order=['#1f77b4', '#ff7f0e', '#2ca02c', '#d62728'],
    split=[0, 0.1, 0, 0], # Explode the Development slice
    save_as='budget_pie.png',
    show=False
)

# 3. Line Chart Example: Stock Price Trend (Multiple Lines)
# ----------------------------------------------------------------------
x_days = list(range(1, 11))
stock_a = [50, 52, 51, 55, 60, 58, 62, 65, 64, 70]
stock_b = [40, 41, 45, 43, 48, 50, 53, 52, 55, 59]

line_data = [
    {'y_data': stock_a, 'line_color': 'green', 'marker_style': 'o'},
    {'y_data': stock_b, 'line_color': 'red', 'marker_style': 'x'}
]

chart.Line(
    chart_title='Stock Price Comparison Over 10 Days',
    x_data=x_days,
    y_data_sets=line_data,
    data_labels=['Stock A', 'Stock B'],
    x_label='Trading Day',
    y_label='Price ($)',
)

# 4. Scatter Plot Example: Correlation
# ----------------------------------------------------------------------
x_hours = [1, 2, 3, 4, 5, 6, 7, 8]
y_score = [55, 60, 68, 75, 80, 85, 90, 95]

chart.Scatter(
    chart_title='Study Hours vs. Exam Score',
    x_data=x_hours,
    y_data=y_score,
    x_label='Hours Studied',
    y_label='Exam Score',
    marker_color='purple',
    marker_style='D', # Diamond marker
    marker_size=150,
    save_as='score_correlation.jpg'
)

print("\n--- ZEZ Demonstrations Finished ---")

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

zez-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

zez-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zez-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for zez-0.1.0.tar.gz
Algorithm Hash digest
SHA256 de8c299bfc5027cf282b1bd0ad2e79c648bbb2933845b591f918133e9e9761b3
MD5 45dc5f8015dc08a52cef18d3c2c96b34
BLAKE2b-256 36d9f3a8a8a6964048271d0288984397588b4fa3357a1de6db6387d2c84fef69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zez-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for zez-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e058df3f54b2b333f18594638fefbc2cc0eca07b8c9741705bcc2a4ab00c0be8
MD5 75002add416214c665a6f150ebe24e0a
BLAKE2b-256 392703cc216bc1a1d9cf82ac315d5756037f8815f32e1e716d27ce14e249bbae

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