Version 3.2.2
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_demo_ticklabel_alignment_thumb.png

Demo Ticklabel Alignment¶

../../_images/sphx_glr_demo_ticklabel_direction_thumb.png

Demo Ticklabel Direction¶

../../_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_3D_thumb.png

Frontpage 3D example¶

../../_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_bars3d_thumb.png

Create 2D bar graphs in different planes¶

../../_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 Jun 22, 2020. Created using Sphinx 2.4.3. Doc version 3.2.2.