Skip to main content

A simple, opinionated wrapper for Altair visualizations.

Project description

ezio (just an altair wrapper)

I will dedicate my life to make people stop using plotly.

-- Benjamin Franklin

The idea behind this package is quite simple: create a wrapper of altair similar to what plotly-express did for plotly.

My hope is to remove friction while creating simple plots. Big focus on interaction between subplots that I think is the killing feature of altair.

The motto of this packae is modularity. No fuctions with 1 billion parameters (I'm looking at you plotly) but rather multiple methods to concatenate at will.

Demo

In this marimo you will find few examples.

Here a tiny demo:

import polars as pl
import ezioaltair as ez
import numpy as np
from datetime import date

N = 100
data = pl.DataFrame({
    'time': pl.date_range(start=date(2025, 1, 1), 
                          end=date(2025, 1, 1) + pl.duration(days=N-1), 
                          interval='1d',
                         eager=True),
    'var1': (np.random.randn(N) + np.linspace(0, 10, N)).tolist(),
    'var2': (np.random.randn(N)*0.2 + np.sin(np.linspace(0, 10, N))).tolist(),
})

(
    ez.LineChart(data=data, 
                    x='time', 
                    y=['var1', 'var2'],
                   colors=['red', 'black'], ytitle='y axis title', xtitle='x axis')
    .add_view(y=['var1'])
    .add_scatter(x='var1', y='var2', highlight_color='green', color='blue')
    .add_title('This is a title')
    .render(height=300, width=500)
)

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

ezioaltair-0.1.2.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

ezioaltair-0.1.2-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file ezioaltair-0.1.2.tar.gz.

File metadata

  • Download URL: ezioaltair-0.1.2.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for ezioaltair-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f46660f73404ef3197a361144b45c8f7a0236bd1328cc56554e3b1387c076601
MD5 b27924c779e94347f3d4429f6bfdc4c7
BLAKE2b-256 8dce5043e55499216de87ab839ab6e5a6496d2cd2ff91f509589d45753f059e8

See more details on using hashes here.

File details

Details for the file ezioaltair-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ezioaltair-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for ezioaltair-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d86376b2494e45da9c335d683d164eaf2f5a37c3ffe03a4f6b2cfe94f6004494
MD5 54cdc6503282f2663bd37f84dc36b3ec
BLAKE2b-256 90729a3c6b317a8b5e976b780ffc82b550ae02be89b03342d4940d50352b0dc7

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