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, Back to School Supplies

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

  • COMPREHENSIVE 15-PIECE SET CATERS TO ALL LEVELS, ENHANCING LEARNING.

  • PORTABLE, REUSABLE POUCH SIMPLIFIES STORAGE AND ON-THE-GO USE.

  • EXPERTLY DESIGNED BY MATH PROFESSIONALS FOR OPTIMAL TEACHING SUPPORT.

BUY & SAVE
$11.99
Mr. Pen Geometry Set with 6 Inch Swing Arm Protractor, Divider, Set Squares, Ruler, Compasses and Protractor, 15 Piece Set, Back to School Supplies
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

  • COMPLETE DRAFTING SET FOR PRECISE DESIGN WORK AND EASY CORRECTIONS.
  • DURABLE, FLEXIBLE TEMPLATES FOR ACCURATE PATTERNS ON ANY SURFACE.
  • CONVENIENT STORAGE CASE KEEPS TOOLS ORGANIZED AND READY TO USE.
BUY & SAVE
$25.99
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

  • COMPREHENSIVE SET: 13 ESSENTIAL TOOLS FOR ALL GEOMETRIC NEEDS.
  • DURABLE CASE: PROTECTS TOOLS AND EASY TO CARRY ANYWHERE.
  • IDEAL GIFT: 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 Nicpro 22 PCS Compass Geometry Tools with Case, Drafting Tools Geometry Set with Swing Arm Protractor, Rulers, Metal Compass, Divider, Square Set, Pencil, Back to School Supplies for Students Kids

Nicpro 22 PCS Compass Geometry Tools with Case, Drafting Tools Geometry Set with Swing Arm Protractor, Rulers, Metal Compass, Divider, Square Set, Pencil, Back to School Supplies for Students Kids

  • ALL-IN-ONE SET: INCLUDES 3 COMPASSES AND ESSENTIAL DRAFTING TOOLS.
  • HIGH-QUALITY COMPASSES ENSURE PRECISE CIRCLES AND LONG-LASTING USE.
  • COMPACT CASE MAKES IT EASY TO CARRY FOR SCHOOL OR ON-THE-GO PROJECTS.
BUY & SAVE
$13.99 $14.99
Save 7%
Nicpro 22 PCS Compass Geometry Tools with Case, Drafting Tools Geometry Set with Swing Arm Protractor, Rulers, Metal Compass, Divider, Square Set, Pencil, Back to School Supplies for Students Kids
5 Nicpro 35PCS Art Mechanical Pencil Set, 3 PCS Metal Drafting Pencil 0.5 mm & 0.7 mm & 0.9 mm & 3 PCS 2mm Lead Holder (6B 4B 2B HB 2H 4H Colors) For Sketching Drawing With 20 Tube Lead Refills Case

Nicpro 35PCS Art Mechanical Pencil Set, 3 PCS Metal Drafting Pencil 0.5 mm & 0.7 mm & 0.9 mm & 3 PCS 2mm Lead Holder (6B 4B 2B HB 2H 4H Colors) For Sketching Drawing With 20 Tube Lead Refills Case

  • VERSATILE LEAD CHOICES: SWITCH BETWEEN 4 SIZES & 6 HARDNESS LEVELS FOR PRECISION.

  • COMFORTABLE ERGONOMIC DESIGN: FATIGUE-FREE WRITING WITH ANTI-SLIP GRIPS FOR CONTROL.

  • COMPLETE ARTIST SET: 35 PIECES ENSURE YOU'RE READY FOR ANY CREATIVE TASK!

BUY & SAVE
$12.59 $18.99
Save 34%
Nicpro 35PCS Art Mechanical Pencil Set, 3 PCS Metal Drafting Pencil 0.5 mm & 0.7 mm & 0.9 mm & 3 PCS 2mm Lead Holder (6B 4B 2B HB 2H 4H Colors) For Sketching Drawing With 20 Tube Lead Refills Case
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

  • COMPREHENSIVE 14-PIECE KIT FOR PRECISION IN GEOMETRY AND DESIGN.

  • HIGH-QUALITY COMPASSES ENSURE ACCURATE MEASUREMENTS FOR EVERY PROJECT.

  • CONVENIENT STORAGE BOX KEEPS TOOLS ORGANIZED AND PORTABLE ON-THE-GO.

BUY & SAVE
$19.99 $21.99
Save 9%
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 Jimtoiny 3D Multi-Angle Measuring Ruler, Professional 45 90 Degree Aluminum Alloy Woodworking Square Protractor, Miter Triangle Ruler, Precision Layout Measuring Tool Metric Construction Rulers

Jimtoiny 3D Multi-Angle Measuring Ruler, Professional 45 90 Degree Aluminum Alloy Woodworking Square Protractor, Miter Triangle Ruler, Precision Layout Measuring Tool Metric Construction Rulers

  • DURABLE DESIGN: PREMIUM ALUMINUM WITH CORROSION RESISTANCE FOR LONGEVITY.

  • PRECISION MARKINGS: LASER-PRINTED SCALES FOR ACCURATE, EASY MEASUREMENTS.

  • VERSATILE TOOL: PERFECT FOR DIY, WOODWORKING, AND PROFESSIONAL PROJECTS.

BUY & SAVE
$4.88
Jimtoiny 3D Multi-Angle Measuring Ruler, Professional 45 90 Degree Aluminum Alloy Woodworking Square Protractor, Miter Triangle Ruler, Precision Layout Measuring Tool Metric Construction Rulers
8 Mr. Pen- 6 Inch, 2 Pack, Pocket Size Ruler, Small Architectural Scale

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

  • COMPACT 6-INCH SIZE: PERFECT FOR ON-THE-GO ARCHITECTS AND DESIGNERS!
  • DURABLE ALUMINUM CONSTRUCTION ENSURES LASTING PRECISION AND PERFORMANCE.
  • ACCURATE LASER-CUT PRINTS: NO FADING OR SCRATCHING FOR RELIABLE MEASUREMENTS!
BUY & SAVE
$6.95
Mr. Pen- 6 Inch, 2 Pack, Pocket Size Ruler, Small Architectural Scale
9 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: COMPASSES, PROTRACTOR, SET SQUARES, RULER.
  • CONVENIENT CARRY CASE FOR EASY TRANSPORT AND STORAGE.
  • PERFECT FOR STUDENTS' GEOMETRIC CONSTRUCTIONS AND MATH PRACTICE.
BUY & SAVE
$6.99 $9.99
Save 30%
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
10 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…

  • VERSATILE 11PCS TEMPLATES FOR PRECISE GEOMETRIC DRAWINGS ANYWHERE!
  • DURABLE, CLEAR PLASTIC FOR EASY READING AND LONG-LASTING USE.
  • IDEAL FOR STUDENTS AND PROFESSIONALS IN VARIOUS CREATIVE 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…
+
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.