Axes.
set_xticklabels
(labels, fontdict=None, minor=False, **kwargs)¶Set the xtick labels with list of strings labels
Call signature:
set_xticklabels(labels, fontdict=None, minor=False, **kwargs)Return a list of axis text instances.
kwargs set the
Text
properties. Valid properties are
Property | Description |
---|---|
agg_filter |
unknown |
alpha |
float (0.0 transparent through 1.0 opaque) |
animated |
[True | False] |
axes |
an Axes instance |
backgroundcolor |
any matplotlib color |
bbox |
FancyBboxPatch prop dict |
bottom_margin |
unknown |
clip_box |
a matplotlib.transforms.Bbox instance |
clip_on |
[True | False] |
clip_path |
[ (Path , Transform ) | Patch | None ] |
color |
any matplotlib color |
contains |
a callable function |
family or fontfamily or fontname or name |
[FONTNAME | ‘serif’ | ‘sans-serif’ | ‘cursive’ | ‘fantasy’ | ‘monospace’ ] |
figure |
a matplotlib.figure.Figure instance |
fontproperties or font_properties |
a matplotlib.font_manager.FontProperties instance |
gid |
an id string |
horizontalalignment or ha |
[ ‘center’ | ‘right’ | ‘left’ ] |
label |
string or anything printable with ‘%s’ conversion. |
left_margin |
unknown |
linespacing |
float (multiple of font size) |
margins |
unknown |
multialignment |
[‘left’ | ‘right’ | ‘center’ ] |
path_effects |
unknown |
picker |
[None|float|boolean|callable] |
position |
(x,y) |
rasterized |
[True | False | None] |
right_margin |
unknown |
rotation |
[ angle in degrees | ‘vertical’ | ‘horizontal’ ] |
rotation_mode |
unknown |
size or fontsize |
[size in points | ‘xx-small’ | ‘x-small’ | ‘small’ | ‘medium’ | ‘large’ | ‘x-large’ | ‘xx-large’ ] |
sketch_params |
unknown |
snap |
unknown |
stretch or fontstretch |
[a numeric value in range 0-1000 | ‘ultra-condensed’ | ‘extra-condensed’ | ‘condensed’ | ‘semi-condensed’ | ‘normal’ | ‘semi-expanded’ | ‘expanded’ | ‘extra-expanded’ | ‘ultra-expanded’ ] |
style or fontstyle |
[ ‘normal’ | ‘italic’ | ‘oblique’] |
text |
string or anything printable with ‘%s’ conversion. |
top_margin |
unknown |
transform |
Transform instance |
url |
a url string |
usetex |
unknown |
variant or fontvariant |
[ ‘normal’ | ‘small-caps’ ] |
verticalalignment or ma or va |
[ ‘center’ | ‘top’ | ‘bottom’ | ‘baseline’ ] |
visible |
[True | False] |
weight or fontweight |
[a numeric value in range 0-1000 | ‘ultralight’ | ‘light’ | ‘normal’ | ‘regular’ | ‘book’ | ‘medium’ | ‘roman’ | ‘semibold’ | ‘demibold’ | ‘demi’ | ‘bold’ | ‘heavy’ | ‘extra bold’ | ‘black’ ] |
wrap |
unknown |
x |
float |
y |
float |
zorder |
any number |
ACCEPTS: sequence of strings