Skip to content

Commit a213103

Browse files
committed
docs
1 parent 49938c2 commit a213103

File tree

3 files changed

+11
-118
lines changed

3 files changed

+11
-118
lines changed

docs/api/stats.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,9 @@ Statistical transformations for data.
7373
::: ggplotly.stats.stat_qq_line.stat_qq_line
7474
options:
7575
show_root_heading: true
76+
77+
## stat_contour
78+
79+
::: ggplotly.stats.stat_contour.stat_contour
80+
options:
81+
show_root_heading: true

docs/guide/geoms.ipynb

Lines changed: 3 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
{
44
"cell_type": "markdown",
55
"metadata": {},
6-
"source": [
7-
"# Geoms\n",
8-
"\n",
9-
"Geoms (geometric objects) are the visual elements that represent your data. ggplotly provides 34 geoms for different visualization types."
10-
]
6+
"source": "# Geoms\n\nGeoms (geometric objects) are the visual elements that represent your data. ggplotly provides 44 geoms for different visualization types."
117
},
128
{
139
"cell_type": "code",
@@ -563,47 +559,7 @@
563559
{
564560
"cell_type": "markdown",
565561
"metadata": {},
566-
"source": [
567-
"## Complete Geom List\n",
568-
"\n",
569-
"| Geom | Description |\n",
570-
"|------|-------------|\n",
571-
"| `geom_point` | Scatter plots |\n",
572-
"| `geom_line` | Line plots (sorted by x) |\n",
573-
"| `geom_path` | Path plots (data order) |\n",
574-
"| `geom_bar` | Bar charts |\n",
575-
"| `geom_col` | Column charts |\n",
576-
"| `geom_histogram` | Histograms |\n",
577-
"| `geom_boxplot` | Box plots |\n",
578-
"| `geom_violin` | Violin plots |\n",
579-
"| `geom_density` | Density plots |\n",
580-
"| `geom_area` | Area plots |\n",
581-
"| `geom_ribbon` | Ribbon plots |\n",
582-
"| `geom_smooth` | Smoothed lines |\n",
583-
"| `geom_tile` | Heatmaps |\n",
584-
"| `geom_text` | Text labels |\n",
585-
"| `geom_errorbar` | Error bars |\n",
586-
"| `geom_segment` | Line segments |\n",
587-
"| `geom_step` | Step plots |\n",
588-
"| `geom_rug` | Rug plots |\n",
589-
"| `geom_jitter` | Jittered points |\n",
590-
"| `geom_vline` | Vertical lines |\n",
591-
"| `geom_hline` | Horizontal lines |\n",
592-
"| `geom_abline` | Diagonal lines |\n",
593-
"| `geom_contour` | Contour lines |\n",
594-
"| `geom_contour_filled` | Filled contours |\n",
595-
"| `geom_map` | Choropleth maps |\n",
596-
"| `geom_sf` | Simple features |\n",
597-
"| `geom_point_map` | Map points |\n",
598-
"| `geom_range` | Range plots |\n",
599-
"| `geom_edgebundle` | Edge bundling |\n",
600-
"| `geom_searoute` | Sea routes |\n",
601-
"| `geom_point_3d` | 3D points |\n",
602-
"| `geom_surface` | 3D surfaces |\n",
603-
"| `geom_wireframe` | 3D wireframes |\n",
604-
"| `geom_candlestick` | Candlesticks |\n",
605-
"| `geom_ohlc` | OHLC charts |"
606-
]
562+
"source": "## Complete Geom List\n\n| Geom | Description |\n|------|-------------|\n| `geom_point` | Scatter plots |\n| `geom_line` | Line plots (sorted by x) |\n| `geom_lines` | Multi-series line plots |\n| `geom_path` | Path plots (data order) |\n| `geom_bar` | Bar charts |\n| `geom_col` | Column charts |\n| `geom_histogram` | Histograms |\n| `geom_boxplot` | Box plots |\n| `geom_violin` | Violin plots |\n| `geom_density` | Density plots |\n| `geom_area` | Area plots |\n| `geom_ribbon` | Ribbon plots |\n| `geom_smooth` | Smoothed lines |\n| `geom_tile` | Heatmaps |\n| `geom_text` | Text labels |\n| `geom_errorbar` | Error bars |\n| `geom_segment` | Line segments |\n| `geom_step` | Step plots |\n| `geom_rug` | Rug plots |\n| `geom_jitter` | Jittered points |\n| `geom_vline` | Vertical lines |\n| `geom_hline` | Horizontal lines |\n| `geom_abline` | Diagonal lines |\n| `geom_contour` | Contour lines |\n| `geom_contour_filled` | Filled contours |\n| `geom_map` | Choropleth maps |\n| `geom_sf` | Simple features |\n| `geom_range` | Range plots |\n| `geom_edgebundle` | Edge bundling |\n| `geom_searoute` | Sea routes |\n| `geom_fanchart` | Fan charts for uncertainty |\n| `geom_point_3d` | 3D points |\n| `geom_surface` | 3D surfaces |\n| `geom_wireframe` | 3D wireframes |\n| `geom_candlestick` | Candlestick charts |\n| `geom_ohlc` | OHLC charts |\n| `geom_waterfall` | Waterfall charts |\n| `geom_sankey` | Sankey flow diagrams |\n| `geom_stl` | STL decomposition plots |\n| `geom_acf` | Autocorrelation plots |\n| `geom_pacf` | Partial autocorrelation plots |\n| `geom_norm` | Normal distribution overlay |\n| `geom_qq` | Q-Q plots |\n| `geom_qq_line` | Q-Q reference line |"
607563
}
608564
],
609565
"metadata": {
@@ -619,4 +575,4 @@
619575
},
620576
"nbformat": 4,
621577
"nbformat_minor": 4
622-
}
578+
}

docs/index.ipynb

Lines changed: 2 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,7 @@
1212
{
1313
"cell_type": "markdown",
1414
"metadata": {},
15-
"source": [
16-
"# ggplotly\n",
17-
"\n",
18-
"A data visualization library for Python that combines the **grammar of graphics** from ggplot2 with the **interactivity** of Plotly.\n",
19-
"\n",
20-
"## Why ggplotly?\n",
21-
"\n",
22-
"- **Familiar syntax** - If you know ggplot2 from R, you'll feel right at home\n",
23-
"- **Interactive plots** - Powered by Plotly for zooming, panning, and hover tooltips\n",
24-
"- **Jupyter-friendly** - Plots render automatically in notebooks\n",
25-
"- **Comprehensive** - 90+ ggplot2-equivalent functions\n",
26-
"\n",
27-
"## Quick Example"
28-
]
15+
"source": "# ggplotly\n\nA data visualization library for Python that combines the **grammar of graphics** from ggplot2 with the **interactivity** of Plotly.\n\n## Why ggplotly?\n\n- **Familiar syntax** - If you know ggplot2 from R, you'll feel right at home\n- **Interactive plots** - Powered by Plotly for zooming, panning, and hover tooltips\n- **Jupyter-friendly** - Plots render automatically in notebooks\n- **Comprehensive** - 113+ ggplot2-equivalent functions\n\n## Quick Example"
2916
},
3017
{
3118
"cell_type": "code",
@@ -37,63 +24,7 @@
3724
{
3825
"cell_type": "markdown",
3926
"metadata": {},
40-
"source": [
41-
"## Installation\n",
42-
"\n",
43-
"```bash\n",
44-
"pip install ggplotly\n",
45-
"```\n",
46-
"\n",
47-
"## What's Included\n",
48-
"\n",
49-
"| Category | Count | Examples |\n",
50-
"|----------|-------|----------|\n",
51-
"| **Geoms** | 34 | `geom_point`, `geom_line`, `geom_bar`, `geom_boxplot`, `geom_map` |\n",
52-
"| **Scales** | 17 | `scale_color_manual`, `scale_fill_gradient`, `scale_x_log10` |\n",
53-
"| **Themes** | 9 | `theme_minimal`, `theme_dark`, `theme_bbc`, `theme_nytimes` |\n",
54-
"| **Stats** | 7 | `stat_smooth`, `stat_count`, `stat_density` |\n",
55-
"| **Coords** | 4 | `coord_flip`, `coord_polar`, `coord_sf` |\n",
56-
"| **Facets** | 2 | `facet_wrap`, `facet_grid` |\n",
57-
"\n",
58-
"## Gallery\n",
59-
"\n",
60-
"Explore examples organized by visualization type:\n",
61-
"\n",
62-
"- **[Basic Charts](gallery/basic.ipynb)** - Scatter, line, bar, histograms, box plots\n",
63-
"- **[Statistical](gallery/statistical.ipynb)** - Smoothing, density, error bars, summaries\n",
64-
"- **[Time Series](gallery/timeseries.ipynb)** - Date axes, range plots, candlesticks, OHLC\n",
65-
"- **[Geographic Maps](gallery/maps.ipynb)** - Choropleths, projections, point maps\n",
66-
"- **[3D Visualizations](gallery/3d.ipynb)** - Scatter, surfaces, wireframes\n",
67-
"- **[Network Graphs](gallery/networks.ipynb)** - Edge bundling, sea routes\n",
68-
"- **[Multi-Panel (Facets)](gallery/facets.ipynb)** - Small multiples, facet_wrap, facet_grid\n",
69-
"- **[Theming](gallery/theming.ipynb)** - Custom themes, publication-ready styling\n",
70-
"\n",
71-
"## Coming from R?\n",
72-
"\n",
73-
"ggplotly aims for API compatibility with ggplot2. Most code translates directly:\n",
74-
"\n",
75-
"**R (ggplot2):**\n",
76-
"```r\n",
77-
"ggplot(mpg, aes(x = displ, y = hwy, color = class)) +\n",
78-
" geom_point() +\n",
79-
" theme_minimal() +\n",
80-
" labs(title = \"Fuel Efficiency\")\n",
81-
"```\n",
82-
"\n",
83-
"**Python (ggplotly):**\n",
84-
"```python\n",
85-
"ggplot(mpg, aes(x='displ', y='hwy', color='class')) + \\\n",
86-
" geom_point() + \\\n",
87-
" theme_minimal() + \\\n",
88-
" labs(title='Fuel Efficiency')\n",
89-
"```\n",
90-
"\n",
91-
"The main differences:\n",
92-
"\n",
93-
"- Column names are strings: `x='column'` not `x = column`\n",
94-
"- Use `\\` or parentheses for line continuation\n",
95-
"- Import with `from ggplotly import *`"
96-
]
27+
"source": "## Installation\n\n```bash\npip install ggplotly\n```\n\n## What's Included\n\n| Category | Count | Examples |\n|----------|-------|----------|\n| **Geoms** | 44 | `geom_point`, `geom_line`, `geom_bar`, `geom_boxplot`, `geom_map` |\n| **Scales** | 17 | `scale_color_manual`, `scale_fill_gradient`, `scale_x_log10` |\n| **Themes** | 9 | `theme_minimal`, `theme_dark`, `theme_bbc`, `theme_nytimes` |\n| **Stats** | 13 | `stat_smooth`, `stat_count`, `stat_density` |\n| **Coords** | 4 | `coord_flip`, `coord_polar`, `coord_sf` |\n| **Facets** | 2 | `facet_wrap`, `facet_grid` |\n\n## Gallery\n\nExplore examples organized by visualization type:\n\n- **[Basic Charts](gallery/basic.ipynb)** - Scatter, line, bar, histograms, box plots\n- **[Statistical](gallery/statistical.ipynb)** - Smoothing, density, error bars, summaries\n- **[Time Series](gallery/timeseries.ipynb)** - Date axes, range plots, candlesticks, OHLC\n- **[Geographic Maps](gallery/maps.ipynb)** - Choropleths, projections, point maps\n- **[3D Visualizations](gallery/3d.ipynb)** - Scatter, surfaces, wireframes\n- **[Network Graphs](gallery/networks.ipynb)** - Edge bundling, sea routes\n- **[Multi-Panel (Facets)](gallery/facets.ipynb)** - Small multiples, facet_wrap, facet_grid\n- **[Theming](gallery/theming.ipynb)** - Custom themes, publication-ready styling\n\n## Coming from R?\n\nggplotly aims for API compatibility with ggplot2. Most code translates directly:\n\n**R (ggplot2):**\n```r\nggplot(mpg, aes(x = displ, y = hwy, color = class)) +\n geom_point() +\n theme_minimal() +\n labs(title = \"Fuel Efficiency\")\n```\n\n**Python (ggplotly):**\n```python\nggplot(mpg, aes(x='displ', y='hwy', color='class')) + \\\n geom_point() + \\\n theme_minimal() + \\\n labs(title='Fuel Efficiency')\n```\n\nThe main differences:\n\n- Column names are strings: `x='column'` not `x = column`\n- Use `\\` or parentheses for line continuation\n- Import with `from ggplotly import *`"
9728
}
9829
]
9930
}

0 commit comments

Comments
 (0)