Annotating features on a logarithmic frequency axis

A Bode magnitude plot of a low-pass filter uses a logarithmic frequency axis set with ax.set_xscale("log") and ax.set_xlim(10, 100000), in hertz. You want to annotate two features using axes coordinates: a mains-hum spike at 300 Hz and a resonance at 50 kHz. Find the number of decades the axis spans, as an integer, and the horizontal axes fraction of each feature, each as a dimensionless number to three decimal places.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Formatting Plots Questions: