pymovements.utils.plotting.draw_line_data#

pymovements.utils.plotting.draw_line_data(x_signal: ndarray, y_signal: ndarray, ax: Axes, cmap: Colormap | None = None, cmap_norm: Normalize | str | None = None, cval: ndarray | None = None) Axes[source]#

Draw line data.

Deprecated since version v0.22.0: This function will be removed in v0.27.0.

Parameters:
  • x_signal (np.ndarray) – Data to be plotted.

  • y_signal (np.ndarray) – Data to be plotted.

  • ax (plt.Axes) – Matplotlib axes.

  • cmap (colors.Colormap | None) – Color map for line color values. (default: None)

  • cmap_norm (colors.Normalize | str | None) – Normalization for color values. (default: None)

  • cval (np.ndarray | None) – Line color values. (default: None)

Returns:

  • plt.Axes – Axes with added line data.

  • .. deprecated:: v0.22.0 – This function will be removed in v0.27.0.