Open pgf-tikz-bot opened 8 years ago
Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/103/#e459 Author: bz-mof Timestamp: 2017-05-07 15:44:47.318000
I ran into the same problem. And while trying to find a workaround I found out that fillbetween itself isn't the problem. It has something to do with the layer settings. Adding these snippets to any picture using \spy breaks the whole thing like in your example:
/pgfplots/layers/TestLayers/.define layer set={axis background,axis grid,axis ticks,pre main,main,axis lines,axis tick labels,axis descriptions,axis foreground}{/pgfplots/layers/standard},
\begin{axis}[set layers=TestLayers,
As fillbetween uses similar code, this is probably the reason that fillbetween clashes with spy.
Just as a side-note: axis on top works fine.
Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/103/#0b83 Author: mo-gul Timestamp: 2018-12-08 07:10:16.335000
There was added an answer to the question that states that behavior is not a bug in PGFPlots but a core PGF bug.
I just created a ticket in PGF here: https://github.com/pgf-tikz/pgf/issues/1277
Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/103/ Author: mo-gul Timestamp: 2016-02-02 17:03:27.538000
When I add a spy the grid as well as the fill between path get broken and are not drawn any more.
This bug can now also be found on TeX.SX: