Previous topic

ylim

Next topic

Dataset package

This Page

yticks

mipylib.plotlib.miplot.yticks(locs, labels, rotation=0)

Set the y-limits of the current tick locations and labels.

Parameters:
  • locs – (array_like) Tick locations.
  • labels – (string list) Tick labels.
  • fontname – (string) Font name. Default is Arial .
  • fontsize – (int) Font size. Default is 14 .
  • bold – (boolean) Is bold font or not. Default is True .
  • color – (color) Tick label string color. Default is black .
  • rotation – (float) Tick label rotation angle. Default is 0.

Example:

# set the locations of the yticks
yticks( arange(6) )

# set the locations and labels of the yticks
yticks( arange(5), ['Tom', 'Dick', 'Harry', 'Sally', 'Sue'])