Updates the LaTeXPlot function