When I use framed option from backgrounds tikz library for axis environment, this example works ok:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{backgrounds}
\begin{document}
\begin{tikzpicture}
\begin{axis}[grid=both]
\end{axis}
\begin{axis}[xshift=2cm,yshift=3cm,width=4cm,framed]
\end{axis}
\end{tikzpicture}
\end{document}

but for more complicated background styles, like
background rectangle/.style={draw=red,fill=white},show background rectangle
nothing happend (howewer frame around subplot still appears).
If I use wrapping of axis environment into additional tikzpicture like this one:
\begin{tikzpicture}
\begin{axis}[grid=both]
\end{axis}
\begin{tikzpicture}[background rectangle/.style={draw=red,fill=white},
show background rectangle]
\begin{axis}[xshift=2cm,yshift=3cm,width=4cm]
\end{axis}
\end{tikzpicture}
\end{tikzpicture}
backgound ok, but positioning fails.
How could I use backrounds with pgfplots?
Similar question: how to use backgrounds for several axis together (it's useful for different right and left axis in one plot).

backgroundslibrary. There's a standard way for getting multiple axes described in the answer to Different Scales on the Same Plot – Jake Jul 03 '11 at 06:31axis, label of another one appears outside background rect. I try to apply/tikz/background/.style={}to thescopewrapping around of both axis, but nothing happened. – Molurd Jul 03 '11 at 07:04tikzpictureenvironment. – Jake Jul 03 '11 at 07:27