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.pyplot »

Classe « Line2D »

Informations générales

Héritage

builtins.object
    Artist
        Line2D

Définition

class Line2D(Artist):

Description [extrait de Line2D.__doc__]

    A line - the line can have both a solid linestyle connecting all
    the vertices, and a marker at each vertex.  Additionally, the
    drawing of the solid line is influenced by the drawstyle, e.g., one
    can create "stepped" lines in various styles.
    

Constructeur(s)

Signature du constructeur Description
__init__(self, xdata, ydata, linewidth=None, linestyle=None, color=None, marker=None, markersize=None, markeredgewidth=None, markeredgecolor=None, markerfacecolor=None, markerfacecoloralt='none', fillstyle=None, antialiased=None, dash_capstyle=None, solid_capstyle=None, dash_joinstyle=None, solid_joinstyle=None, pickradius=5, drawstyle=None, markevery=None, **kwargs) Create a `.Line2D` instance with *x* and *y* data in sequences of [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
drawStyleKeys['default', 'steps-mid', 'steps-pre', 'steps-post', 'steps']
drawStyles{'default': '_draw_lines', 'steps-mid': '_draw_steps_mid', 'steps-pre': '_draw_steps_pre', 'steps-post': '_draw_steps_post', 'steps': '_draw_steps_pre'}
filled_markers('o', 'v', '^', '<', '>', '8', 's', 'p', '*', 'h', 'H', 'D', 'd', 'P', 'X')
fillStyles('full', 'left', 'right', 'bottom', 'top', 'none')
lineStyles{'-': '_draw_solid', '--': '_draw_dashed', '-.': '_draw_dash_dot', ':': '_draw_dotted', 'None': '_draw_nothing', ' ': '_draw_nothing', '': '_draw_nothing'}
markers{'.': 'point', ',': 'pixel', 'o': 'circle', 'v': 'triangle_down', '^': 'triangle_up', '<': 'triangle_left', '>': 'triangle_right', '1': 'tri_down', '2': 'tri_up', '3': 'tri_left', '4': 'tri_right', '8': 'octagon', 's': 'square', 'p': 'pentagon', '*': 'star', 'h': 'hexagon1', 'H': 'hexagon2', '+': 'plus', 'x': 'x', 'D': 'diamond', 'd': 'thin_diamond', '|': 'vline', '_': 'hline', 'P': 'plus_filled', 'X': 'x_filled', 0: 'tickleft', 1: 'tickright', 2: 'tickup', 3: 'tickdown', 4: 'caretleft', 5: 'caretright', 6: 'caretup', 7: 'caretdown', 8: 'caretleftbase', 9: 'caretrightbase', 10: 'caretupbase', 11: 'caretdownbase', 'None': 'nothing', None: 'nothing', ' ': 'nothing', '': 'nothing'}
validCap('butt', 'projecting', 'round')
validJoin('miter', 'round', 'bevel')
zorder2

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
pickradius
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)
contains(self, mouseevent)
draw(self, renderer)
get_aa(self) Alias for `get_antialiased`. [extrait de get_aa.__doc__]
get_antialiased(self) Return whether antialiased rendering is used. [extrait de get_antialiased.__doc__]
get_c(self) Alias for `get_color`. [extrait de get_c.__doc__]
get_color(self)
get_dash_capstyle(self)
get_dash_joinstyle(self)
get_data(self, orig=True)
get_drawstyle(self)
get_ds(self) Alias for `get_drawstyle`. [extrait de get_ds.__doc__]
get_fillstyle(self)
get_linestyle(self)
get_linewidth(self)
get_ls(self) Alias for `get_linestyle`. [extrait de get_ls.__doc__]
get_lw(self) Alias for `get_linewidth`. [extrait de get_lw.__doc__]
get_marker(self)
get_markeredgecolor(self)
get_markeredgewidth(self)
get_markerfacecolor(self)
get_markerfacecoloralt(self)
get_markersize(self)
get_markevery(self)
get_mec(self) Alias for `get_markeredgecolor`. [extrait de get_mec.__doc__]
get_mew(self) Alias for `get_markeredgewidth`. [extrait de get_mew.__doc__]
get_mfc(self) Alias for `get_markerfacecolor`. [extrait de get_mfc.__doc__]
get_mfcalt(self) Alias for `get_markerfacecoloralt`. [extrait de get_mfcalt.__doc__]
get_ms(self) Alias for `get_markersize`. [extrait de get_ms.__doc__]
get_path(self)
get_pickradius(self)
get_solid_capstyle(self)
get_solid_joinstyle(self)
get_window_extent(self, renderer)
get_xdata(self, orig=True)
get_xydata(self)
get_ydata(self, orig=True)
is_dashed(self)
recache(self, always=False)
recache_always(self)
set_aa(self, b) Alias for `set_antialiased`. [extrait de set_aa.__doc__]
set_antialiased(self, b)
set_c(self, color) Alias for `set_color`. [extrait de set_c.__doc__]
set_color(self, color)
set_dash_capstyle(self, s) How to draw the end caps if the line is `~Line2D.is_dashed`. [extrait de set_dash_capstyle.__doc__]
set_dash_joinstyle(self, s) How to join segments of the line if it `~Line2D.is_dashed`. [extrait de set_dash_joinstyle.__doc__]
set_dashes(self, seq)
set_data(self, *args)
set_drawstyle(self, drawstyle)
set_ds(self, drawstyle) Alias for `set_drawstyle`. [extrait de set_ds.__doc__]
set_fillstyle(self, fs)
set_linestyle(self, ls)
set_linewidth(self, w)
set_ls(self, ls) Alias for `set_linestyle`. [extrait de set_ls.__doc__]
set_lw(self, w) Alias for `set_linewidth`. [extrait de set_lw.__doc__]
set_marker(self, marker) Set the line marker. [extrait de set_marker.__doc__]
set_markeredgecolor(self, ec)
set_markeredgewidth(self, ew)
set_markerfacecolor(self, fc)
set_markerfacecoloralt(self, fc)
set_markersize(self, sz)
set_markevery(self, every)
set_mec(self, ec) Alias for `set_markeredgecolor`. [extrait de set_mec.__doc__]
set_mew(self, ew) Alias for `set_markeredgewidth`. [extrait de set_mew.__doc__]
set_mfc(self, fc) Alias for `set_markerfacecolor`. [extrait de set_mfc.__doc__]
set_mfcalt(self, fc) Alias for `set_markerfacecoloralt`. [extrait de set_mfcalt.__doc__]
set_ms(self, sz) Alias for `set_markersize`. [extrait de set_ms.__doc__]
set_picker(self, p)
set_pickradius(self, d)
set_solid_capstyle(self, s) How to draw the end caps if the line is solid (not `~Line2D.is_dashed`) [extrait de set_solid_capstyle.__doc__]
set_solid_joinstyle(self, s) How to join segments if the line is solid (not `~Line2D.is_dashed`). [extrait de set_solid_joinstyle.__doc__]
set_transform(self, t)
set_xdata(self, x)
set_ydata(self, y)
update_from(self, other) Copy properties from *other* to self. [extrait de update_from.__doc__]

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

__getstate__, __init_subclass__, __subclasshook__, add_callback, convert_xunits, convert_yunits, findobj, format_cursor_data, get_agg_filter, get_alpha, get_animated, get_children, get_clip_box, get_clip_on, get_clip_path, get_contains, get_cursor_data, get_figure, get_gid, get_in_layout, get_label, get_path_effects, get_picker, get_rasterized, get_sketch_params, get_snap, get_tightbbox, get_transform, get_transformed_clip_path_and_affine, get_url, get_visible, get_zorder, have_units, 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_clip_path, set_contains, set_figure, set_gid, set_in_layout, set_label, set_path_effects, set_rasterized, set_sketch_params, set_snap, set_url, set_visible, set_zorder, update

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

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