Underleaf Logo
Underleaf
Blog
Log InTry Free

Learn PGFPlots

Getting Started

  • What is PGFPlots?
  • PGFPlots for Beginners
  • Basic Setup

Legends in PGFPlots

Create and customize legends to explain your plot data.

Basic Legend

Legend Position

Legend Styling

Multi-Column Legends

Legend Cell Alignment

Legend Image Size

Reverse Legend Order

Legend Outside Plot

Legend with Math

Skip Legend Entries

Custom Legend

Next Steps

Continue learning PGFPlots:

  • Colors and Styles - Visual customization
  • Multiple Plots - Subplots and grouping
  • Axis Customization - Advanced axis options

Try it free

Sketch it — AI draws the TikZ.

Upload a photo of a hand-drawn diagram, flowchart, or plot and Underleaf generates the TikZ code for you. 10 free credits every month, no credit card required.

Convert your diagram
A hand-drawn sketch converted into a clean TikZ diagram

Legends in PGFPlots

Create and customize legends to explain your plot data.

Basic Legend

Legend Position

Legend Styling

Multi-Column Legends

Legend Cell Alignment

Legend Image Size

Reverse Legend Order

Legend Outside Plot

Legend with Math

Skip Legend Entries

Custom Legend

Next Steps

Continue learning PGFPlots:

Underleaf Logo
Underleaf

Practical tools for academic writing, document conversion, and research workflows.

Go to appContact us

Company

PricingBlogTutorialsConference TemplatesConference Deadlines

Free Tools

Image to LaTeXExcel to LaTeXArXiv to LaTeXTikZ GeneratorLaTeX Table GeneratorCitation GeneratorThesis GeneratorChrome ExtensionAll Tools

Ask AI about Underleaf

Ask ChatGPTAsk ClaudeAsk Perplexity

© 2026 Underleaf. All rights reserved.