[Tex/LaTex] Removing scientific notation in tikzpicture made by matlab2tikz

MATLABpgfplotstikz-pgf

I am having a very hard time trying to figure out how to remove the scientific notations on the y-axis of my graphs. The graphs are made in MATLAB and then converted into TikZ files using the package matlab2tikz. I have added the codes to remove scientific notations in MATLAB, but it seems when I put the tikz files into LaTeX, it automatically recovers the scientific notation format. Any help would be appreciated!

The code I use in LaTeX is as follows

\begin{figure}[H]
\begin{scriptsize}
\begin{center}
\setlength\figureheight{8cm}
\setlength\figurewidth{13cm}
\input{My_Picture.tikz}
\end{center}
\end{scriptsize}
\end{figure}

Best Answer

If it is too laborous to edit all tikz files, you can apply a global setting such that they are applied to each and every plot. Here is an example:

\documentclass{article}

\usepackage{pgfplots,filecontents}
\pgfplotsset{compat=1.6}

% A dummy pgfplots plot with no settings applied
\begin{filecontents*}{My_Picture.tikz}
\begin{tikzpicture}
    \begin{axis}
        \addplot coordinates {(1000,125000)(1500,175000)(900,225000)};
    \end{axis}
\end{tikzpicture}
\end{filecontents*}


% A setting that would be applied to all pgfplots
\pgfplotsset{every axis/.append style={
        scaled y ticks = false, 
        scaled x ticks = false, 
        y tick label style={/pgf/number format/.cd, fixed, fixed zerofill,
                            int detect,1000 sep={\;},precision=3},
        x tick label style={/pgf/number format/.cd, fixed, fixed zerofill,
                            int detect, 1000 sep={},precision=3}
    }
}

\begin{document}
\begin{figure}[H]
\centering
\begin{scriptsize}
    \input{My_Picture.tikz}
\end{scriptsize}
\end{figure}
\end{document}

enter image description here

Related Question