SamplePulse.draw

SamplePulse.draw(dt=1, style=None, filename=None, interp_method=None, scale=1, interactive=False, scaling=None)[source]

Plot the interpolated envelope of pulse.

Parameters
  • dt (float) – Time interval of samples.

  • style (Optional[PulseStyle]) – A style sheet to configure plot appearance.

  • filename (Optional[str]) – Name required to save pulse image.

  • interp_method (Optional[Callable]) – A function for interpolation.

  • scale (float) – Relative visual scaling of waveform amplitudes.

  • interactive (bool) – When set true show the circuit in a new window. (This depends on the matplotlib backend being used.)

  • scaling (Optional[float]) – Deprecated, see scale,

Returns

A matplotlib figure object of the pulse envelope

Return type

matplotlib.figure