Neural Sync Active
Chart Types
Registry Synced
Chart Types
85 words
1 min read
Reading compass
Now · Chart Selection Guide
Chart Types
pythonimport matplotlib.pyplot as plt import seaborn as sns import numpy as np import pandas as pd # Generate sample data df = pd.DataFrame({ 'category': ['A', 'B', 'C', 'D'], 'value': [23, 45, 56, 78], 'value2': [30, 40, 50, 60] })
Chart Selection Guide
(Diagram)
Key Chart Types
| Chart | Use Case | Code |
|---|---|---|
| Bar | Compare categories | plt.bar() |
| Line | Trends over time | plt.plot() |
| Scatter | Relationship 2 vars | plt.scatter() |
| Histogram | Distribution | plt.hist() |
| Box plot | Distribution w/ outliers | sns.boxplot() |
| Heatmap | 2D matrix | sns.heatmap() |
| Violin | Distribution shape | sns.violinplot() |
python# Example: Bar chart plt.figure(figsize=(8, 4)) sns.barplot(data=df, x='category', y='value') plt.title('Bar Chart Example') plt.show()