A modern, one-liner visualization library built on top of Plotly.
Plyra gives you the power of Plotly with the simplicity of Seaborn. It's built for developers, data scientists, and learners who want beautiful interactive plots with minimal code.
- Built on
plotly.express
andplotly.graph_objects
- One-liner plotting:
scatter
,hist
,bar
,box
,kde
,heatmap
,countplot
- Easy theming (
plotly
,ggplot2
,plotly_dark
, etc.) - Utilities for merging plots (
Utils.join
) - Supports
additional_updates
for fine-grained customization
pip install plyra
import plyra as pl
import pandas as pd
import numpy as np
df = pd.DataFrame({
"age": np.random.randint(10, 60, 100),
"score": np.random.normal(75, 10, 100),
"gender": np.random.choice(["Male", "Female"], 100)
})
pl.set_theme("ggplot2")
fig = pl.scatter(df, x="age", y="score", color="gender")
fig.show()
Plot: Function
Scatter: pl.scatter()
Histogram: pl.hist()
KDE: pl.kde()
Bar: pl.bar()
/ pl.barh()
Box: pl.box()
Heatmap: pl.heatmap()
Count: pl.countplot()
All plot functions accept:
additional_updates = {
"layout": {"title_font_size": 24},
"xaxis": {"tickangle": -45}
}
Use them for full customization without writing messy code.
Plyra is indie-built and open-source. Feel free to fork, contribute, or suggest features.