GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Installation
  • Documentation
  • Examples
  • Tutorials
  • Contributing

This view

  • Original page
  • New address

GeezerVison is showing matplotlib.org — matplotlib.pyplot.xlabel — Matplotlib 3.1.2 documentation

You are reading an old version of the documentation (v3.1.1). For the latest version see https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.xlabel.html
Version 3.1.2
matplotlib
Fork me on GitHub

Navigation

  • index
  • modules |
  • next |
  • previous |
  • home| 
  • contents »
  • API Overview »
  • matplotlib.pyplot »
  • matplotlib.pyplot »

Quick search

Table of Contents

  • matplotlib.pyplot.xlabel
    • Examples using matplotlib.pyplot.xlabel

Related Topics

  • Documentation overview
    • API Overview
      • matplotlib.pyplot
        • matplotlib.pyplot
          • Previous: matplotlib.pyplot.xkcd
          • Next: matplotlib.pyplot.xlim
Show Page Source

matplotlib.pyplot.xlabel¶

matplotlib.pyplot.xlabel(xlabel, fontdict=None, labelpad=None, **kwargs)[source]¶

Set the label for the x-axis.

Parameters:
xlabel : str

The label text.

labelpad : scalar, optional, default: None

Spacing in points from the axes bounding box including ticks and tick labels.

Other Parameters:
**kwargs : Text properties

Text properties control the appearance of the label.

See also

text
for information on how override and the optional args work

Examples using matplotlib.pyplot.xlabel¶

../../_images/sphx_glr_nan_test_thumb.png

Nan Test

../../_images/sphx_glr_scatter_symbol_thumb.png

Scatter Symbol

../../_images/sphx_glr_subplot_thumb.png

Multiple subplots

../../_images/sphx_glr_multiline_thumb.png

Multiline

../../_images/sphx_glr_text_fontdict_thumb.png

Controlling style of text and labels using a dictionary

../../_images/sphx_glr_pyplot_mathtext_thumb.png

Pyplot Mathtext

../../_images/sphx_glr_pyplot_text_thumb.png

Pyplot Text

../../_images/sphx_glr_plot_solarizedlight2_thumb.png

Solarized Light stylesheet

../../_images/sphx_glr_findobj_demo_thumb.png

Findobj Demo

../../_images/sphx_glr_plotfile_demo_thumb.png

Plotfile Demo

../../_images/sphx_glr_custom_scale_thumb.png

Custom scale

../../_images/sphx_glr_pgf_fonts_thumb.png

Pgf Fonts

../../_images/sphx_glr_pgf_preamble_sgskip_thumb.png

Pgf Preamble

../../_images/sphx_glr_pgf_texsystem_thumb.png

Pgf Texsystem

../../_images/sphx_glr_usage_thumb.png

Usage Guide

../../_images/sphx_glr_pyplot_thumb.png

Pyplot tutorial

© Copyright 2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012 - 2018 The Matplotlib development team.
Last updated on Jan 05, 2020. Created using Sphinx 1.8.5. Doc version v3.1.1-79-g90d53b526.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.