welltestpy.tools.fadeline
- 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.
- Parameters
ax (axis) – Axis to plot on.
x (
list) – start and end value of x components of the liney (
list) – start and end value of y components of the linelabel (
str, optional) – label for the legend. Default:Nonecolor (MPL color, optional) – color of the line Default:
Nonesteps (
int, optional) – steps of fading Default:20**kwargs – keyword arguments that are forwarded to plt.plot