Skip to content
KnowledgeCity

Python: Creating Interactive Data with Plots

Creating interactive plots using HVPlot.
Preview the first lesson free — get full access to all 3 lessons.
Course: On-Demand
Intermediate Provider Brian Higgins  3 Lessons ·  14m  in Arabic, German, English, Spanish, French, Portuguese, Chinese 

Course Description

In these lessons, you will learn to create interactive plots using HVPlot. The Python HVPlot library is a high-level plotting API built on HoloViews, which provides a general and consistent API for plotting data. We’ll show you how to use HVPlot and how the various toolbar widgets work, with functions including pan, reset, box zoom, wheel zoom, save, and hover. These features will allow you to move the graph, zoom in or out of the graph, and get data on a point of interest in the graph.

We’ll also show you how the save feature lets you save a graph image to disk for later use. For these graphs, you will use the Python Numpy library to generate random hypothetical data to plot out. Then you’ll learn how to add and use a filter widget on your HVPlot, which will allow you to show the line graph for the list of data you filter on.

What You'll Learn

  • Create interactive line plots using the Python HVPlot library
  • Use HVPlot toolbar widgets including pan, reset, box zoom, wheel zoom, save, and hover
  • Generate random hypothetical data to plot using the Python NumPy library
  • Add and use a filter widget to focus a line graph on selected data
  • Save a graph image to disk for later use with the save feature

Key Takeaways

  • HVPlot is a high-level plotting API built on HoloViews that provides a general and consistent API for plotting data.
  • The toolbar widgets let you move the graph, zoom in or out, and get data on a point of interest, including pan, reset, box zoom, wheel zoom, save, and hover functions.
  • The save feature lets you save a graph image to disk for later use.
  • The Python NumPy library is used to generate random hypothetical data to plot.
  • A filter widget added to an HVPlot lets you show the line graph for the list of data you filter on.

Frequently Asked Questions

What will I learn in this course?

You will learn to create interactive line plots using HVPlot, use each toolbar widget attached to an HVPlot graph, and add a filter widget to a line graph to focus in on data.

What is HVPlot?

The Python HVPlot library is a high-level plotting API built on HoloViews, which provides a general and consistent API for plotting data.

Which toolbar widgets does the course cover?

The course covers toolbar widgets with functions including pan, reset, box zoom, wheel zoom, save, and hover, which let you move the graph, zoom in or out, and get data on a point of interest.

What Python library is used to generate the data for the plots?

The course uses the Python NumPy library to generate random hypothetical data to plot out.

What topics do the lessons cover?

The lessons cover creating an interactive line plot using HVPlot, exploring toolbar widgets, and adding a filter widget.