Fixed minor tick locator

- AutoMinorLocator doesn't seem to be included in the pyplot module, so
  we just import the matplotlib module instead.
- Changed gitignore so it ignores .dat files.