Open Source Python Graphing & Data Visualization Library | Plotly
Open Source Python Graphing and Data Visualization Library
Plotly's Python graphing library makes interactive,
publication-quality graphs. Examples of how to make line plots,
scatter plots, area charts, bar charts, error bars, box plots,
histograms, heatmaps, subplots, multiple-axes, polar charts, and
bubble charts.
Plotly.py is free and open source, and you can
view the source, report issues, or contribute on GitHub .
Plotly is known for its graphing libraries, but it's also a broader ecosystem for building interactive data apps, AI data analysis tools, and deploying and hosting Dash apps. Explore the full set of tools and platforms designed to help turn data into action. Discover Plotly .
Fundamentals More Fundamentals »Explore step-by-step tutorials and code examples for figure structures, updating figures, displaying figures, and framework integrations to master our Python graphing library.
- The Figure Data Structure View Tutorial
- Creating and Updating Figures View Tutorial
- Displaying Figures View Tutorial
- Plotly Express View Tutorial
- Analytical Apps with Dash View Tutorial
Find copy-pasteable code snippets and interactive demos to create standard Python charts, including scatter plots, line graphs, bar charts, pie charts, and bubble charts.
- Scatter Plots View Tutorial
- Line Charts View Tutorial
- Bar Charts View Tutorial
- Pie Charts View Tutorial
- Bubble Charts View Tutorial
Browse code tutorials and live previews for complex data analysis, featuring box plots, histograms, error bars, and 2D density plots.
- Error Bars View Tutorial
- Box Plots View Tutorial
- Histograms View Tutorial
- Distplots View Tutorial
- 2D Histograms View Tutorial
Access interactive examples and code snippets for domain-specific visualizations. Build heatmaps, contour plots, ternary plots, and log plots.
- Contour Plots View Tutorial
- Heatmaps View Tutorial
- Imshow View Tutorial
- Ternary Plots View Tutorial
- Log Plots View Tutorial
Explore code guides and live examples for financial data, including candlestick charts, OHLC plots, waterfall diagrams, funnel charts, and time series lines to create interactive graphs in Python.
- Time Series and Date Axes View Tutorial
- Candlestick Charts View Tutorial
- Waterfall Charts View Tutorial
- Funnel Chart View Tutorial
- OHLC Charts View Tutorial
Learn how to build interactive geographic visualizations with step-by-step code snippets for Mapbox integration, tile choropleth maps, lines on maps, and bubble maps.
- MapLibre Migration View Tutorial
- Tile Choropleth Maps View Tutorial
- Lines on Tile Maps View Tutorial
- Filled Area on Tile Maps View Tutorial
- Bubble Maps View Tutorial
Visualize machine learning models with tutorials for ML regression, kNN classification, ROC and PR curves, and PCA visualization.
- ML Regression View Tutorial
- kNN Classification View Tutorial
- ROC and PR Curves View Tutorial
- PCA Visualization View Tutorial
- AI/ML Apps with Dash View Tutorial
Access specialized charts for computational biology, including volcano plots, Manhattan plots, clustergrams, and alignment charts.
- Volcano Plot View Tutorial
- Manhattan Plot View Tutorial
- Clustergram View Tutorial
- Alignment Chart View Tutorial
View high-performance code examples for 3D axes, 3D scatter plots, 3D surface plots, and 3D subplots to enhance your Python graphs.
- 3D Axes View Tutorial
- 3D Scatter Plots View Tutorial
- 3D Surface Plots View Tutorial
- 3D Subplots View Tutorial
- 3D Camera Controls View Tutorial
Find layout tutorials and code examples for combining multi-chart arrangements, map subplots, table subplots, and mixed layouts when plotting graphs in Python.
- Mixed Subplots View Tutorial
- Map Subplots View Tutorial
- Table and Chart Subplots View Tutorial
- Figure Factory Subplots View Tutorial
Learn how to connect your Python graph to interactive Jupyter environments using FigureWidget tutorials, interactive data analysis, and custom click events.
- Plotly FigureWidget Overview View Tutorial
- Jupyter Lab with FigureWidget View Tutorial
- Interactive Data Analysis with FigureWidget ipywidgets View Tutorial
- Click Events View Tutorial
Discover code snippets and tutorials for building interactive UI controls directly into your visualizations, including dropdown menus, custom buttons, sliders, and range selectors to upgrade your graph in Python.
- Custom Buttons View Tutorial
- Sliders View Tutorial
- Dropdown Menus View Tutorial
- Range Slider and Selector View Tutorial
Explore code tutorials and interactive demos for animating data points, building time-series sliders, and creating smooth transitions to build a dynamic Python graph.
AdvancedTake your interactive plots in Python to the next level with advanced Python graphing techniques, including plotting CSV data, generating random walks, peak finding, data smoothing, and rendering LaTeX.