Change the thickness (or opacity) of a line as a function?

I’m wanting a line to get thinner and the opacity to decrease as x increases. Seems like that should be possible but I am not figuring it out!

You can include a function in the line thickness and line opacity settings that apply to the line as a whole, but I don’t think a single line can have varying thickness / opacity.

The only way I can think of to do this would be to use a series of piecewise functions for various values of x, and adjust the thickness and opacity of each accordingly.

1 Like

I agree that this isn’t possible the way you describe. Another workaround that I can think of would be to make a 10,000 point list and apply the functions to the points as you described. I haven’t tried it, but I would guess the quantity of points would make the function appear continuous.


Great thinking @cwinske ! Takes a few lines but gives the effect that presumably the OP was looking for: