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 December 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

  • COMPLETE 15-PIECE SET FOR STUDENTS AND TEACHERS OF ALL LEVELS.

  • DURABLE, PORTABLE POUCH FOR EASY STORAGE AND TRANSPORT.

  • EXPERT-DESIGNED TOOLS FOR PRECISION IN INCH AND CENTIMETER MEASUREMENTS.

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 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 GEOMETRY SET WITH TOOLS FOR ALL LEVELS-STUDENTS TO PROS!
  • DURABLE CASE KEEPS TOOLS ORGANIZED AND PORTABLE FOR EASY USE.
  • IDEAL GIFT FOR KIDS, ARTISTS, AND PROFESSIONALS-PERFECT FOR ANY OCCASION!
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
3 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 21PCS SET FOR ARCHITECTS, ENGINEERS, AND DESIGNERS' NEEDS.
  • DURABLE, FLEXIBLE TEMPLATES ENSURE EFFICIENT, PRECISE DESIGN WORK.
  • PORTABLE CARRYING CASE KEEPS TOOLS ORGANIZED AND READY FOR USE.
BUY & SAVE
$28.97
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
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

  • COMPACT 6-INCH SIZE: PERFECT FOR ARCHITECTS ON-THE-GO!
  • DURABLE LASER-CUT MARKS: ACCURATE MEASUREMENTS THAT NEVER WEAR OFF.
  • HIGH-IMPACT ALUMINUM: BUILT TO LAST, IDEAL FOR PROFESSIONAL USE.
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 KIT: INCLUDES COMPASS, RULER, STENCILS, AND SET SQUARES.
  • ACHIEVE PRECISION: PROFESSIONAL TOOLS FOR ACCURATE MEASURING AND DRAWING.
  • BUILT TO LAST: DURABLE MATERIALS ENSURE RELIABILITY 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 16PCS Drafting Tools with 12‘’ Aluminum Architect Scale Ruler, Mechanical Pencils 0.5, 0.7, 0.9 & 2mm, Lead Refills, 2 Pack Graph Paper Pad, Geometry Drawing Kit for Engineers Students Design

Nicpro 16PCS Drafting Tools with 12‘’ Aluminum Architect Scale Ruler, Mechanical Pencils 0.5, 0.7, 0.9 & 2mm, Lead Refills, 2 Pack Graph Paper Pad, Geometry Drawing Kit for Engineers Students Design

  • COMPLETE 16-PIECE TOOLKIT FOR ARCHITECTS, ENGINEERS, AND STUDENTS!
  • HIGH-IMPACT ALUMINUM SCALE WITH FADE-FREE PRECISION FOR DURABILITY!
  • INCLUDES PROFESSIONAL MECHANICAL PENCILS AND PREMIUM GRAPH PAPER PADS!
BUY & SAVE
$23.99 $25.99
Save 8%
Nicpro 16PCS Drafting Tools with 12‘’ Aluminum Architect Scale Ruler, Mechanical Pencils 0.5, 0.7, 0.9 & 2mm, Lead Refills, 2 Pack Graph Paper Pad, Geometry Drawing Kit for Engineers Students Design
7 Mr. Pen Architectural Triangular Ruler Set with 12 Inch Triangular Scale, 11 Inch 30/60 and 8 Inch 45/90 Triangles

Mr. Pen Architectural Triangular Ruler Set with 12 Inch Triangular Scale, 11 Inch 30/60 and 8 Inch 45/90 Triangles

  • VERSATILE SET: 3 TRIANGLES & SCALE FOR ALL YOUR DRAFTING NEEDS!

  • DURABLE & SHATTERPROOF: BUILT TO LAST FOR EVERYDAY USE!

  • EFFORTLESS ACCURACY: QUICK SCALE SELECTION FOR PRECISION DRAFTING!

BUY & SAVE
$11.85
Mr. Pen Architectural Triangular Ruler Set with 12 Inch Triangular Scale, 11 Inch 30/60 and 8 Inch 45/90 Triangles
8 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

  • PRECISE DRAWING TOOLS: DURABLE COMPASSES FOR ACCURACY IN EVERY PROJECT.

  • ALL-IN-ONE SET: ESSENTIAL TOOLS FOR MATH, ART, AND ENGINEERING NEEDS.

  • CONVENIENT STORAGE: PORTABLE BOX KEEPS ALL TOOLS ORGANIZED AND SAFE.

BUY & SAVE
$24.96
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
9 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: 2 PENCILS, 26 REFILLS, SHARPENER & STORAGE BOX INCLUDED!
  • ELONGATED TIP DESIGN REACHES TIGHT SPOTS FOR PRECISE MARKING.
  • DURABLE 2.8 MM LEAD WITHSTANDS WEAR, MARKING ON DIVERSE SURFACES!
BUY & SAVE
$8.89 $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
10 STAEDTLER Math Set - 4 pc Geometry Kit for Students - School Supplies with Clear Protractor, 6in Ruler & 2 Triangles – Metric & Imperial Scales

STAEDTLER Math Set - 4 pc Geometry Kit for Students - School Supplies with Clear Protractor, 6in Ruler & 2 Triangles – Metric & Imperial Scales

  • ALL-IN-ONE GEOMETRY KIT: RULER, PROTRACTOR, AND TRIANGLES INCLUDED.
  • PRECISION MEASUREMENT TOOLS: CLEAR SCALES FOR ACCURATE RESULTS, NO SQUINTING.
  • SMART, PORTABLE DESIGN: ORGANIZED WALLET FOR EASY ACCESS AND PROTECTION.
BUY & SAVE
$4.99
STAEDTLER Math Set - 4 pc Geometry Kit for Students - School Supplies with Clear Protractor, 6in Ruler & 2 Triangles – Metric & Imperial Scales
+
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.