Posts

Showing posts with the label Plotly

Bar plot in Python using Plotly

Image
Step 1: Install plotly package if you haven't. Follow this article: http://com.puter.tips/2017/02/install-plotly-package-in-python.html Step 2: Set up your online credentials for plotly account. 2.1: Go to https://plot.ly/settings/api 2.2: Sign in/sign up. 2.3: Open https://plot.ly/settings/api (API Settings page) and click on Regenerate Key button. Copy the API key.

Install Plotly package in Python

Image
You need pip package manager to install Plotly package in Python. Use this command to install plotly with python: pip install plotly Ref.: https://plot.ly/python/getting-started/ Plotly is a library for building interactive charts in Python that render in the browser, with hover, zoom, and pan built in. Installing it is a single pip command, as shown above. Once installed you can create figures with plotly.express or plotly.graph_objects and export them to HTML or images. It works well inside Jupyter notebooks and dashboards.