drawLabel

emlib.matplotting.drawLabel(ax, x, y, text, size=None, alpha=None, profile={'alpha': 0.75, 'annotation_alpha': 0.3, 'annotation_color': (0, 0, 0), 'autoscale': True, 'background': (0, 0, 0), 'colormap': 'jet', 'edgecolor': 1, 'facecolor': 0.8, 'label_alpha': 0.75, 'label_font': 'sans-serif', 'label_size': 10, 'line_alpha': 0.8, 'line_style': 'solid', 'linewidth': 1})[source]

Draw a text label at the given coordinates

Parameters:
  • ax (Axes) – the plot axes

  • x (float) – x coordinate

  • y (float) – y coordinate

  • text (str) – the text

  • size – size of the label. If given, overrides the profile’s “label_size”

  • alpha – if given, overrides the profile’s “label_alpha”

  • profile – the profile used (None = default)

Return type:

None