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 :

Module « matplotlib.axis »

Classe « Axis »

Informations générales

Héritage

builtins.object
    Artist
        Axis

Définition

class Axis(Artist):

Description [extrait de Axis.__doc__]

    Base class for `.XAxis` and `.YAxis`.

    Attributes
    ----------
    isDefault_label : bool

    axes : `matplotlib.axes.Axes`
        The `~.axes.Axes` to which the Axis belongs.
    major : `matplotlib.axis.Ticker`
        Determines the major tick positions and their label format.
    minor : `matplotlib.axis.Ticker`
        Determines the minor tick positions and their label format.
    callbacks : `matplotlib.cbook.CallbackRegistry`

    label : `.Text`
        The axis label.
    labelpad : float
        The distance between the axis label and the tick labels.
        Defaults to :rc:`axes.labelpad` = 4.
    offsetText : `.Text`
        A `.Text` object containing the data offset of the ticks (if any).
    pickradius : float
        The acceptance radius for containment tests. See also `.Axis.contains`.
    majorTicks : list of `.Tick`
        The major ticks.
    minorTicks : list of `.Tick`
        The minor ticks.
    

Constructeur(s)

Signature du constructeur Description
__init__(self, axes, pickradius=15)

Liste des attributs statiques

Nom de l'attribut Valeur
majorTicks<matplotlib.axis._LazyTickList object at 0x7f5050c09580>
minorTicks<matplotlib.axis._LazyTickList object at 0x7f5050c09610>
OFFSETTEXTPAD3
zorder0

Liste des propriétés

Nom de la propriétéDescription
axesThe `~.axes.Axes` instance the artist resides in, or *None*. [extrait de __doc__]
mouseover
remove_overlapping_locsIf minor ticker locations that overlap with major ticker locations should be trimmed. [extrait de __doc__]
stale
sticky_edges

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__str__(self)
axis_date(self, tz=None)
cla(self) [*Deprecated*] Clear this axis. [extrait de cla.__doc__]
clear(self)
convert_units(self, x)
draw(self, renderer, *args, **kwargs)
get_children(self)
get_data_interval(self) Return the Interval instance for this axis data limits. [extrait de get_data_interval.__doc__]
get_gridlines(self) Return this Axis' grid lines as a list of `.Line2D`\s. [extrait de get_gridlines.__doc__]
get_inverted(self)
get_label(self) Return the axis label as a Text instance. [extrait de get_label.__doc__]
get_label_position(self)
get_label_text(self) Get the text of the label. [extrait de get_label_text.__doc__]
get_major_formatter(self) Get the formatter of the major ticker. [extrait de get_major_formatter.__doc__]
get_major_locator(self) Get the locator of the major ticker. [extrait de get_major_locator.__doc__]
get_major_ticks(self, numticks=None) Return the list of major `.Tick`\s. [extrait de get_major_ticks.__doc__]
get_majorticklabels(self) Return this Axis' major tick labels, as a list of `~.text.Text`. [extrait de get_majorticklabels.__doc__]
get_majorticklines(self) Return this Axis' major tick lines as a list of `.Line2D`\s. [extrait de get_majorticklines.__doc__]
get_majorticklocs(self) Return this Axis' major tick locations in data coordinates. [extrait de get_majorticklocs.__doc__]
get_minor_formatter(self) Get the formatter of the minor ticker. [extrait de get_minor_formatter.__doc__]
get_minor_locator(self) Get the locator of the minor ticker. [extrait de get_minor_locator.__doc__]
get_minor_ticks(self, numticks=None) Return the list of minor `.Tick`\s. [extrait de get_minor_ticks.__doc__]
get_minorticklabels(self) Return this Axis' minor tick labels, as a list of `~.text.Text`. [extrait de get_minorticklabels.__doc__]
get_minorticklines(self) Return this Axis' minor tick lines as a list of `.Line2D`\s. [extrait de get_minorticklines.__doc__]
get_minorticklocs(self) Return this Axis' minor tick locations in data coordinates. [extrait de get_minorticklocs.__doc__]
get_minpos(self)
get_offset_text(self) Return the axis offsetText as a Text instance. [extrait de get_offset_text.__doc__]
get_pickradius(self) Return the depth of the axis used by the picker. [extrait de get_pickradius.__doc__]
get_remove_overlapping_locs(self)
get_scale(self) Return this Axis' scale (as a str). [extrait de get_scale.__doc__]
get_tick_padding(self)
get_tick_space(self) Return the estimated number of ticks that can fit on the axis. [extrait de get_tick_space.__doc__]
get_ticklabel_extents(self, renderer)
get_ticklabels(self, minor=False, which=None)
get_ticklines(self, minor=False) Return this Axis' tick lines as a list of `.Line2D`\s. [extrait de get_ticklines.__doc__]
get_ticklocs(self, *, minor=False) Return this Axis' tick locations in data coordinates. [extrait de get_ticklocs.__doc__]
get_ticks_direction(self, minor=False)
get_tightbbox(self, renderer, *, for_layout_only=False)
get_transform(self)
get_units(self) Return the units for axis. [extrait de get_units.__doc__]
get_view_interval(self) Return the view limits ``(min, max)`` of this axis. [extrait de get_view_interval.__doc__]
grid(self, b=None, which='major', **kwargs)
have_units(self)
limit_range_for_scale(self, vmin, vmax)
pan(self, numsteps) [*Deprecated*] Pan by *numsteps* (can be positive or negative). [extrait de pan.__doc__]
reset_ticks(self)
set_clip_path(self, clippath, transform=None)
set_data_interval(self, vmin, vmax, ignore=False)
set_default_intervals(self)
set_inverted(self, inverted)
set_label_coords(self, x, y, transform=None)
set_label_position(self, position)
set_label_text(self, label, fontdict=None, **kwargs)
set_major_formatter(self, formatter)
set_major_locator(self, locator)
set_minor_formatter(self, formatter)
set_minor_locator(self, locator)
set_pickradius(self, pickradius)
set_remove_overlapping_locs(self, val)
set_tick_params(self, which='major', reset=False, **kw)
set_ticklabels(self, ticklabels, *, minor=False, **kwargs)
set_ticks(self, ticks, *, minor=False)
set_units(self, u)
set_view_interval(self, vmin, vmax, ignore=False)
update_units(self, data)
zoom(self, direction) [*Deprecated*] Zoom in/out on axis; if *direction* is >0 zoom in, else zoom out. [extrait de zoom.__doc__]

Méthodes héritées de la classe Artist

__getstate__, __init_subclass__, __subclasshook__, add_callback, contains, convert_xunits, convert_yunits, findobj, format_cursor_data, get_agg_filter, get_alpha, get_animated, get_clip_box, get_clip_on, get_clip_path, get_contains, get_cursor_data, get_figure, get_gid, get_in_layout, get_path_effects, get_picker, get_rasterized, get_sketch_params, get_snap, get_transformed_clip_path_and_affine, get_url, get_visible, get_window_extent, get_zorder, is_transform_set, pchanged, pick, pickable, properties, remove, remove_callback, set, set_agg_filter, set_alpha, set_animated, set_clip_box, set_clip_on, set_contains, set_figure, set_gid, set_in_layout, set_label, set_path_effects, set_picker, set_rasterized, set_sketch_params, set_snap, set_transform, set_url, set_visible, set_zorder, update, update_from

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __hash__, __init_subclass__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__