fadeline(ax, x, y, label=None, color=None, steps=20, **kwargs)[source]

Fading line for matplotlib.

This is a workaround to produce a fading line.

  • ax (axis) – Axis to plot on.

  • x (list) – start and end value of x components of the line

  • y (list) – start and end value of y components of the line

  • label (str, optional) – label for the legend. Default: None

  • color (MPL color, optional) – color of the line Default: None

  • steps (int, optional) – steps of fading Default: 20

  • **kwargs – keyword arguments that are forwarded to plt.plot