How do I turn off auto lock on my Mac?

It appears that since I upgraded to OS X Yosemite, and fiddled with some of the energy saver and screen saver settings, that my user is logged out due to inactivity.

Where is the setting where I can turn this off and not allow my user to be automatically logged off when inactive?