Skip to content

dq.plot.pwc_pulse

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 = jnp.linspace(0, 1.0, n + 1)
>>> key = jax.random.PRNGKey(42)
>>> values = dq.random.complex(key, n)
>>> dq.plot.pwc_pulse(times, values)

plot_pwc_pulse