I found this plot/image online. I need to change the values of the boxes a bit and I want to plot it in a better quality with PGFPlots.
This is the code of my attempt:
\begin{tikzpicture}
\begin{axis}[
title={Title},
xlabel={Voltage [V]},
ylabel={Temperature [°C]},
xmin=0, xmax=10,
ymin=-15, ymax=300,
xtick={0,2,4,6,8,10},
ytick={0,50,100,150,200,250,300},
legend pos=north west,
ymajorgrids=true,
grid style=dashed,
]
\fill [red](axis cs:0,-15) rectangle (axis cs:2.5,300);
\end{axis}
\end{tikzpicture}
Problems that came up:
- Scaling of the axis
- Label of the areas (rectangles)
- Grid inside the plot
Is there a way to get this three points solved within PGFPlots?


\node [white] at (axis cs:x,y) {txt};? 3) Do you mean drawing the dashed and dotted lines? If yes, first part of http://tex.stackexchange.com/a/327983/586, combined withaxis cs.