Create UpSet plots using Altair
Project description
Altair UpSet
Create UpSet plots using Altair.
Installation
uv install altair-upset
Development
- Clone the repository:
git clone https://github.com/yourusername/altair-upset.git
cd altair-upset
- Create a virtual environment and install dependencies:
uv install -e ".[dev]"
Testing
Run the tests with:
uv install -e ".[test]"
uv run pytest
For coverage report:
uv run pytest --cov=altair_upset --cov-report=term-missing
Usage
import altair_upset as au
import pandas as pd
# Create sample data
data = pd.DataFrame({
'set1': [1, 0, 1],
'set2': [1, 1, 0],
'set3': [0, 1, 1]
})
# Create UpSet plot
chart = au.UpSetAltair(
data=data,
title="Sample UpSet Plot",
sets=["set1", "set2", "set3"]
)
# Display the chart
chart.show()
Credits
The original notebook is available at: https://github.com/hms-dbmi/upset-altair-notebook
If you use an UpSet figure in a publication, please cite the original paper:
Alexander Lex, Nils Gehlenborg, Hendrik Strobelt, Romain Vuillemot, Hanspeter Pfister. UpSet: Visualization of Intersecting Sets IEEE Transactions on Visualization and Computer Graphics (InfoVis), 20(12): 1983--1992, doi:10.1109/TVCG.2014.2346248, 2014.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file altair_upset-0.1.1.tar.gz.
File metadata
- Download URL: altair_upset-0.1.1.tar.gz
- Upload date:
- Size: 425.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6592c56c4735fb0e69f0630bff4f64e0f7e9f0ef9a514136323dc283aa518395
|
|
| MD5 |
6a4d4606068adcae5c3abea0d351ca7e
|
|
| BLAKE2b-256 |
5eccd5190fd3194554c478dcafa59e85aa5c93f347da7b4e3a29202f8556dcac
|
File details
Details for the file altair_upset-0.1.1-py3-none-any.whl.
File metadata
- Download URL: altair_upset-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4d90daa6b8463b44c5f85f86b0f7bdc63a223042f00621fe0a046ec723f58aa
|
|
| MD5 |
6a364524f81f38169614bb3443fb378f
|
|
| BLAKE2b-256 |
4b3a365a31abbf4eaae536ba997eac39eeaf4fb08f22ce04d18bef82686befea
|