display_2D_trajectory

display_2D_trajectory#

mrinufft.trajectories.display.display_2D_trajectory(trajectory, figsize=5, one_shot=False, subfigure=None, show_constraints=False, gmax=0.04, smax=0.1, constraints_order=None, **constraints_kwargs)[source]#

Display 2D trajectories.

Parameters:
  • trajectory (array_like) – Trajectory to display.

  • figsize (float, optional) – Size of the figure.

  • one_shot (bool or int, optional) – State if a specific shot should be highlighted in bold black. If True, highlight the middle shot. If int, highlight the shot at that index. The default is False.

  • subfigure (plt.Figure, plt.SubFigure or plt.Axes, optional) – The figure where the trajectory should be displayed. The default is None.

  • show_constraints (bool, optional) – Display the points where the gradients and slew rates are above the gmax and smax limits, respectively. The default is False.

  • gmax (float, optional) – Maximum constraint on the gradients in T/m. The default is DEFAULT_GMAX.

  • smax (float, optional) – Maximum constraint on the slew rates in T/m/ms. The default is DEFAULT_SMAX.

  • constraint_order (int, str, optional) – Norm order defining how the constraints are checked, typically 2 or np.inf, following the numpy.linalg.norm conventions on parameter ord. The default is None.

  • **kwargs – Acquisition parameters used to check on hardware constraints, following the parameter convention from mrinufft.trajectories.utils.compute_gradients_and_slew_rates.

Returns:

ax – Axes of the figure.

Return type:

plt.Axes