triqs.gfs.plot.bz.generate_points_on_path

triqs.gfs.plot.bz.generate_points_on_path(path, n_points)[source]

Distribute n_points samples along a piecewise-linear path.

Points are distributed segment-by-segment proportionally to each segment’s length, so the sampling density is approximately uniform along the whole path.

Parameters:
pathsequence of (float, float)

Vertices of the path in order.

n_pointsint

Total number of points to distribute across all segments.

Returns:
l_pointslist of (float, float)

The sampled points along the path.

high_symlist of int

Indices in l_points corresponding to the input vertices (the first entry is always 0; useful for placing high-symmetry-point ticks on band-structure plots).