Any advice on how to draw this generic graph? I said "generic" because is not based on any data, so apparently there are no references nor coordinates.
This is as far as I can go:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{patterns,hobby}
\usepackage{pgfplots}
\pgfplotsset{compat=1.6}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xmin=-0,xmax=7,
xlabel={z},
ymin=0,ymax=4.5,
xtick={2,4.5,6},
xticklabels={$t$,$t+dt$,$n$},
ytick={3.5},
yticklabels={$V(x)$},
xlabel={},
ylabel={},
axis lines=middle]
\draw [color=black,fill=white,thick,solid] (axis cs:0,0) rectangle (axis cs:6,3.5);
\draw [color=black,fill=white,thick,solid] (axis cs:0,0) rectangle (axis cs:2,3.5);
\addplot+[black,thick,domain=0:7,no marks] {0};
%
\node at (axis cs:2.5,0) [anchor=south west] {$$};
\node at (axis cs:4,0) [anchor=south west] {$$};
\node at (axis cs:2.8,2.2) [anchor=north] {$$};
\node at (axis cs:4.2,4) [anchor=north] {$$};
\node at (axis cs:0.25,2.5) [anchor=north] {$$};
\node at (axis cs:0.25,4) [anchor=north] {$$};
\node at (axis cs:0,0) [anchor=south west] {$$};
%
\end{axis}
\end{tikzpicture}
\end{document}
compat=1.6
, really? The latest version ofpgfplots
is 1.13.