Gradually increase line alpha

Is there a relatively easy way to gradually increase the alpha of a line (so it looks faded)? Or even having a thick to thin line would work. I’m at a loss.

Thank you in advance,

Relatively easy is questionable, and kind of depends on what you’re trying to do…

You can use the same technique as for multicolored lines where you can either pass in the list of RGBAs for each segment, use a gradient colormap, or pass in line thicknesses for each segment.

A more gradual approach to the line thicknesses would be to use a custom path object:


Thanks so much for taking the time to reply. This is fantastic help.

1 Like