Better Programming

Advice for programmers.

Follow publication

Member-only story

Keep Track of Your Travels With Plotly Express

Lee Vaughan
Better Programming
Published in
6 min readJun 29, 2023

--

Image by Alyssia Wilson on Unsplash

My youngest daughter uses a large physical wall map to track her travels. I’d like to do that too but — thanks to her — I don’t have the room!

That’s okay. I know Python. I can digitally create my own interactive travel map that takes up no space, costs nothing, and can be easily shared and accessed from anywhere. And the good news is, so can you!

In this Quick Success Data Science project, we’ll unlock the secret to visualizing adventures using Python, pandas, and Plotly Express.

The Plotly Express Library

Before we dive into the world of interactive maps, let’s ensure we have the necessary tools. Make sure you have Python installed on your machine, along with the popular data manipulation library, pandas, and the powerful visualization library, Plotly Express.

Plotly Express is a higher-level version of the Plotly graphing library. It abstracts away much of the drudgery in making plots and lets you easily produce attractive figures with a lot of built-in functionality.

Plotly Express requires Plotly as a dependency. You can install it with either conda or pip.

--

--

Lee Vaughan
Lee Vaughan

Written by Lee Vaughan

Author of “Python Tools for Scientists,” “Impractical Python Projects,” and “Real World Python.” Former Senior Principal Scientist for ExxonMobil.

Responses (1)

Write a response