Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

Matplotlib Tutorial 21 - adding more indicator data to our charts

22.4K views
•
July 11, 2015
by
sentdex
YouTube video player
Matplotlib Tutorial 21 - adding more indicator data to our charts

TL;DR

This tutorial demonstrates how to create functions to generate additional data for plotting in Matplotlib, including a moving average and high minus low values.

Transcript

hello everybody and welcome to part 21 of our matplotlib tutorial series in this video we're gonna do is create a couple of functions that will give us some more data to plot so we don't really have anything on that axis 1 or axis 3 so we're gonna write a couple of quick functions to generate some sort of useful data to place on those on those axes... Read More

Key Insights

  • 📈 Moving averages are a popular tool for analyzing trends in data, especially in stock trading.
  • 😒 The moving average function in this tutorial uses numpy's repeat and convolve functions for efficient calculation.
  • 😘 Calculating the difference between high and low values can provide insights into market volatility.
  • 👂 List mapping is a useful technique for applying a function to each pair of values in a list.
  • 📔 Customizing the appearance and behavior of plotted data will be covered in future tutorials.
  • ❓ The purpose of this tutorial is to generate sample data for Matplotlib, not to provide in-depth financial analysis.
  • 😷 The tutorial encourages viewers to ask questions and seek further understanding of the concepts covered.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: What is the purpose of a moving average?

A moving average is used to calculate trends in data by taking the average of a specified number of data points. It is commonly used in stock analysis to identify buying and selling opportunities.

Q: How is the moving average function implemented?

The moving average function takes two parameters: values (the data points) and window (the number of data points to consider for the average). It uses numpy's repeat and convolve functions to calculate the moving average.

Q: What is the purpose of calculating the difference between high and low values?

Calculating the difference between high and low values provides information about the volatility of the data. It can help identify periods of high or low market activity.

Q: How is the high minus low function implemented?

The high minus low function takes two parameters: highs and lows (the corresponding high and low values). It uses list mapping to apply the high minus low calculation to each pair of values, returning a list of the differences.

Summary & Key Takeaways

  • The video tutorial focuses on creating functions to generate data for axes 1 and 3 in Matplotlib.

  • The first function created is for calculating a moving average, which is useful for analyzing trends in data.

  • The second function calculates the difference between high and low values, providing additional insights for analysis.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from sentdex 📚

How to Parse Twitter for Twitter Analysis: Part 1 thumbnail
How to Parse Twitter for Twitter Analysis: Part 1
sentdex
How to Train a Chatbot Using TensorFlow and Python thumbnail
How to Train a Chatbot Using TensorFlow and Python
sentdex
Python Generator Functions for massive Performance Improvements with Lists thumbnail
Python Generator Functions for massive Performance Improvements with Lists
sentdex
Python: How to Program the Chaikin Money Flow Trading Indicator thumbnail
Python: How to Program the Chaikin Money Flow Trading Indicator
sentdex
Parsing XML - Go Lang Practical Programming Tutorial p.11 thumbnail
Parsing XML - Go Lang Practical Programming Tutorial p.11
sentdex
Python: How to Graph the Chaikin Money Flow Trading Indicator in Matplotlib thumbnail
Python: How to Graph the Chaikin Money Flow Trading Indicator in Matplotlib
sentdex

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.