I have problem with numbering subsection after figure label. I put appendix, caption and label, and put counter of figure to 0 so graph label says Picture 1. Then, when i want to start new chapter, section or subsection, it is numbered .0.1. instead of example, 2.2.1. How do i end figure labeling and let document continue section numbering normally? Here is the code:
\section{text}
\pgfplotsset{compat=1.12}
\begin{figure}[h]
\centering
\appendix
\begin{tikzpicture}
\begin{axis}[xlabel=x,ylabel=y,grid=both,xmax=10,ymax=10,axis lines=middle,restrict y to domain=-7:10,enlargelimits]
\addplot[blue] {pow(2,x)} node[above]{$y=2^x$};
\addplot[red] {pow(10,x)} node[above]{$y=10^x$};
\end{axis}
\end{tikzpicture}
\setcounter{figure}{0}
\caption{text}
\label{fig:text}
\end{figure}
\subsection{text}
\appendix
-Tag in the middle of your figure?