title: Is there a Python equivalent for MATLAB's 'improfile' function?
body: <p>I'm trying to produce a Gaussian fit to profile the beam intensity of an image of a laser beam cross-section. I know how to do this easily with MATLAB's <code>improfile</code> function, which lets me specify the line segment with my mouse and plots the intensity values versus the distance along the line segment. Is there a Python equivalent that will let me complete the same task?</p>