builtins.object Artist Line2D
class Line2D(Artist):
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.
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__] |
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') |
zorder | 2 |
Nom de la propriété | Description |
---|---|
axes | The `~.axes.Axes` instance the artist resides in, or *None*. [extrait de __doc__] |
mouseover | |
pickradius | |
stale | |
sticky_edges |
Signature de la méthode | Description |
---|---|
__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__] |
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 :