0

I'm very much a python beginner trying to adapt someone else's code.

I have an array in which the first column is the x data, 2nd column is y data and the 3rd column contains values between 0 and 1 which I'd like to represent the transparency of the line. In other words the transparency of the line changes according to the data in the array.

Any ideas how I could do this?

I've tried this which works to plot the data in array Bb if I remove the alpha command or set it to fixed value, but doesn't work in this form.

    ax.plot(Bb[:, 0], Bb[:, 1], 'r', alpha=Bb[:, 2])
    ax.set_aspect('equal')
BillyR
  • 3
  • 3

0 Answers0