neurotools.graphics.ztransform_plot_helpers module

neurotools.graphics.ztransform_plot_helpers.configure_matplotlib()[source]
neurotools.graphics.ztransform_plot_helpers.add_circle(radius=1, lw=0.75, color='k', linestyle='-', n=360)[source]
Parameters:
  • radius (1)

  • lw (0.75)

  • color ('k')

  • linestyle ('-')

  • n (360)

neurotools.graphics.ztransform_plot_helpers.label_complex_axes(color='k')[source]
neurotools.graphics.ztransform_plot_helpers.add_complex_axes(lw=0.75, color='w', limits=[(-2, 2), (-2, 2)])[source]
neurotools.graphics.ztransform_plot_helpers.add_colorbar(im, aspect=20, pad_fraction=0.5, **kwargs)[source]
neurotools.graphics.ztransform_plot_helpers.phase_magnitude_figure(z, limit=2)[source]
neurotools.graphics.ztransform_plot_helpers.joint_phase_magnitude_plot(z, limit=[(-2, 2), (-2, 2)], color='w', draw_complex_axes=True, autoscale=False, nonlinearscale=True)[source]
Parameters:
  • z (2D complex-valued array)

  • limit – Plot limits as [(real_min,real_max),(imag_min,imag_max)]

  • color – Matplotlib color specifier for annotations

  • draw_complex_axes – Overlay axes atop plot?

  • autoscale – Automatically re-center magniture scale.

  • nonlinearscale – Use arctan magnitude mapping to compress possibly infinite dynamic range

neurotools.graphics.ztransform_plot_helpers.do_bode_z(ω, Y, ax1, ax2, stitle='', label=None, color='k', linestyle='-', lw=0.8, drawlegend=True)[source]
Parameters:
  • ω (frequencies at which to evaluate)

  • w (complex-valued output of z-transfer function at each frequency)

  • ax1 (axis for the magnitude (gain) plot)

  • ax2 (axis for phase plot)

neurotools.graphics.ztransform_plot_helpers.do_nyquist(ax, z, Y, extent=8)[source]
neurotools.graphics.ztransform_plot_helpers.do_bode_and_nyquist(Y, extent=4)[source]
neurotools.graphics.ztransform_plot_helpers.do_bode_s(ω, w, ax1, ax2, stitle='', label=None, color='k', linestyle='-', lw=0.8)[source]
Parameters:
  • ω (frequencies at which to evaluate)

  • w (complex-valued output of z-transfer function at each frequency)

  • ax1 (axis for the magnitude (gain) plot)

  • ax2 (axis for phase plot)