Hello everyone,

I want to fill the background of a complete axis-environment, including
ticks and labels and everything. I see that this is done in the manual via a
colorbox. But this does not work anymore if you position the axis
environment using at=somewhere.

Find an example below. As you can see, fill=white for the second plot would
be handy to cover the grid of the first plot. Any ideas how to do this?

Here is the example:

\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
    \begin{axis}[grid=both]
        \addplot coordinates{
                            (0,1)
                            (1,1)
                            (1.2,1)
                            (1.3,1.01)
                            (1.4,0.95)
                            (1.5,1)
                            (2,1)
                            (3,1)
                            (3.5,3)
                            (4,5)};
        \node (Zoom) at (axis cs:1.2,2)[coordinate]{};
    \end{axis}
    \begin{axis}[tiny, grid=both, at=(Zoom), anchor=south west, fill=white]
%fill does not work!
        \addplot coordinates{
                            (1.2,1)
                            (1.3,1.01)
                            (1.4,0.95)
                            (1.5,1)};
    \end{axis}
\end{tikzpicture}
\end{document}

Regards,
Jan
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Pgfplots-features mailing list
Pgfplots-features@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgfplots-features

Reply via email to