triqs.gfs.plot.select_indices

Helpers to select a path of mesh points through a Brillouin-zone-like mesh.

Used by bz and bz_x_x to draw band-structure-style plots along a piecewise-linear path through k-space.

Functions

closest_point_in_line(x, L)

Return the indices of the points in L closest to x (ties returned in order).

closest_to(A, B, L[, verbose])

Return the indices of the points in L that lie closest to the oriented segment A -> B.

dist(x, y)

Euclidean 2D distance between x and y.

pick_selection_vec(data, stride)

Return data[::stride] (every stride-th element).

select_path_indices(path, mesh[, verbose])

Return mesh indices tracing a piecewise-linear path through mesh.