# How to create a Dot Plot in Plotly Python

In this post, you will learn how to create a Dot plot in Plotly Python.

## 1 . Create a Dot plot with Plotly Express –

Dot plots (also known as Cleveland dot plots) are scatter plots with one categorical axis and one continuous axis. They can be used to show changes between two (or more) points in time or between two (or more) conditions. Compared to a bar chart, dot plots can be less cluttered and allow for an easier comparison between conditions.

import pandas as pd
df.head()

To create a Dot plot in plotly express we use the px.scatter() method.

import plotly.express as px
fig = px.scatter(df, y='Degree', x='Starting Salary')
fig.update_layout(title="Earnings By Degree")
fig.show()

2 . Create a Dot Plot with Plotly Graph Objects –

To create a Dot plot with Plotly Graph Objects, we use the go.Scatter() method.

import plotly.graph_objects as go

fig = go.Figure()
fig.show()