The plotly Package
Plotly is an open-source, interactive graphing library for Python - Plotly GitHub repo
Reference
Installation
First install the package using Pip, if necessary:
Usage
For learning purposes, prefer to construct charts using the "offline" versions which don't require a Plotly account or API key.
To display a new chart, construct it by specifying certain chart configuration options, including the type of chart (e.g. scatterplot), and the data to visualize:
NOTE: after a few seconds, the chart will automatically open in your web browser.
Consult the documentation and examples for a variety of chart customization options.
More Examples
A pie chart example:
Further Exploration
See also the plotly.express
package, which allows you to construct graphs from pandas DataFrames.
Last updated