Data Science/Visualization
[plotly] Getting Started with Plotly in Python
See_the_forest
2022. 9. 18. 16:16
1. What is Plotly?
The plotly Python library is an interactive, open-source plotting library that supppors over 40 unique chart types covering a wide range of statistical, financial, geographic, scientific, and 3-dimensional use-cases.
plotly also enables Python users to create beautiful interactive web-based visualization that can be displayed in Jupyter notebooks, saved to standalone HTML files, or served as part of pure Python-build web application using Dash.
2. How to import?
# Library for chart studio
import chart_studio.plotly as py
import cufflinks as cf
cf.go_offline(connected = True)
import plotly.offline as pyo
pyo.init_notebook_mode()
# Libraries for main plotly plots
import plotly.express as px
import plotly.graph_objects as go
# Library for plotly subplots
from plotly.subplots import make_subplots
# Libraries for plotlyDash
import dash
import dash_core_components as dcc
import dash_bootstrap_components as dbc
import dash_html_components as html
import dash_table
Chart Studio provides a web-service for hosting graphs. Graphs can be saved inside our online Chart Studio account and we can control the privacy.