fix new dict-syntax deprecation warnings
deprecate file in favor of savefig