I've created a plot using matplotlib in Python and saved it to a PGF which I've then embedded in my LaTeX document. I'd like it to be a bit smaller, as is it won't centre and it forces down a section's header which is supposed to be above it.
Here's the link for the pgf file http://www.fast-files.com/getfile.aspx?file=191033
\documentclass[12pt]{article}
\title{COMP 2823: Assignment 1}
\author{Student ID: 480380498}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{fancyhdr}
\usepackage{ulem}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\pagestyle{fancy}
\fancyhf{}
\rhead{SID: 480380498}
\begin{document}
...
\newpage
\section{}
Text \\
\begin{figure}
\begin{center}
\input{graph1.pgf}
\end{center}
\end{figure}
\end{document}

graph1.pgf, otherwise we can't compile your example? – AndréC Mar 02 '19 at 08:34