Read a value between plotted samples

A sensor records voltage at three elapsed times. The following Matplotlib call produces the illustrated line plot, with straight connecting segments and linear scales on both axes.


Python
time_s = [0, 4, 10]
voltage_v = [1, 5, 2]
ax.plot(time_s, voltage_v)


A voltage trace connects three samples on linear axes.


What voltage does the displayed segment have at an elapsed time of 7 s7\ \text{s}? Answer in volts, to one decimal place. Find the plotted height, rather than claiming an additional sensor measurement.

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 Matplotlib Questions: