Determine RPM of DC Motor using Encoder

Considering that the motor slows down a bit between pulses, your graph appears perfect. The closer the pulses are to each other, the less time to slow down.

Paul