Saturday, March 16, 2024

Create Map Plots with Plotly | by Caroline Arnold | Sep, 2023

Must read

5 examples from the Important Volcanic Eruption database

Towards Data Science
Photograph by Willian Justen de Vasconcellos on Unsplash

Plotly is a superb open supply library for visualizing knowledge. On this weblog put up, I’m going to indicate you how one can generate cartographic plots with plotly, working with the Python backend.

For illustration functions, I’ll use the Important Volcanic Eruption Database, revealed by the US Nationwide Facilities for Environmental Info below the U.S. Authorities Work License. The dataset is on the market for obtain right here:

You will see the next 5 visualizations:

  1. World distribution of serious volcanic eruptions
  2. Volcano sorts in North America
  3. Volcanic eruptions related to tsunamis
  4. Most damaging volcanic eruptions
  5. Humorous map projections

For readers concerned about utilizing plotly for knowledge evaluation, please discuss with my current put up on visualizing knowledge from the Girls’s World Cup:

Making ready the info

After downloading the volcanic eruption database, we load it as a pandas DataFrame. DataFrames combine naturally with Plotly and are handy for knowledge evaluation. We remodel the columns that encode whether or not a volcanic eruption is related to a volcano or an earthquake to True/False values and add new columns for the latitude and longitude of an eruption.

Supply hyperlink

More articles


Please enter your comment!
Please enter your name here

Latest article