Plotly Interactive Guide logo

Plotly Interactive Guide

Community
wentorai
plotly-interactive-guide

Guide to Plotly.py for interactive scientific visualizations in Python

Overview

Publisherwentorai
Repositoryresearch-plugins
Skill nameplotly-interactive-guide
Stars
294
Forks
42
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by wentorai on GitHub. Read the source before you install it.

Installation

Install the Plotly Interactive Guide AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wentorai/research-plugins.git /tmp/research-plugins
mkdir -p .claude/skills
cp -r /tmp/research-plugins/skills/analysis/dataviz/plotly-interactive-guide .claude/skills/plotly-interactive-guide
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Plotly Interactive Guide in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Plotly Interactive Guide on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Plotly Interactive Guide is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Plotly Interactive Visualization Guide

Overview

Plotly.py is a high-level, interactive graphing library for Python with over 18K stars on GitHub. Built on top of plotly.js (which itself uses D3.js and WebGL), Plotly enables researchers to create publication-quality interactive figures directly from Python code. The library integrates seamlessly with pandas DataFrames, NumPy arrays, and the broader scientific Python ecosystem.

What sets Plotly apart for academic researchers is its Plotly Express module, which provides a concise, high-level API for creating complex visualizations in a single function call. Researchers can go from a pandas DataFrame to a fully interactive figure in one line of code, then customize it further as needed. Every Plotly figure is inherently interactive, supporting hover tooltips, zoom, pan, and selection out of the box.

Plotly also offers Dash, a framework for building analytical web applications entirely in Python. This allows researchers to create interactive dashboards for exploring experimental data, sharing results with collaborators, or building supplementary interactive materials for publications without needing front-end development skills.

Plotly Express for Quick Research Figures

Plotly Express provides the fastest path from data to visualization. It works directly with pandas DataFrames and supports faceting, color mapping, animation, and trendlines.

Scatter Plot with Regression

python
import plotly.express as px
import pandas as pd
import numpy as np

# Simulated experimental data
np.random.seed(42)
df = pd.DataFrame({
    'concentration': np.random.uniform(0.1, 10, 200),
    'response': np.random.normal(0, 1, 200),
    'treatment': np.random.choice(['Drug A', 'Drug B', 'Control'], 200),
    'cell_line': np.random.choice(['HeLa', 'MCF7', 'A549'], 200)
})
df['response'] = df['concentration'] * 0.8 + df['response']

fig = px.scatter(
    df,
    x='concentration',
    y='response',
    color='treatment',
    facet_col='cell_line',
    trendline='ols',
    title='Dose-Response Across Cell Lines',
    labels={'concentration': 'Concentration (uM)', 'response': 'Normalized Response'},
    template='plotly_white'
)
fig.update_layout(font=dict(family='Arial', size=12))
fig.show()

Box Plot with Individual Data Points

python
fig = px.box(
    df,
    x='treatment',
    y='response',
    color='treatment',
    points='all',
    title='Treatment Response Distribution',
    template='plotly_white'
)
fig.update_traces(quartilemethod='linear')
fig.update_layout(showlegend=False)
fig.show()

Violin Plot for Distribution Comparison

python
fig = px.violin(
    df,
    x='treatment',
    y='response',
    color='treatment',
    box=True,
    points='outliers',
    title='Response Distribution by Treatment Group',
    template='plotly_white'
)
fig.show()

Graph Objects for Fine-Grained Control

For more customized figures, Plotly's graph_objects module provides full control over every visual element.

Error Bar Plot for Experimental Results

python
import plotly.graph_objects as go

groups = ['Control', 'Low Dose', 'Medium Dose', 'High Dose']
means = [1.0, 1.8, 3.2, 4.5]
sems = [0.15, 0.22, 0.31, 0.28]

fig = go.Figure()

fig.add_trace(go.Bar(
    x=groups,
    y=means,
    error_y=dict(type='data', array=sems, visible=True),
    marker_color=['#6B7280', '#3B82F6', '#3B82F6', '#3B82F6'],
    text=[f'{m:.2f}' for m in means],
    textposition='outside'
))

fig.update_layout(
    title='Treatment Effect on Biomarker Levels',
    yaxis_title='Relative Expression',
    xaxis_title='Treatment Group',
    template='plotly_white',
    font=dict(family='Arial', size=13),
    bargap=0.3,
    yaxis=dict(range=[0, max(means) * 1.3])
)

# Add significance brackets
fig.add_annotation(
    x=0.5, y=max(means) * 1.15,
    text='*** p < 0.001',
    showarrow=False,
    font=dict(size=12)
)

fig.show()

Heatmap for Correlation Analysis

python
import plotly.figure_factory as ff

# Compute correlation matrix
corr_matrix = df[['concentration', 'response']].corr()
variables = corr_matrix.columns.tolist()

fig = ff.create_annotated_heatmap(
    z=corr_matrix.values,
    x=variables,
    y=variables,
    colorscale='RdBu_r',
    zmin=-1, zmax=1,
    showscale=True
)

fig.update_layout(
    title='Variable Correlation Matrix',
    template='plotly_white',
    width=600, height=500
)
fig.show()

3D and Specialized Scientific Plots

3D Surface Plot for Response Surfaces

python
import plotly.graph_objects as go
import numpy as np

x = np.linspace(-3, 3, 50)
y = np.linspace(-3, 3, 50)
X, Y = np.meshgrid(x, y)
Z = np.sin(np.sqrt(X**2 + Y**2)) * np.exp(-0.1 * (X**2 + Y**2))

fig = go.Figure(data=[go.Surface(
    x=X, y=Y, z=Z,
    colorscale='Viridis',
    contours=dict(
        z=dict(show=True, usecolormap=True, project_z=True)
    )
)])

fig.update_layout(
    title='Response Surface Analysis',
    scene=dict(
        xaxis_title='Factor A',
        yaxis_title='Factor B',
        zaxis_title='Response'
    ),
    width=700, height=600
)
fig.show()

Animated Time-Series for Temporal Data

python
# Create animated scatter showing progression over experimental phases
fig = px.scatter(
    temporal_df,
    x='metric_a',
    y='metric_b',
    animation_frame='time_point',
    animation_group='sample_id',
    size='magnitude',
    color='cluster',
    hover_name='sample_id',
    title='Sample Trajectories Over Time',
    template='plotly_white',
    range_x=[0, 10],
    range_y=[0, 10]
)
fig.layout.updatemenus[0].buttons[0].args[1]['frame']['duration'] = 800
fig.show()

Exporting for Publications

Plotly provides multiple export options for journal-ready figures.

python
# Static export (requires kaleido)
fig.write_image('figure_1.pdf', width=800, height=500, scale=3)
fig.write_image('figure_1.svg', width=800, height=500)
fig.write_image('figure_1.png', width=800, height=500, scale=3)

# Interactive HTML for supplementary materials
fig.write_html('interactive_figure.html', include_plotlyjs='cdn')

# Save as JSON for reproducibility
fig.write_json('figure_data.json')

Dash for Interactive Research Dashboards

python
from dash import Dash, dcc, html, Input, Output
import plotly.express as px

app = Dash(__name__)

app.layout = html.Div([
    html.H1('Experiment Data Explorer'),
    dcc.Dropdown(
        id='variable-select',
        options=[{'label': v, 'value': v} for v in variables],
        value=variables[0]
    ),
    dcc.Graph(id='main-plot')
])

@app.callback(Output('main-plot', 'figure'), Input('variable-select', 'value'))
def update_plot(selected_var):
    return px.histogram(df, x=selected_var, nbins=30, template='plotly_white')

if __name__ == '__main__':
    app.run(debug=True, port=8050)

References

Frequently asked questions

What does the Plotly Interactive Guide AI skill do?

Guide to Plotly.py for interactive scientific visualizations in Python

Why use Plotly Interactive Guide on TypingMind?

Because you install it once and use it with any model. Plotly Interactive Guide is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Plotly Interactive Guide in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/wentorai/research-plugins/tree/main/skills/analysis/dataviz/plotly-interactive-guide. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Plotly Interactive Guide?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Plotly Interactive Guide?

As many as you like. As long as a model supports skills, you can use Plotly Interactive Guide with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Plotly Interactive Guide AI skill free?

Yes. It is published on GitHub by wentorai under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇