Graphing a Discontinuous Function with PGFPLOTS (Unlocking LaTeX Graphics Episode 56)

Опубликовано: 01 Май 2026
на канале: Unlocking LaTeX Graphics
489
34

In this episode of Unlocking LaTeX Graphics, applied mathematician Tammy Kolda demonstrates how to graph a discontinuous function using PGFPLOTS. Inspired by a Reddit discussion, she walks through creating a figure with axes in the middle, grid lines, open and closed circle marks, customized axes and grid lines; positioning title and axis labels; and adding TikZ nodes to a PGFPLOTS axis. Tammy also covers important details like document setup, setting compatibility level, and other styling options. Watch to enhance your LaTeX skills and recreate complex graphs using PGFPLOTS. Be sure to like, subscribe, and check the show notes for additional resources and links to relevant episodes.

00:00 Welcome & Today's Topic
00:44 Document Setup
01:16 Original Image
02:06 PGFPLOTS Setup
02:53 Defining the Function
04:15 Middle Axes and Grid Lines
04:34 Adding Open Circle Markers
06:41 Adding a TikZ Node
07:25 Relocating the Title
08:29 Restyle the Axes
09:33 Relocate X & Y Labels
10:13 Tick Mark Backgrounds
10:38 Changing the Grid Style
10:52 Thanks for Watching

Key terms: texlatex, pgfplots, middle axes, discontinuous function, open circle marker, title positioning, axis label positioning, tick mark backgrounds, grid style, tikz nodes in PGFPLOTS

Related Episodes

Getting Started with PGFPLOTS:    • Getting Started with PGFPLOTS (Unlocking L...  
Plotting Math Expressions:    • Plotting Math Expressions Directly in LaTe...  

Today's Document on Overleaf: https://www.overleaf.com/read/qnrcmbk...

Reddit discussion that inspired this episode:   / are_there_any_other_graphing_packages_othe...  

Unlocking LaTeX Graphics Book: https://latex-graphics.com

Purchase Book on Amazon: https://amzn.to/3z76nwb