Skip to content

dq.plot_pwc_pulse

plot_pwc_pulse(
    times: ArrayLike,
    values: ArrayLike,
    *,
    ax: Axes = None,
    ycenter: bool = True,
    real_color: str = colors["blue"],
    imag_color: str = colors["purple"]
)

Plot a piecewise constant pulse.

Warning

Documentation redaction in progress.

Examples

>>> n = 20
>>> times = np.linspace(0, 1.0, n + 1)
>>> key = jax.random.PRNGKey(42)
>>> values = dq.rand_complex(key, n)
>>> dq.plot_pwc_pulse(times, values)

plot_pwc_pulse