Skip to content

Unknownuserfrommars/ProjectPlyra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

ProjectPlyra

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.

One liner: seaborn-style code, but interactive graphs

🔧 Features

  • Built on plotly.express and plotly.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

🚀 Installation

pip install plyra

🧪 Quick Example

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 Types

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()


🔍 Fine-tuning Your Plot

All plot functions accept:

additional_updates = {
    "layout": {"title_font_size": 24},
    "xaxis": {"tickangle": -45}
}

Use them for full customization without writing messy code.


🧠 Want to Join?

Plyra is indie-built and open-source. Feel free to fork, contribute, or suggest features.

📄 License

MIT License

About

Plyra.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages