Skip to main content
TopMiniSite

Back to all posts

How to Display A Text With Matplotlib?

Published on
2 min read
How to Display A Text With Matplotlib? image

Best Graphing Tools to Buy in October 2025

1 Mr. Pen Geometry Set with 6 Inch Swing Arm Protractor, Divider, Set Squares, Ruler, Compasses and Protractor, 15 Piece Set

Mr. Pen Geometry Set with 6 Inch Swing Arm Protractor, Divider, Set Squares, Ruler, Compasses and Protractor, 15 Piece Set

  • ALL-IN-ONE SET: 15 ESSENTIAL TOOLS FOR MATH SUCCESS AT EVERY LEVEL.

  • PORTABLE DESIGN: COMPACT POUCH FOR EASY CARRYING AND STORAGE ANYWHERE.

  • EXPERTLY CRAFTED: DESIGNED BY MATH EXPERTS TO MEET EVERY STUDENT'S NEEDS.

BUY & SAVE
$11.99
Mr. Pen Geometry Set with 6 Inch Swing Arm Protractor, Divider, Set Squares, Ruler, Compasses and Protractor, 15 Piece Set
2 Nicpro 21PCS Professional Drafting Tools & Geometry Set with Case, Architect Compass & Protractor Set, Metal Pencils, Pens, Scale Ruler Metal Ruler, 5 Drawing Templates for Interior House Plan Design

Nicpro 21PCS Professional Drafting Tools & Geometry Set with Case, Architect Compass & Protractor Set, Metal Pencils, Pens, Scale Ruler Metal Ruler, 5 Drawing Templates for Interior House Plan Design

  • ALL-IN-ONE KIT: 12 ESSENTIAL DRAFTING TOOLS FOR PRECISE DESIGN WORK.

  • DURABLE TEMPLATES: FLEXIBLE PLASTIC TEMPLATES FOR ACCURATE, BEAUTIFUL PATTERNS.

  • CONVENIENT STORAGE: STURDY CASE KEEPS ALL TOOLS NEAT AND ORGANIZED.

BUY & SAVE
$25.99 $28.99
Save 10%
Nicpro 21PCS Professional Drafting Tools & Geometry Set with Case, Architect Compass & Protractor Set, Metal Pencils, Pens, Scale Ruler Metal Ruler, 5 Drawing Templates for Interior House Plan Design
3 Mr. Pen- Professional Geometry Set, 15 pcs, Geometry Kit for Artists and Students, Geometry Set, Metal Rulers and Compasses, Drawing Tools, Drafting Supplies, Drafting Set, Drafting Tools and Kits

Mr. Pen- Professional Geometry Set, 15 pcs, Geometry Kit for Artists and Students, Geometry Set, Metal Rulers and Compasses, Drawing Tools, Drafting Supplies, Drafting Set, Drafting Tools and Kits

  • COMPLETE SET: 2 COMPASSES, TRIANGLES, RULER, PROTRACTOR, AND MORE!
  • DURABLE CASE: PROTECTS TOOLS FOR EASY TRANSPORT AND ORGANIZATION.
  • IDEAL FOR ALL: PERFECT FOR STUDENTS, TEACHERS, AND CREATIVE PROFESSIONALS!
BUY & SAVE
$19.85
Mr. Pen- Professional Geometry Set, 15 pcs, Geometry Kit for Artists and Students, Geometry Set, Metal Rulers and Compasses, Drawing Tools, Drafting Supplies, Drafting Set, Drafting Tools and Kits
4 Mr. Pen- 6 Inch, 2 Pack, Pocket Size Ruler, Small Architectural Scale

Mr. Pen- 6 Inch, 2 Pack, Pocket Size Ruler, Small Architectural Scale

  • DURABLE ALUMINUM BUILD ENSURES LONG-LASTING ACCURACY FOR ARCHITECTS.
  • COMPACT DESIGN FITS EASILY IN POCKETS FOR ON-THE-GO CONVENIENCE.
  • LASER-CUT PRINTS GUARANTEE PRECISION AND WON’T WEAR OFF OVER TIME.
BUY & SAVE
$6.95
Mr. Pen- 6 Inch, 2 Pack, Pocket Size Ruler, Small Architectural Scale
5 STAEDTLER 10-Piece Math Set with Metal Compass, 6" Ruler & Triangle Squares, 45° & 30/60° Set Squares, Alphabet Stencil - Measuring Tools

STAEDTLER 10-Piece Math Set with Metal Compass, 6" Ruler & Triangle Squares, 45° & 30/60° Set Squares, Alphabet Stencil - Measuring Tools

  • ALL-IN-ONE SET: COMPASS, RULER, STENCIL, AND SET SQUARES INCLUDED.
  • ACHIEVE PRECISION IN GEOMETRY AND ART WITH PROFESSIONAL-GRADE TOOLS.
  • DURABLE DESIGN ENSURES RELIABILITY AND ACCURACY FOR STUDENTS AND ARTISTS.
BUY & SAVE
$7.79
STAEDTLER 10-Piece Math Set with Metal Compass, 6" Ruler & Triangle Squares, 45° & 30/60° Set Squares, Alphabet Stencil - Measuring Tools
6 Nicpro 20PCS Professional Geometry Set with Case, Drafting Tools with Protractor and Compass, Metal Rulers, Triangles, Pens, Pencils, Drawing Supplies, Drafting Kit for Architect Engineer Students

Nicpro 20PCS Professional Geometry Set with Case, Drafting Tools with Protractor and Compass, Metal Rulers, Triangles, Pens, Pencils, Drawing Supplies, Drafting Kit for Architect Engineer Students

  • PRECISION TOOLS: HIGH-QUALITY COMPASSES AND PROTRACTOR FOR ACCURATE RESULTS.
  • VERSATILE USE: IDEAL FOR ART, ENGINEERING, MATH, AND ARCHITECTURAL PROJECTS.
  • ORGANIZED & PORTABLE: STURDY STORAGE BOX KEEPS ALL TOOLS NEAT AND ACCESSIBLE.
BUY & SAVE
$21.99
Nicpro 20PCS Professional Geometry Set with Case, Drafting Tools with Protractor and Compass, Metal Rulers, Triangles, Pens, Pencils, Drawing Supplies, Drafting Kit for Architect Engineer Students
7 Akuoly Math Compasses Back-to-School Starter Geometry Kit with 2 Drafting Compasses Protractor Set Squares Ruler and More for Students Maths Study Homework, Blue Set with Carry Case

Akuoly Math Compasses Back-to-School Starter Geometry Kit with 2 Drafting Compasses Protractor Set Squares Ruler and More for Students Maths Study Homework, Blue Set with Carry Case

  • COMPLETE GEOMETRY SET: 2 COMPASSES, PROTRACTOR, AND SET SQUARES.
  • DURABLE CARRY CASE: KEEP YOUR TOOLS ORGANIZED AND PORTABLE.
  • ESSENTIAL FOR STUDENTS: IDEAL FOR PRECISE GEOMETRIC CONSTRUCTIONS.
BUY & SAVE
$8.99
Akuoly Math Compasses Back-to-School Starter Geometry Kit with 2 Drafting Compasses Protractor Set Squares Ruler and More for Students Maths Study Homework, Blue Set with Carry Case
8 Tenare 1 Set Plastic Clear Math Set Includes Protractor Triangle Rulers 12 Inch 6 Inch Straight Geometry Math Transparent Ruler Measuring Tool for School Office Home Supplies(Clear)

Tenare 1 Set Plastic Clear Math Set Includes Protractor Triangle Rulers 12 Inch 6 Inch Straight Geometry Math Transparent Ruler Measuring Tool for School Office Home Supplies(Clear)

  • COMPLETE SET INCLUDES RULERS AND PROTRACTORS FOR ALL MEASURING TASKS.
  • ACCURATE SCALE FOR PRECISE MEASUREMENTS IN BOTH DEGREES AND UNITS.
  • DURABLE, LIGHTWEIGHT DESIGN FOR EASY PORTABILITY AND LONG-LASTING USE.
BUY & SAVE
$5.98 $7.95
Save 25%
Tenare 1 Set Plastic Clear Math Set Includes Protractor Triangle Rulers 12 Inch 6 Inch Straight Geometry Math Transparent Ruler Measuring Tool for School Office Home Supplies(Clear)
9 Angrox Geometric Drawings Templates Measuring Geometry Rulers 15 Pcs with 1 Pack File Bag for Design School Studying Office Building…

Angrox Geometric Drawings Templates Measuring Geometry Rulers 15 Pcs with 1 Pack File Bag for Design School Studying Office Building…

  • 11 VERSATILE TEMPLATES PLUS 4 MEASURING TOOLS FOR ANY PROJECT!

  • DURABLE, CLEAR PLASTIC FOR EASY VISIBILITY AND LONG-LASTING USE.

  • PERFECT FOR STUDENTS, ARTISTS, AND PROFESSIONALS ACROSS VARIOUS FIELDS!

BUY & SAVE
$15.99 $18.99
Save 16%
Angrox Geometric Drawings Templates Measuring Geometry Rulers 15 Pcs with 1 Pack File Bag for Design School Studying Office Building…
10 Nicpro Carpenter Pencil with Sharpener, Mechanical Pencils Set with 26 Refills, Deep Hole Marker for Construction, Heavy Duty Woodworking Tools for Architect (Black, Red) - With Case

Nicpro Carpenter Pencil with Sharpener, Mechanical Pencils Set with 26 Refills, Deep Hole Marker for Construction, Heavy Duty Woodworking Tools for Architect (Black, Red) - With Case

  • COMPLETE SET: INCLUDES 2 PENCILS, 26 REFILLS, SHARPENER & STORAGE BOX!

  • DEEP HOLE DESIGN: MARKS EASILY IN TIGHT SPOTS WITH ELONGATED 45MM TIP.

  • DURABLE LEAD: THICK 2.8 MM LEAD WON'T BREAK EASILY, IDEAL FOR HEAVY USE!

BUY & SAVE
$8.99 $13.99
Save 36%
Nicpro Carpenter Pencil with Sharpener, Mechanical Pencils Set with 26 Refills, Deep Hole Marker for Construction, Heavy Duty Woodworking Tools for Architect (Black, Red) - With Case
+
ONE MORE?

To display text with matplotlib, you can use the plt.text() function. This function allows you to add text to a specific location on the plot by specifying the x and y coordinates and the text itself. You can also customize the font size, font color, font style, and alignment of the text. Additionally, you can use LaTeX expressions to format mathematical symbols and equations in the text. Overall, plt.text() provides a flexible way to add informative text to your matplotlib plots.

What is the default text box border color in matplotlib?

The default text box border color in matplotlib is black.

What is the default text alignment in matplotlib?

The default text alignment in matplotlib is left alignment.

How to set the font size in matplotlib?

You can set the font size in matplotlib by using the fontsize parameter in the plt.x[ticks](https://bloggdog.dsn-hkpr.ca/blog/how-to-wrap-d3-js-labels-with-ticks)(), plt.yticks(), plt.xlabel(), plt.ylabel(), plt.title(), and plt.legend() functions.

Here's an example of how to set the font size for the x-axis ticks:

import matplotlib.pyplot as plt

plt.plot([1, 2, 3, 4], [1, 4, 9, 16]) plt.xlabel('x-axis', fontsize=12) plt.show()

In this example, the fontsize parameter is set to 12, which will change the font size of the x-axis label to 12. You can similarly set the font size for other elements like y-axis ticks, title, and legend.