본문 바로가기

Data Science/Visualization

[plotly] Getting Started with Plotly in Python

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.

'Data Science > Visualization' 카테고리의 다른 글

[plotly] Layout components of plotly  (0) 2022.09.18
[plotly] Graph Objects in Python  (0) 2022.09.18
[plotly] Plotly Express in Python  (0) 2022.09.18
[plotly] iplot in Python  (0) 2022.09.18