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 12 - more customization of colors and fills

56.4K views
•
July 11, 2015
by
sentdex
YouTube video player
Matplotlib Tutorial 12 - more customization of colors and fills

TL;DR

Learn how to customize colors, labels, and fills in data visualization using Matplotlib and Python.

Transcript

what's going on everybody Welcome To Part 12 of our data visualization with mat plot lib and Python tutorial video series in this video what we're going to be talking about is more customization of various colors as well as doing some fills so with that let's go ahead and hop right in first of all what I want us to go ahead and do is comment out th... Read More

Key Insights

  • ❓ Matplotlib and Python provide extensive customization options for colors and fills in data visualization.
  • 🧍 Labels on the X and Y axes can be easily customized by changing their colors to make them stand out.
  • 😫 Specific tick markers can be set on the Y axis to highlight particular values of interest.
  • 😥 Fills can be used to visualize areas between data points or based on specific conditions, such as profit and loss in stock prices.
  • 🪜 Adding transparency to fills can help retain visibility of underlying data.
  • ⚾ Fills can be further customized by assigning different colors to specific areas based on logical conditions.
  • ❓ These customization options provide flexibility in creating visually appealing and informative data visualizations.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How can I change the color of labels on the X and Y axes?

To change the color of X and Y axis labels, you can use the code "ax1.xaxis.label.set_color('cyan')" for the X axis and "ax1.yaxis.label.set_color('red')" for the Y axis. This will update the color of the labels accordingly.

Q: How can I set specific tick markers on the Y axis?

To set specific tick markers on the Y axis, you can use the code "ax1.set_yticks([0, 25, 50, 75])". This will set the tick markers at the values 0, 25, 50, and 75 on the Y axis.

Q: How can I fill between specific values in a plot?

To fill between specific values in a plot, you can use the code "ax1.fill_between(date, close_p, 0)". This will fill the area between the data points and the horizontal line at 0 with color.

Q: How can I fill based on a condition or logic?

To fill based on a condition or logic, you can use the code "ax1.fill_between(date, close_p, close_p[0], where=close_p > close_p[0])". This will fill the area between the data points and the starting value only where the closing price is greater than the starting price.

Summary & Key Takeaways

  • The video tutorial focuses on customization options for colors and fills in data visualization using Matplotlib and Python.

  • The presenter demonstrates how to change the color of labels on the X and Y axes, and provides an example of labeling the stock price.

  • The tutorial also covers filling between specific values, adding transparency to fills, and filling based on logic.


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 📚

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