Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • Software and Tools
    • School Learning
    • Practice Coding Problems
  • GfG Premium
  • Pandas
  • Seaborn
  • Matplotlib
  • Altair
  • Bokeh
  • Data Analysis
  • R
  • Machine Learning Math
  • Machin Learning
  • Deep Learning
  • Deep Learning Projects
  • NLP
  • Computer vision
  • Data science
  • Deep learning interview question
  • Machin Learning Interview question
Open In App
Next Article:
Introduction to Plotly-online using Python
Next article icon

Plotly tutorial

Last Updated : 09 Jul, 2025
Summarize
Comments
Improve
Suggest changes
Share
Like Article
Like
Report

Plotly is a popular open-source Python library used for creating interactive, publication-quality visualizations. It is widely used in data science, analytics and machine learning for presenting data insights visually and interactively. It supports a wide variety of charts including line plots, scatter plots, bar charts, pie charts, heatmaps and 3D plots. It integrates well with Jupyter notebooks, Dash and web applications.


Important Facts to Know:

  • Interactive by Default: Built-in support for zoom, pan, tooltips and legends enhances data exploration.
  • Web Integration: Easily embeddable in web apps and dashboards using frameworks like Dash.

This tutorial aims at providing you the insight about Plotly with the help of the huge dataset explaining the Plotly from basics to advance and covering all the popularly used charts.

Table of Content

  • 1. How to install Plotly?
  • 2. Package Structure of Plotly
  • 3. Getting Started
  • 4. Creating Different Types of Charts
  • 5. Heatmaps
  • 6. Error Bars
  • 7. 3D Charts
  • 8. Interactive Plot Features
  • 9. More Plots using Plotly
  • 10 Styling & Features

1. How to install Plotly?

Before installing Plotly in system, you need to install pip in your system, Refer to -

Download and install pip Latest Version

Plotly does not come built-in with Python. To install it type the below command in the terminal.

pip install plotly

This may take some time as it will install the dependencies as well.

2. Package Structure of Plotly

There are two main modules in Plotly used for creating visualizations:

2.1 plotly.graph_objects

This module provides Python classes to build figures using objects like Figure, Layout and plot types such as Scatter, Bar and Box. Figures are structured as:

  • data: List of traces (e.g., scatter, bar)
  • layout: Plot configuration (e.g., axes, title, legend)
  • frames: Used for animations

Each figure is serialized to JSON and rendered by Plotly.js. Nested elements like layout.legend are dictionaries of configurable properties.

2.2 plotly.express

This is a high-level module used to quickly generate complete figures. It internally uses graph_objects and returns a graph_objects.Figure instance.

Example:

Python
import plotly.express as px 


# Creating the Figure instance
fig = px.line(x=[1,2, 3], y=[1, 2, 3]) 

# printing the figure instance
print(fig)

Output

Figure({
'data': [{'hovertemplate': 'x=%{x}<br>y=%{y}<extra></extra>',
'legendgroup': '',
'line': {'color': '#636efa', 'dash': 'solid'},
'marker': {'symbol': 'circle'},
'mode': 'lines',
'name': '',
'orientation': 'v',
'showlegend': False,
'type': 'scatter',
'x': array([1, 2, 3]),
'xaxis': 'x',
'y': array([1, 2, 3]),
'yaxis': 'y'}],
'layout': {'legend': {'tracegroupgap': 0},
'margin': {'t': 60},
'template': '...',
'xaxis': {'anchor': 'y', 'domain': [0.0, 1.0], 'title': {'text': 'x'}},
'yaxis': {'anchor': 'x', 'domain': [0.0, 1.0], 'title': {'text': 'y'}}}
})

3. Getting Started

After learning the installation and basic structure of the Plotly, let's create a simple plot using the pre-defined data sets defined by the plotly.

Example:

Python
import plotly.express as px 

fig = px.line(x=[1, 2, 3], y=[1, 2, 3]) 

fig.show()

Output:

In the above example, the plotly.express module is imported which returns the Figure instance. We have created a simple line chart by passing the x, y coordinates of the points to be plotted.

4. Creating Different Types of Charts

With plotly we can create more than 40 charts and every plot can be created using the plotly.express and plotly.graph_objects class. Let's see some commonly used charts with the help of Plotly.

4.1 Line Chart

Line plot in Plotly is much accessible and illustrious annexation to plotly which manage a variety of types of data and assemble easy-to-style statistic. With px.line each data position is represented as a vertex  (which location is given by the x and y columns) of a polyline mark in 2D space.

Example:

Python
import plotly.express as px 

df = px.data.iris() 

# plotting the line chart
fig = px.line(df, x="species", y="petal_width") 

fig.show()

Output:

plotly tutorial line chart

Refer to the below articles to get detailed information about the line charts.

  • plotly.express.line() function in Python
  • Line Chart using Plotly in Python

4.2 Bar Chart

A bar chart is a pictorial representation of data that presents categorical data with rectangular bars with heights or lengths proportional to the values that they represent. In other words, it is the pictorial representation of dataset. These data sets contain the numerical values of variables that represent the length or height.

Example:

Python
import plotly.express as px 

df = px.data.iris() 

# plotting the bar chart
fig = px.bar(df, x="sepal_width", y="sepal_length") 

fig.show()

Output:

plotly tutorial bar chart

Refer to the below articles to get detailed information about the bar chart.

  • Bar chart using Plotly in Python
  • How to create Stacked bar chart in Python-Plotly?
  • How to group Bar Charts in Python-Plotly?

4.3 Histograms

A histogram contains a rectangular area to display the statistical information which is proportional to the frequency of a variable and its width in successive numerical intervals. A graphical representation that manages a group of data points into different specified ranges. It has a special feature that shows no gaps between the bars and similar to a vertical bar graph.

Example:

Python
import plotly.express as px 

# using the iris dataset
df = px.data.iris() 

# plotting the histogram
fig = px.histogram(df, x="sepal_length", y="petal_width") 

# showing the plot
fig.show()

Output:

plotly tutorial histogram

Refer to the below articles to get detailed information about the histograms.

  • Histogram using Plotly in Python
  • Histograms in Plotly using graph_objects class
  • How to create a Cumulative Histogram in Plotly?

4.4 Scatter Plot and Bubble charts

A scatter plot is a set of dotted points to represent individual pieces of data in the horizontal and vertical axis. A graph in which the values of two variables are plotted along X-axis and Y-axis, the pattern of the resulting points reveals a correlation between them.

A bubble plot is a scatter plot with bubbles (color-filled circles). Bubbles have various sizes dependent on another variable in the data. It can be created using the scatter() method of plotly.express.

Example 1: Scatter Plot

Python
import plotly.express as px 

# using the iris dataset
df = px.data.iris() 

# plotting the scatter chart
fig = px.scatter(df, x="species", y="petal_width") 

# showing the plot
fig.show()

Output:

plotly tutorial scatter plot

Example 2: Bubble Plot

Python
import plotly.express as px 

# using the iris dataset
df = px.data.iris() 

# plotting the bubble chart
fig = px.scatter(df, x="species", y="petal_width", 
                 size="petal_length", color="species") 

# showing the plot
fig.show()

Output:

plotly tutorial bubble chart

Refer to the below articles to get detailed information about the scatter plots and bubble plots.

  • plotly.express.scatter() function in Python
  • Scatter plot in Plotly using graph_objects class
  • Scatter plot using Plotly in Python
  • Bubble chart using Plotly in Python

4.5 Pie Charts

A pie chart is a circular statistical graphic, which is divided into slices to illustrate numerical proportions. It depicts a special chart that uses “pie slices”, where each sector shows the relative sizes of data. A circular chart cuts in a form of radii into segments describing relative frequencies or magnitude also known as circle graph.

Example:

Python
import plotly.express as px 

# using the tips dataset
df = px.data.tips() 

# plotting the pie chart
fig = px.pie(df, values="total_bill", names="day") 

# showing the plot
fig.show()

Output:

plotly tutorial pie chart

Refer to the below articles to get detailed information about the pie charts.

  • Pie plot using Plotly in Python

4.6 Box Plots

A Box Plot is also known as Whisker plot is created to display the summary of the set of data values having properties like minimum, first quartile, median, third quartile and maximum. In the box plot, a box is created from the first quartile to the third quartile, a vertical line is also there which goes through the box at the median. Here x-axis denotes the data to be plotted while the y-axis shows the frequency distribution.

Example:

Python
import plotly.express as px 

# using the tips dataset
df = px.data.tips() 

# plotting the box chart
fig = px.box(df, x="day", y="total_bill") 

# showing the plot
fig.show()

Output:

plotly tutorial box plots

Refer to the below articles to get detailed information about box plots.

  • Box Plot using Plotly in Python
  • Box plot in Plotly using graph_objects class
  • How to create Grouped box plot in Plotly?

4.7 Violin plots

A Violin Plot is a method to visualize the distribution of numerical data of different variables. It is similar to Box Plot but with a rotated plot on each side, giving more information about the density estimate on the y-axis. The density is mirrored and flipped over and the resulting shape is filled in, creating an image resembling a violin. The advantage of a violin plot is that it can show nuances in the distribution that aren’t perceptible in a boxplot. On the other hand, the boxplot more clearly shows the outliers in the data.

Example:

Python
import plotly.express as px 

# using the tips dataset
df = px.data.tips() 

# plotting the violin chart
fig = px.violin(df, x="day", y="total_bill")

# showing the plot
fig.show()

Output:

Refer to the below articles to get detailed information about the violin plots

  • Violin Plots using Plotly

4.8 Gantt Charts

Generalized Activity Normalization Time Table (GANTT) chart is type of chart in which series of horizontal lines are present that show the amount of work done or production completed in given period of time in relation to amount planned for those projects. 

Example:

Python
import plotly.figure_factory as ff 

# Data to be plotted
df = [dict(Task="A", Start='2020-01-01', Finish='2009-02-02'), 
    dict(Task="Job B", Start='2020-03-01', Finish='2020-11-11'), 
    dict(Task="Job C", Start='2020-08-06', Finish='2020-09-21')] 

# Creating the plot
fig = ff.create_gantt(df) 
fig.show()

Output:

Plotly Tutorial Gantt chart

Refer to the below articles to get detailed information about the Gantt Charts.

  • Gantt Chart in Plotly

4.9 Contour Plots

A Contour plots also called level plots are a tool for doing multivariate analysis and visualizing 3-D plots in 2-D space. If we consider X and Y as our variables we want to plot then the response Z will be plotted as slices on the X-Y plane due to which contours are sometimes referred as Z-slices or iso-response.

A contour plots is used in the case where you want to see the changes in some value (Z) as a function with respect to the two values (X, Y). Consider the below example.

Example:

Python
import plotly.graph_objects as go 


# Creating the X, Y value that will
feature_x = np.arange(0, 50, 2) 
feature_y = np.arange(0, 50, 3) 

# Creating 2-D grid of features 
[X, Y] = np.meshgrid(feature_x, feature_y) 

Z = np.cos(X / 2) + np.sin(Y / 4) 

# plotting the figure
fig = go.Figure(data =
    go.Contour(x = feature_x, y = feature_y, z = Z)) 

fig.show()

Output:

plotly tutorial contour plots

Refer to the below articles to get detailed information about contour plots.

  • Contour Plots using Plotly in Python

5. Heatmaps

Heatmap is defined as a graphical representation of data using colors to visualize the value of the matrix. In this, to represent more common values or higher activities brighter colors basically reddish colors are used and to represent less common or activity values, darker colors are preferred. Heatmap is also defined by the name of the shading matrix. 

Example: 

Python
import plotly.graph_objects as go 


feature_x = np.arange(0, 50, 2) 
feature_y = np.arange(0, 50, 3) 

# Creating 2-D grid of features 
[X, Y] = np.meshgrid(feature_x, feature_y) 

Z = np.cos(X / 2) + np.sin(Y / 4) 

# plotting the figure
fig = go.Figure(data =
     go.Heatmap(x = feature_x, y = feature_y, z = Z,)) 

fig.show()

Output:

plotly tutorial heatmap

Refer to the below articles to get detailed information about the heatmaps.

  • Create Heatmaps using graph_objects class in Plotly
  • Annotated Heatmaps using Plotly in Python

6. Error Bars

For functions representing 2D data points such as px.scatter, px.line, px.bar, etc., error bars are given as a column name which is the value of the error_x (for the error on x position) and error_y (for the error on y position). Error bars are the graphical presentation alternation of data and used on graphs to imply the error or uncertainty in a reported capacity.

Example:

Python
import plotly.express as px 

# using the iris dataset
df = px.data.iris() 

# Calculating the error field
df["error"] = df["petal_length"]/100

# plotting the scatter chart
fig = px.scatter(df, x="species", y="petal_width",
                error_x="error", error_y="error") 

# showing the plot
fig.show()

Output:

plotly tutorial error bar

7. 3D Charts

7.1 3D Line Plots

Line plot in plotly is much accessible and illustrious annexation to plotly which manage a variety of types of data and assemble easy-to-style statistic. With px.line_3d each data position is represented as a vertex  (which location is given by the x, y and z columns) of a polyline mark in 3D space.

Example:

Python
import plotly.express as px 

# data to be plotted
df = px.data.tips() 

# plotting the figure
fig = px.line_3d(df, x="sex", y="day", 
                 z="time", color="sex") 

fig.show()

Output:

poltly tutorial 3d line

Refer to the below articles to get detailed information about the 3D line charts.

  • plotly.express.line_3d() function in Python
  • 3D Line Plots using Plotly in Python

7.2 3D Scatter Plot Plotly

3D Scatter Plot can plot two-dimensional graphics that can be enhanced by mapping up to three additional variables while using the semantics of hue, size and style parameters. All the parameter control visual semantic which are used to identify the different subsets. Using redundant semantics can be helpful for making graphics more accessible. It can be created using the scatter_3d function of plotly.express class.

Example:

Python
import plotly.express as px 

# Data to be plotted
df = px.data.iris() 

# Plotting the figure
fig = px.scatter_3d(df, x = 'sepal_width', 
                    y = 'sepal_length', 
                    z = 'petal_width', 
                    color = 'species') 

fig.show()

Output:

plotly tutorial 3d scatter plot

Refer to the below articles to get detailed information about the 3D scatter plot.

  • 3D scatter plot using Plotly in Python
  • 3D Scatter Plot using graph_objects Class in Plotly-Python
  • 3D Bubble chart using Plotly in Python

7.3 3D Surface Plots

Surface plot is those plot which has three-dimensions data which is X, Y and Z. Rather than showing individual data points, the surface plot has a functional relationship between dependent variable Y and have two independent variables X and Z. This plot is used to distinguish between dependent and independent variables.

Example:

Python
import plotly.graph_objects as go 
import numpy as np 

# Data to be plotted
x = np.outer(np.linspace(-2, 2, 30), np.ones(30)) 
y = x.copy().T 
z = np.cos(x ** 2 + y ** 2) 

# plotting the figure
fig = go.Figure(data=[go.Surface(x=x, y=y, z=z)]) 

fig.show() 

Output:

plotly tutorial 3d surface

8. Interactive Plot Features

Plotly provides various tools for interacting with the plots such as adding dropdowns, buttons, sliders, etc. These can be created using the update menu attribute of the plot layout. Let's see how to do all such things in detail.

Creating Dropdown Menu in Plotly

A drop-down menu is a part of the menu-button which is displayed on a screen all the time. Every menu button is associated with a Menu widget that can display the choices for that menu button when clicked on it. In plotly, there are 4 possible methods to modify the charts by using update menu method.

  • restyle: modify data or data attributes
  • relayout: modify layout attributes
  • update: modify data and layout attributes
  • animate: start or pause an animation

Example:

Python
import plotly.graph_objects as px
import numpy as np

# creating random data through randomint
np.random.seed(42)

# Data to be Plotted
random_x = np.random.randint(1, 101, 100)
random_y = np.random.randint(1, 101, 100)

plot = px.Figure(data=[px.Scatter(
    x=random_x,
    y=random_y,
    mode='markers',)
])

# Add dropdown
plot.update_layout(
    updatemenus=[
        dict(
            buttons=list([
                dict(
                    args=["type", "scatter"],
                    label="Scatter Plot",
                    method="restyle"
                ),
                dict(
                    args=["type", "bar"],
                    label="Bar Chart",
                    method="restyle"
                )
            ]),
            direction="down",
        ),
    ]
)

plot.show()

Output:

Drop Menu in PLotly
Output

In the above example we have created two graphs for the same data. These plots are accessible using the dropdown menu.

8.1 Adding Buttons to the Plot

In plotly, actions custom Buttons are used to quickly make actions directly from a record. Custom Buttons can be added to page layouts in CRM, Marketing and Custom Apps. There are also 4 possible methods that can be applied in custom buttons:

  • restyle: modify data or data attributes
  • relayout: modify layout attributes
  • update: modify data and layout attributes
  • animate: start or pause an animation

Example:

Python
import plotly.graph_objects as px
import pandas as pd

df = go.data.tips() 


plot = px.Figure(data=[px.Scatter(
    x=data['day'],
    y=data['tip'],
    mode='markers',)
])

# Add dropdown
plot.update_layout(
    updatemenus=[
        dict(
            type="buttons",
            direction="left",
            buttons=list([
                dict(
                    args=["type", "scatter"],
                    label="Scatter Plot",
                    method="restyle"
                ),
                dict(
                    args=["type", "bar"],
                    label="Bar Chart",
                    method="restyle"
                )
            ]),
        ),
    ]
)

plot.show()

Output:

button-plotly

In this example also we are creating two different plots on the same data and both plots are accessible by the buttons.

8.2 Creating Sliders and Selectors to the Plot

In plotly, the range slider is a custom range-type input control. It allows selecting a value or a range of values between a specified minimum and maximum range. And the range selector is a tool for selecting ranges to display within the chart. It provides buttons to select pre-configured ranges in the chart. It also provides input boxes where the minimum and maximum dates can be manually input.

Example:

Python
import plotly.graph_objects as px 
import plotly.express as go 
import numpy as np 

df = go.data.tips() 

x = df['total_bill'] 
y = df['day'] 

plot = px.Figure(data=[px.Scatter( 
    x=x, 
    y=y, 
    mode='lines',) 
]) 

plot.update_layout( 
    xaxis=dict( 
        rangeselector=dict( 
            buttons=list([ 
                dict(count=1, 
                    step="day", 
                    stepmode="backward"), 
            ]) 
        ), 
        rangeslider=dict( 
            visible=True
        ), 
    ) 
) 

plot.show() 

Output:

Welcome-To-Colaboratory---Colaboratory-(2)
Output

9. More Plots using Plotly

Scatter & Line Plots

  • plotly.express.scatter_geo() function in Python
  • plotly.express.scatter_polar() function in Python
  • plotly.express.scatter_ternary() function in Python
  • plotly.express.line_ternary() function in Python

Area charts

  • Filled area chart using plotly
  • Stacked area plot using Plotly

Sunburst & Treemap

  • Sunburst Plot using Plotly in Python
  • Sunburst Plot using graph_objects class in plotly
  • Treemap using Plotly in Python
  • Treemap using graph_objects class in plotly

Heatmaps & Density Plots

  • plotly.figure_factory.create_annotated_heatmap() function
  • plotly.figure_factory.create_2d_density() function

Ternary & Polar Charts

  • Ternary contours Plot using Plotly in Python
  • Ternary Plots in Plotly
  • How to create a Ternary Overlay using Plotly?
  • Polar Charts using Plotly in Python
  • Wind Rose and Polar Bar Charts in Plotly

3D Plots

  • 3D Cone Plots
  • 3D Volume Plots
  • 3D Streamtube Plots
  • 3D Mesh Plots

Carpet & Quiver Plots

  • Carpet Contour Plot
  • Carpet Plots using Plotly
  • Quiver Plots using Plotly

Sankey & Parallel Coordinates

  • Sankey Diagram using Plotly
  • Define Node position in Sankey Diagram
  • Parallel Coordinates Plot

Other Plot Types

  • How to create Tables using Plotly in Python?
  • plotly.figure_factory.create_dendrogram()
  • plotly.figure_factory.create_candlestick()
  • plotly.figure_factory.create_choropleth()
  • plotly.figure_factory.create_bullet()
  • Streamline Plots in Plotly

10. Styling & Features

Styling and Customization

  • Title alignment in Plotly
  • Change marker border color

Dynamic & Animated Plots

  • Plot Live Graphs using Python Dash and Plotly
  • Animated Data Visualization using Plotly Express

Web & Media

  • Introduction to Plotly-online
  • Display image using Plotly

Next Article
Introduction to Plotly-online using Python

A

abhishek1
Improve
Article Tags :
  • Python
  • Python-Plotly
Practice Tags :
  • python

Similar Reads

    Plotly tutorial
    Plotly is a popular open-source Python library used for creating interactive, publication-quality visualizations. It is widely used in data science, analytics and machine learning for presenting data insights visually and interactively. It supports a wide variety of charts including line plots, scat
    14 min read
    Introduction to Plotly-online using Python
    The plotly library is an interactive open-source library. This can be a very helpful tool for data visualization and understanding the data simply and easily. Plotly graph objects are a high-level interface to plotly which are easy to use. It can plot various types of graphs and charts like scatter
    2 min read
    Getting Started with Plotly
    The Plotly Python library is an interactive open-source graphing library. It is a very helpful tool for data visualization and understanding the data simply and easily. Plotly graph objects are a high-level interface to plotly which are easy to use. It can plot various types of graphs and charts lik
    10 min read
    Plotly for Data Visualization in Python
    Plotly is an open-source Python library designed to create interactive, visually appealing charts and graphs. It helps users to explore data through features like zooming, additional details and clicking for deeper insights. It handles the interactivity with JavaScript behind the scenes so that we c
    12 min read

    Creating a plot

    Line Chart using Plotly in Python
    Plotly is a Python library which is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library
    4 min read
    Bar chart using Plotly in Python
    Plotly is a Python library which is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. Plotly is an interactive visualization librar
    4 min read
    Histogram using Plotly in Python
    Plotly is a Python library which is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library
    3 min read
    Scatter plot using Plotly in Python
    Plotly Python is a library which is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot and many more. It is mainly used in data analysis as well as financial analysis. Plotly python is an interactive visualization
    5 min read
    Bubble chart using Plotly in Python
    Plotly is a Python library which is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. Plotly is an interactive visualization librar
    3 min read
    Pie plot using Plotly in Python
    Plotly is a Python library which is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library
    3 min read
    Box Plot using Plotly in Python
    Plotly is a Python library which is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library
    8 min read
    Gantt Chart in plotly
    Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library
    2 min read
    Contour Plots using Plotly in Python
    A Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization libra
    4 min read
    Create Heatmaps using graph_objects class in Plotly
    A Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization libra
    2 min read
    Sunburst Plot using Plotly in Python
    Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library
    4 min read
    Polar Charts using Plotly in Python
    A Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization libra
    2 min read
    Ternary Plots in Plotly
    A Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization libra
    2 min read
    3D Line Plots using Plotly in Python
    Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library
    2 min read
    3D Surface Plots using Plotly in Python
    Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library
    2 min read
    3D Bubble chart using Plotly in Python
    Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library
    2 min read
    3D Mesh Plots using Plotly in Python
    Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library
    4 min read

    Advanced Plot Customization

    How to display image using Plotly?
    A Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization libra
    2 min read
    Python Plotly - Subplots and Inset Plots
    Perquisites: Python Plotly  One of the most deceptively-powerful features of Plotly data visualization is the ability for a viewer to quickly analyze a sufficient amount of information about data when pointing the cursor over the point label appears. In this article, we are going to see about the Su
    3 min read
    Hover Text and Formatting in Python-Plotly
    Prerequisites: Python Plotly In this article, we will explore how to Hover Text and Formatting in Python. It is a useful approach to Hover Text and Formatting as it allows to reveal a large amount of data about complex information. One of the most deceptively-powerful features of data visualization
    2 min read
    How to apply different titles for each different subplots using Plotly in Python?
    Prerequisites: Python Plotly In this article, we will explore how to apply different titles for each different subplot. One of the most deceptively-powerful features of data visualization is the ability for a viewer to quickly analyze a sufficient amount of information about data when pointing the c
    2 min read

    Plotly Dash Basics

    Introduction to Dash in Python
    Dash is a Python framework for building analytical web applications. Dash helps in building responsive web dashboards that is good to look at and is very fast without the need to understand complex front-end frameworks or languages such as HTML, CSS, JavaScript. Let's build our first web dashboard u
    4 min read
    Plot Live Graphs using Python Dash and Plotly
    Dash is a Python framework built on top of ReactJS, Plotly and Flask. It is used to create interactive web dashboards using just python. Live graphs are particularly necessary for certain applications such as medical tests, stock data, or basically for any kind of data that changes in a very short a
    4 min read
    How to Install Python Dash with Conda ?
    Dash is a very useful Python tool. It is used to create a Python framework. Because of its popularity among developers, Dash is frequently used to create interactive dashboards in online applications. Dash is a Python library that is similar to Flask and Plotly. An Anaconda is referred to as a Conda
    2 min read
    Python Plotly - Exporting to Static Images
    In this article, we will discuss how to export plotly graphs as static images using Python. To get the job done there are certain additional installations that need to be done. Apart from plotly, orca and psutil have to be installed. psutil (python system and process utilities) is a cross-platform P
    2 min read
`; $(commentSectionTemplate).insertBefore(".article--recommended"); } loadComments(); }); }); function loadComments() { if ($("iframe[id*='discuss-iframe']").length top_of_element && top_of_screen articleRecommendedTop && top_of_screen articleRecommendedBottom)) { if (!isfollowingApiCall) { isfollowingApiCall = true; setTimeout(function(){ if (loginData && loginData.isLoggedIn) { if (loginData.userName !== $('#followAuthor').val()) { is_following(); } else { $('.profileCard-profile-picture').css('background-color', '#E7E7E7'); } } else { $('.follow-btn').removeClass('hideIt'); } }, 3000); } } }); } $(".accordion-header").click(function() { var arrowIcon = $(this).find('.bottom-arrow-icon'); arrowIcon.toggleClass('rotate180'); }); }); window.isReportArticle = false; function report_article(){ if (!loginData || !loginData.isLoggedIn) { const loginModalButton = $('.login-modal-btn') if (loginModalButton.length) { loginModalButton.click(); } return; } if(!window.isReportArticle){ //to add loader $('.report-loader').addClass('spinner'); jQuery('#report_modal_content').load(gfgSiteUrl+'wp-content/themes/iconic-one/report-modal.php', { PRACTICE_API_URL: practiceAPIURL, PRACTICE_URL:practiceURL },function(responseTxt, statusTxt, xhr){ if(statusTxt == "error"){ alert("Error: " + xhr.status + ": " + xhr.statusText); } }); }else{ window.scrollTo({ top: 0, behavior: 'smooth' }); $("#report_modal_content").show(); } } function closeShareModal() { const shareOption = document.querySelector('[data-gfg-action="share-article"]'); shareOption.classList.remove("hover_share_menu"); let shareModal = document.querySelector(".hover__share-modal-container"); shareModal && shareModal.remove(); } function openShareModal() { closeShareModal(); // Remove existing modal if any let shareModal = document.querySelector(".three_dot_dropdown_share"); shareModal.appendChild(Object.assign(document.createElement("div"), { className: "hover__share-modal-container" })); document.querySelector(".hover__share-modal-container").append( Object.assign(document.createElement('div'), { className: "share__modal" }), ); document.querySelector(".share__modal").append(Object.assign(document.createElement('h1'), { className: "share__modal-heading" }, { textContent: "Share to" })); const socialOptions = ["LinkedIn", "WhatsApp","Twitter", "Copy Link"]; socialOptions.forEach((socialOption) => { const socialContainer = Object.assign(document.createElement('div'), { className: "social__container" }); const icon = Object.assign(document.createElement("div"), { className: `share__icon share__${socialOption.split(" ").join("")}-icon` }); const socialText = Object.assign(document.createElement("span"), { className: "share__option-text" }, { textContent: `${socialOption}` }); const shareLink = (socialOption === "Copy Link") ? Object.assign(document.createElement('div'), { role: "button", className: "link-container CopyLink" }) : Object.assign(document.createElement('a'), { className: "link-container" }); if (socialOption === "LinkedIn") { shareLink.setAttribute('href', `https://www.linkedin.com/sharing/share-offsite/?url=${window.location.href}`); shareLink.setAttribute('target', '_blank'); } if (socialOption === "WhatsApp") { shareLink.setAttribute('href', `https://api.whatsapp.com/send?text=${window.location.href}`); shareLink.setAttribute('target', "_blank"); } if (socialOption === "Twitter") { shareLink.setAttribute('href', `https://twitter.com/intent/tweet?url=${window.location.href}`); shareLink.setAttribute('target', "_blank"); } shareLink.append(icon, socialText); socialContainer.append(shareLink); document.querySelector(".share__modal").appendChild(socialContainer); //adding copy url functionality if(socialOption === "Copy Link") { shareLink.addEventListener("click", function() { var tempInput = document.createElement("input"); tempInput.value = window.location.href; document.body.appendChild(tempInput); tempInput.select(); tempInput.setSelectionRange(0, 99999); // For mobile devices document.execCommand('copy'); document.body.removeChild(tempInput); this.querySelector(".share__option-text").textContent = "Copied" }) } }); // document.querySelector(".hover__share-modal-container").addEventListener("mouseover", () => document.querySelector('[data-gfg-action="share-article"]').classList.add("hover_share_menu")); } function toggleLikeElementVisibility(selector, show) { document.querySelector(`.${selector}`).style.display = show ? "block" : "none"; } function closeKebabMenu(){ document.getElementById("myDropdown").classList.toggle("show"); }
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences