Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les compléments
Voir le programme détaillé
Classe « FigureBase »

Méthode matplotlib.pyplot.FigureBase.autofmt_xdate

Signature de la méthode autofmt_xdate

def autofmt_xdate(self, bottom=0.2, rotation=30, ha='right', which='major') 

Description

help(FigureBase.autofmt_xdate)

Date ticklabels often overlap, so it is useful to rotate them
and right align them.  Also, a common use case is a number of
subplots with shared x-axis where the x-axis is date data.  The
ticklabels are often long, and it helps to rotate them on the
bottom subplot and turn them off on other subplots, as well as
turn off xlabels.

Parameters
----------
bottom : float, default: 0.2
    The bottom of the subplots for `subplots_adjust`.
rotation : float, default: 30 degrees
    The rotation angle of the xtick labels in degrees.
ha : {'left', 'center', 'right'}, default: 'right'
    The horizontal alignment of the xticklabels.
which : {'major', 'minor', 'both'}, default: 'major'
    Selects which ticklabels to rotate.


Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les fondamentaux
Voir le programme détaillé