I'm trying to highlight an entire paragraph that contains a figure drawn with tikz. I'd like to highlight the text and also the blank space around the figure, while the figure itself should have the usual white background (the rectangle in my example means only that what's inside should not be shaded).
\documentclass{article}
\usepackage{tikz}
\begin{document}
Some text of the main body of the document.
\paragraph{Paragraph}
Some text of the paragraph.
\begin{figure}[h]
\centering
\begin{tikzpicture}
\node at (0,0) [rectangle,draw] {
\begin{tikzpicture}
\draw [->] (-.5,0) -- (5,0) node [below] {$x$};
\draw [->] (0,-.5) -- (0,3) node [left] {$y$};
\end{tikzpicture}};
\end{tikzpicture}
\caption{The rectangle only delimits the area without shaded background; it needn't be rendered in actual paragraph.}
\label{fig:label}
\end{figure}
Some text of the paragraph. \\
Some text of the main body of the document.
\end{document}
I'm using this topic as a reference.
Is it even possible to do?