Version 3.2.1
matplotlib
  • Installation
  • Documentation
  • Examples
  • Tutorials
  • Contributing

Navigation

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

Table of Contents

  • matplotlib.axes.Axes.set_yticks
    • Examples using matplotlib.axes.Axes.set_yticks

Related Topics

  • Documentation overview
    • API Overview
      • matplotlib.axes
        • Previous: matplotlib.axes.Axes.xaxis_date
        • Next: matplotlib.axes.Axes.get_yticks
Show Page Source

matplotlib.axes.Axes.set_yticks¶

Axes.set_yticks(ticks, *, minor=False)¶

Set the y ticks with list of ticks

Parameters:

ticks : list

List of y-axis tick locations

minor : bool, optional

If False sets major ticks, if True sets minor ticks. Default is False.

Examples using matplotlib.axes.Axes.set_yticks¶

../../_images/sphx_glr_barh_thumb.png

Horizontal bar chart

../../_images/sphx_glr_broken_barh_thumb.png

Broken Barh

../../_images/sphx_glr_psd_demo_thumb.png

Psd Demo

../../_images/sphx_glr_image_annotated_heatmap_thumb.png

Creating annotated heatmaps

../../_images/sphx_glr_axes_demo_thumb.png

Axes Demo

../../_images/sphx_glr_auto_subplots_adjust_thumb.png

Auto Subplots Adjust

../../_images/sphx_glr_make_room_for_ylabel_using_axesgrid_thumb.png

Make Room For Ylabel Using Axesgrid

../../_images/sphx_glr_scatter_hist_locatable_axes_thumb.png

Scatter Histogram (Locatable Axes)

../../_images/sphx_glr_bachelors_degrees_by_gender_thumb.png

Bachelor's degrees by gender

../../_images/sphx_glr_firefox_thumb.png

Firefox

../../_images/sphx_glr_integral_thumb.png

Integral as the area under a curve

../../_images/sphx_glr_mandelbrot_thumb.png

Shaded & power normalized rendering

../../_images/sphx_glr_xkcd_thumb.png

XKCD

../../_images/sphx_glr_rain_thumb.png

Rain simulation

../../_images/sphx_glr_unchained_thumb.png

MATPLOTLIB UNCHAINED

../../_images/sphx_glr_contour_thumb.png

Frontpage contour example

../../_images/sphx_glr_histogram_thumb.png

Frontpage histogram example

../../_images/sphx_glr_membrane_thumb.png

Frontpage plot example

../../_images/sphx_glr_mri_with_eeg_thumb.png

MRI With EEG

../../_images/sphx_glr_skewt_thumb.png

SkewT-logP diagram: using transforms and custom projections

../../_images/sphx_glr_spines_bounds_thumb.png

Custom spine bounds

../../_images/sphx_glr_demo_gridspec06_thumb.png

Nested GridSpecs

../../_images/sphx_glr_gridspec_thumb.png

Customizing Figure Layouts Using GridSpec and Other Functions

© Copyright 2020 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012 - 2018 The Matplotlib development team.
Last updated on Mar 21, 2020. Created using Sphinx 1.8.5. Doc version 3.2.1.