Skip to main content

🌟 PlotSense: AI-Powered Data Visualization Assistant

📌 Overview

PlotSense is an AI-powered assistant that helps data professionals and analysts make smarter, faster, and more explainable data visualizations. Whether you're exploring a new dataset or building dashboards, PlotSense simplifies the process with:

  • ✅ Smart Visualization Suggestions - Recommends the best plots based on your data structure and relationships.
  • 🧠 Natural Language Explanations – Automatically explains charts in plain English.
  • 🔗 Seamless Integration – Works out of the box with pandas, matplotlib, and seaborn.

Let AI supercharge your EDA (Exploratory Data Analysis).

⚡ Quickstart

🔧 Install the package

pip install plotsense

🧠 Import PlotSense:

import plotsense as ps
from plotsense import recommender, plotgen, explainer

🔐 Authenticate with Groq API:

Get your free API key from Groq Cloud https://console.groq.com/home

import os
# Set GROQ_API_KEY environment variable
os.environ['GROQ_API_KEY'] = 'your-api-key-here'

#or

# Set API key (one-time setup)
ps.set_api_key("your-api-key-here")

🚀 Core Features

Let PlotSense analyze your data and suggest optimal charts.

import pandas as pd
# Load your dataset (e.g., pandas DataFrame)
df = pd.read_csv("data.csv")

# Get AI-recommended visualizations
suggestions = ps.recommender(df) # default number of suggestions is 5
print(suggestions)

📊 Sample Output:

alt text

🎛️ Want more suggestions?

suggestions = ps.recommender(df, n=10)  

📈 2. One-Click Plot Generation

Generate recommended charts instantly:

plot1 = ps.plotgen(df, suggestions.iloc[0]) # This will plot a bar chart with variables 'survived', 'pclass'
plot2 = ps.plotgen(df, suggestions.iloc[1]) # This will plot a bar chart with variables 'survived', 'sex'
plot3 = ps.plotgen(df, suggestions.iloc[2]) # This will plot a histogram with variable 'age'

🎛️ Want more control?

plot1 = ps.plotgen(df, suggestions.iloc[0], x='pclass', y='survived') 

Supported Plots

  • scatter
  • bar
  • barh
  • histogram
  • boxplot
  • violinplot
  • pie
  • hexbin

🧾 3. AI-Powered Plot Explanation

Turn your visualizations into stories with natural language insights:

explanation = ps.explainer(plot1)

print(explanation)

⚙️ Advanced Options

  • Custom Prompts: You can provide your own prompt to guide the explanation
explanation = explainer(
    fig,
    prompt="Explain the key trends in this sales data visualization"
)
  • Multiple Refinement Iterations: Increase the number of refinement cycles for more polished explanations:
explanation = explainer(fig, max_iterations=3)  # Default is 2

🔄 Combined Workflow: Suggest → Plot → Explain

suggestions = ps.recommender(df)
plot = ps.plotgen(df, suggestions.iloc[0])
insight = ps.explainer(plot)

🤝 Contributing

We welcome contributions!

Branching Strategy

  • main → The stable production-ready version of PlotSense.
  • dev → Active development
  • feature/ → Branches for specific features (e.g., feature/ai-visualization-suggestions).

💡 How to Help

  • 🐞 Bug Reports → GitHub Issues
  • 💡 Suggest features → Open a discussion
  • 🚀 Submit PRs → Fork → Branch → Test → Pull Request

📅 Roadmap

  • More model integrations
  • Automated insight highlighting
  • Jupyter widget support
  • Features/target analysis
  • More supported plots

📥 Install or Update

pip install --upgrade plotsense  # Get the latest features!

🛡 License

Apache License 2.0

🔐 API & Privacy Notes

  • Your API key is securely held in memory for your current Python session.
  • All requests are processed via Groq's API servers—no data is stored locally by PlotSense.
  • Requires an internet connection for model-backed features.

Let your data speak—with clarity, power, and PlotSense. 📊✨

Your Feedback

Feedback Form

Metadata

Release files for plotsense 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plotsense 0.1.3
File Size Uploaded Provenance Actions
plotsense-0.1.3.tar.gz 35.0 kB Without provenance Details for plotsense-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plotsense 0.1.3
File Interpreter ABI Platform Actions
plotsense-0.1.3-py3-none-any.whl Python 3 none any Details for plotsense-0.1.3-py3-none-any.whl

Total release size: 71.1 kB

Release files / plotsense-0.1.3.tar.gz

Download URL plotsense-0.1.3.tar.gz
Size 35.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d0e9a1d407d1cd5c5437d5bc1c94b66d3ea63cdd1529a2aadafa3bbf7ecf84da
BLAKE2b-256 checksum
How to use checksums
5924c824309e4e17e99d50bb135adca8f1ded3767ac6ff72f8445bddf0bebb26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release files / plotsense-0.1.3-py3-none-any.whl

Download URL plotsense-0.1.3-py3-none-any.whl
Size 36.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a660fc13935a7d51da9333c34715fe485f8dd4892931ac7ac7c0099f81370fc7
BLAKE2b-256 checksum
How to use checksums
31ff4dfc8897f9480cd0055aab3b1ecb7bd18fe2fdc97ec8e23f774394840b8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Security for plotsense 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page