spectre.Visualization.PlotAlongLine

Functions

plot_along_line(h5_files, subfile_name, ...)

Plot variables along a line through volume data

points_on_line(line_start, line_end, num_points)

Returns points on a line.

spectre.Visualization.PlotAlongLine.plot_along_line(h5_files, subfile_name, obs_id, obs_time, vars, line_start, line_end, extrapolate_into_excisions=False, num_samples=200, num_threads=None, x_logscale=False, y_logscale=False, y_bounds=None, animate=False, interval=100)

Plot variables along a line through volume data

Interpolates the volume data in the H5_FILES to a line and plots the selected variables. You choose the line by specifying the start and end points.

Either select a specific observation in the volume data with ‘–step’ or ‘–time’, or specify ‘–animate’ to produce an animation over all observations.

spectre.Visualization.PlotAlongLine.points_on_line(line_start: Sequence[float], line_end: Sequence[float], num_points: int) ndarray

Returns points on a line.

Parameters:
  • line_start – Start point of the line.

  • line_end – End point of the line.

  • num_points – Number of points to return.

Returns: An array of shape (dim, num_points) with uniformly spaced points

on the line.