Version 3.3.3
matplotlib
Fork me on GitHub
  • Installation
  • Documentation
  • Examples
  • Tutorials
  • Contributing

Navigation

  • index
  • modules |
  • next |
  • previous |
  • home| 
  • contents »
  • API Overview »
  • matplotlib.axes »
  • matplotlib.axes.Axes.set_xticks

Table of Contents

  • matplotlib.axes.Axes.set_xticks
    • Examples using matplotlib.axes.Axes.set_xticks

Related Topics

  • Documentation overview
    • API Overview
      • matplotlib.axes
        • Previous: matplotlib.axes.Axes.get_adjustable
        • Next: matplotlib.axes.Axes.get_xticks
Show Page Source

matplotlib.axes.Axes.set_xticks¶

Axes.set_xticks(self, ticks, *, minor=False)¶

Set the xaxis' tick locations.

Parameters:
tickslist of floats

List of tick locations.

minorbool, default: False

If False, set the major ticks; if True, the minor ticks.

Examples using matplotlib.axes.Axes.set_xticks¶

Grouped bar chart with labels

Grouped bar chart with labels¶

Psd Demo

Psd Demo¶

Creating annotated heatmaps

Creating annotated heatmaps¶

Box plot vs. violin plot comparison

Box plot vs. violin plot comparison¶

Violin plot customization

Violin plot customization¶

Producing multiple histograms side by side

Producing multiple histograms side by side¶

Rendering math equations using TeX

Rendering math equations using TeX¶

Hatch Demo

Hatch Demo¶

ggplot style sheet

ggplot style sheet¶

Scatter Histogram (Locatable Axes)

Scatter Histogram (Locatable Axes)¶

Simple Axisline4

Simple Axisline4¶

Demo Ticklabel Alignment

Demo Ticklabel Alignment¶

Demo Ticklabel Direction

Demo Ticklabel Direction¶

Bachelor's degrees by gender

Bachelor's degrees by gender¶

Firefox

Firefox¶

Integral as the area under a curve

Integral as the area under a curve¶

Shaded & power normalized rendering

Shaded & power normalized rendering¶

XKCD

XKCD¶

Rain simulation

Rain simulation¶

MATPLOTLIB **UNCHAINED**

MATPLOTLIB UNCHAINED¶

Frontpage 3D example

Frontpage 3D example¶

Frontpage contour example

Frontpage contour example¶

Frontpage histogram example

Frontpage histogram example¶

Frontpage plot example

Frontpage plot example¶

Log Bar

Log Bar¶

MRI With EEG

MRI With EEG¶

Custom spine bounds

Custom spine bounds¶

Group barchart with units

Group barchart with units¶

The Lifecycle of a Plot

The Lifecycle of a Plot¶

© Copyright 2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012 - 2020 The Matplotlib development team.
Last updated on Nov 12, 2020. Created using Sphinx 3.1.1. Doc version v3.3.3-2-g447bdbbf58.