polyTEM.crystal_peaks.flow_fields.plot_graded_lines

polyTEM.crystal_peaks.flow_fields.plot_graded_lines(trimmed_lines, red, green, blue, alpha, width)

Plots lines with non-constant RGBA or Width values. Inputs:

trimmed_lines: (4 x m x n) matrix, which contains the (x, y, theta, is_active) values for each point m along

each line n. This is the output of the trim_lines function.

red: color value between 0 and 1 green: color value between 0 and 1 blue: color value between 0 and 1 alpha: transparency value between 0 and 1, where 1 is fully opaque and 0 is fully transparent. Interestingly,

transparency does not seem to increase rendering time.

width: line width. The value is not capped but is usually on the order of 1.