Skip to main content

A simple, opinionated wrapper for Altair visualizations.

Project description

Ezio (an altair wrapper)

I've decided to dedicate my life to make people stop using plotly.

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

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.1.tar.gz (9.6 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.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ezioaltair-0.1.1.tar.gz
  • Upload date:
  • Size: 9.6 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.1.tar.gz
Algorithm Hash digest
SHA256 a9d354a1ed80cbfb8698e021a4c1946f281d81b94b8138b0d829600c70639f88
MD5 b80d95fb1e73613f5f05029762b7e70b
BLAKE2b-256 f5fc4a09f72c6d9939aa6185f0bd39697c265747d4e69eaf17e2b18a77482a0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ezioaltair-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c3ed04c2a1a6023a1214c3856a67eba44301b3b9bddd84e25697751d6eb5176
MD5 dbea5e5fd6682e803d90af20d35e02a9
BLAKE2b-256 16dcf0f8fd4d577ce50072c8fd4805df691412952221f75e0967e42f6bc93694

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