PGFPlots fillbetween layer issue with main layerpgfplots fillbetween layering issueplotting two time series...

What is this waxed root vegetable?

Reason Why Dimensional Travelling Would be Restricted

Should I choose Itemized or Standard deduction?

Understanding Kramnik's play in game 1 of Candidates 2018

What if I store 10TB on azure servers and then keep the vm powered off?

What am I? I am in theaters and computer programs

How to count occurrences of Friday 13th

Sometimes a banana is just a banana

Skis versus snow shoes - when to choose which for travelling the backcountry?

Easy code troubleshooting in wordpress

Non-Italian European mafias in USA?

Casually inserting sexuality

Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?

How to tighten battery clamp?

Is there a low-level alternative to Animate Objects?

How to avoid being sexist when trying to employ someone to function in a very sexist environment?

Waiting for the gravy at a dinner table

Which aircraft had such a luxurious-looking navigator's station?

If nine coins are tossed, what is the probability that the number of heads is even?

How would we write a misogynistic character without offending people?

Pure Functions: Does "No Side Effects" Imply "Always Same Output, Given Same Input"?

Can you use a beast's innate abilities while polymorphed?

What type of postprocessing gives the effect of people standing out

Is divide-by-zero a security vulnerability?



PGFPlots fillbetween layer issue with main layer


pgfplots fillbetween layering issueplotting two time series with boundsGrouped bar chartHow do i get the x axis on top but keep a line on the bottomHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?How to hide empty (value 0) ybars with pgfplots?Show mark labels near marks and not centered in ybar interaval graphDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of thempgfplots: percentage in matrix plotCenter the axes in the coordinate origin













5















I am using fill between to create some diagrams where I need semi-transparent fillings above ploted lines. As normally fillings are put into a separate layer pre main below plot lines, I tried to move the fillings via on layer=main. They disappear? I don't know if this behaviour is intended. I can draw them on any other layer but this one. See the minimal example below:



documentclass[]{article} 
usepackage{pgfplots}
pgfplotsset{compat=1.14}
usepgfplotslibrary{fillbetween}

begin{document}
begin{tikzpicture}
begin{axis}
addplot+[name path=A,domain=0:1,samples=10] {x};
addplot+[name path=B,domain=0:1, samples=10] {x^2};
addplot fill between[of=A and B, on layer=main];
end{axis}
end{tikzpicture}
end{document}


Result



Change <code>on layer=main</code> and you can see the filling



My workaround at the moment is to draw everything onto the pre main layer.



Edit:



Giving the option in the addplot part of the statement has absolutely no effect:



documentclass[]{article} 
usepackage{pgfplots}
pgfplotsset{compat=1.14}
usepgfplotslibrary{fillbetween}

begin{document}

begin{tikzpicture}
begin{axis}[domain=0:1]
addplot+[name path=A, draw=none, mark=none] {x};
addplot+[name path=B, draw=none, mark=none] {x^2};
addplot+[draw=black, mark=none] {x-0.1};
addplot [on layer=axis foreground, fill=green] fill between[of=A and B];
addplot+[draw=blue, mark=none] {x-0.15};
end{axis}
end{tikzpicture}
end{document}


Result



No effect










share|improve this question




















  • 1





    Why do you desire/need to write the fillings in the main layer? The pgfplots documentation explicitly says that the fillbetween fillings are drawn in the pre main layer on purpose, to avoid possible overlappings with other plots

    – Moriambar
    Apr 6 '17 at 21:20











  • Easily said I need to create a line with a thin area along/surrounding it (like an error interval). The area has the same color as the line but is somewhat transparent - the for a unity. Now this line with its shadow crosses a second, similar line. This looks weird as the mix of the lines is not expected. Basically I just expect pgf fill between to plot something onto a layer I specify as it normally does and not just hide it in case I specify a magic layer. If there is a deeper meaning to it I can accept that but I don't understand the inconsistency.

    – bz-mof
    Apr 6 '17 at 21:35













  • Can this be relevant, perhaps?

    – Moriambar
    Apr 6 '17 at 21:39






  • 1





    No problem, I appreciate that you looked into my problem!

    – bz-mof
    Apr 6 '17 at 21:49






  • 1





    you need to give the option to the addplot part addplot[on layer=main, fill=green] fill between[of=A and B ];

    – percusse
    Apr 8 '17 at 7:59
















5















I am using fill between to create some diagrams where I need semi-transparent fillings above ploted lines. As normally fillings are put into a separate layer pre main below plot lines, I tried to move the fillings via on layer=main. They disappear? I don't know if this behaviour is intended. I can draw them on any other layer but this one. See the minimal example below:



documentclass[]{article} 
usepackage{pgfplots}
pgfplotsset{compat=1.14}
usepgfplotslibrary{fillbetween}

begin{document}
begin{tikzpicture}
begin{axis}
addplot+[name path=A,domain=0:1,samples=10] {x};
addplot+[name path=B,domain=0:1, samples=10] {x^2};
addplot fill between[of=A and B, on layer=main];
end{axis}
end{tikzpicture}
end{document}


Result



Change <code>on layer=main</code> and you can see the filling



My workaround at the moment is to draw everything onto the pre main layer.



Edit:



Giving the option in the addplot part of the statement has absolutely no effect:



documentclass[]{article} 
usepackage{pgfplots}
pgfplotsset{compat=1.14}
usepgfplotslibrary{fillbetween}

begin{document}

begin{tikzpicture}
begin{axis}[domain=0:1]
addplot+[name path=A, draw=none, mark=none] {x};
addplot+[name path=B, draw=none, mark=none] {x^2};
addplot+[draw=black, mark=none] {x-0.1};
addplot [on layer=axis foreground, fill=green] fill between[of=A and B];
addplot+[draw=blue, mark=none] {x-0.15};
end{axis}
end{tikzpicture}
end{document}


Result



No effect










share|improve this question




















  • 1





    Why do you desire/need to write the fillings in the main layer? The pgfplots documentation explicitly says that the fillbetween fillings are drawn in the pre main layer on purpose, to avoid possible overlappings with other plots

    – Moriambar
    Apr 6 '17 at 21:20











  • Easily said I need to create a line with a thin area along/surrounding it (like an error interval). The area has the same color as the line but is somewhat transparent - the for a unity. Now this line with its shadow crosses a second, similar line. This looks weird as the mix of the lines is not expected. Basically I just expect pgf fill between to plot something onto a layer I specify as it normally does and not just hide it in case I specify a magic layer. If there is a deeper meaning to it I can accept that but I don't understand the inconsistency.

    – bz-mof
    Apr 6 '17 at 21:35













  • Can this be relevant, perhaps?

    – Moriambar
    Apr 6 '17 at 21:39






  • 1





    No problem, I appreciate that you looked into my problem!

    – bz-mof
    Apr 6 '17 at 21:49






  • 1





    you need to give the option to the addplot part addplot[on layer=main, fill=green] fill between[of=A and B ];

    – percusse
    Apr 8 '17 at 7:59














5












5








5








I am using fill between to create some diagrams where I need semi-transparent fillings above ploted lines. As normally fillings are put into a separate layer pre main below plot lines, I tried to move the fillings via on layer=main. They disappear? I don't know if this behaviour is intended. I can draw them on any other layer but this one. See the minimal example below:



documentclass[]{article} 
usepackage{pgfplots}
pgfplotsset{compat=1.14}
usepgfplotslibrary{fillbetween}

begin{document}
begin{tikzpicture}
begin{axis}
addplot+[name path=A,domain=0:1,samples=10] {x};
addplot+[name path=B,domain=0:1, samples=10] {x^2};
addplot fill between[of=A and B, on layer=main];
end{axis}
end{tikzpicture}
end{document}


Result



Change <code>on layer=main</code> and you can see the filling



My workaround at the moment is to draw everything onto the pre main layer.



Edit:



Giving the option in the addplot part of the statement has absolutely no effect:



documentclass[]{article} 
usepackage{pgfplots}
pgfplotsset{compat=1.14}
usepgfplotslibrary{fillbetween}

begin{document}

begin{tikzpicture}
begin{axis}[domain=0:1]
addplot+[name path=A, draw=none, mark=none] {x};
addplot+[name path=B, draw=none, mark=none] {x^2};
addplot+[draw=black, mark=none] {x-0.1};
addplot [on layer=axis foreground, fill=green] fill between[of=A and B];
addplot+[draw=blue, mark=none] {x-0.15};
end{axis}
end{tikzpicture}
end{document}


Result



No effect










share|improve this question
















I am using fill between to create some diagrams where I need semi-transparent fillings above ploted lines. As normally fillings are put into a separate layer pre main below plot lines, I tried to move the fillings via on layer=main. They disappear? I don't know if this behaviour is intended. I can draw them on any other layer but this one. See the minimal example below:



documentclass[]{article} 
usepackage{pgfplots}
pgfplotsset{compat=1.14}
usepgfplotslibrary{fillbetween}

begin{document}
begin{tikzpicture}
begin{axis}
addplot+[name path=A,domain=0:1,samples=10] {x};
addplot+[name path=B,domain=0:1, samples=10] {x^2};
addplot fill between[of=A and B, on layer=main];
end{axis}
end{tikzpicture}
end{document}


Result



Change <code>on layer=main</code> and you can see the filling



My workaround at the moment is to draw everything onto the pre main layer.



Edit:



Giving the option in the addplot part of the statement has absolutely no effect:



documentclass[]{article} 
usepackage{pgfplots}
pgfplotsset{compat=1.14}
usepgfplotslibrary{fillbetween}

begin{document}

begin{tikzpicture}
begin{axis}[domain=0:1]
addplot+[name path=A, draw=none, mark=none] {x};
addplot+[name path=B, draw=none, mark=none] {x^2};
addplot+[draw=black, mark=none] {x-0.1};
addplot [on layer=axis foreground, fill=green] fill between[of=A and B];
addplot+[draw=blue, mark=none] {x-0.15};
end{axis}
end{tikzpicture}
end{document}


Result



No effect







tikz-pgf pgfplots fillbetween






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 12 hours ago









Stefan Pinnow

20.1k83276




20.1k83276










asked Apr 6 '17 at 21:02









bz-mofbz-mof

284




284








  • 1





    Why do you desire/need to write the fillings in the main layer? The pgfplots documentation explicitly says that the fillbetween fillings are drawn in the pre main layer on purpose, to avoid possible overlappings with other plots

    – Moriambar
    Apr 6 '17 at 21:20











  • Easily said I need to create a line with a thin area along/surrounding it (like an error interval). The area has the same color as the line but is somewhat transparent - the for a unity. Now this line with its shadow crosses a second, similar line. This looks weird as the mix of the lines is not expected. Basically I just expect pgf fill between to plot something onto a layer I specify as it normally does and not just hide it in case I specify a magic layer. If there is a deeper meaning to it I can accept that but I don't understand the inconsistency.

    – bz-mof
    Apr 6 '17 at 21:35













  • Can this be relevant, perhaps?

    – Moriambar
    Apr 6 '17 at 21:39






  • 1





    No problem, I appreciate that you looked into my problem!

    – bz-mof
    Apr 6 '17 at 21:49






  • 1





    you need to give the option to the addplot part addplot[on layer=main, fill=green] fill between[of=A and B ];

    – percusse
    Apr 8 '17 at 7:59














  • 1





    Why do you desire/need to write the fillings in the main layer? The pgfplots documentation explicitly says that the fillbetween fillings are drawn in the pre main layer on purpose, to avoid possible overlappings with other plots

    – Moriambar
    Apr 6 '17 at 21:20











  • Easily said I need to create a line with a thin area along/surrounding it (like an error interval). The area has the same color as the line but is somewhat transparent - the for a unity. Now this line with its shadow crosses a second, similar line. This looks weird as the mix of the lines is not expected. Basically I just expect pgf fill between to plot something onto a layer I specify as it normally does and not just hide it in case I specify a magic layer. If there is a deeper meaning to it I can accept that but I don't understand the inconsistency.

    – bz-mof
    Apr 6 '17 at 21:35













  • Can this be relevant, perhaps?

    – Moriambar
    Apr 6 '17 at 21:39






  • 1





    No problem, I appreciate that you looked into my problem!

    – bz-mof
    Apr 6 '17 at 21:49






  • 1





    you need to give the option to the addplot part addplot[on layer=main, fill=green] fill between[of=A and B ];

    – percusse
    Apr 8 '17 at 7:59








1




1





Why do you desire/need to write the fillings in the main layer? The pgfplots documentation explicitly says that the fillbetween fillings are drawn in the pre main layer on purpose, to avoid possible overlappings with other plots

– Moriambar
Apr 6 '17 at 21:20





Why do you desire/need to write the fillings in the main layer? The pgfplots documentation explicitly says that the fillbetween fillings are drawn in the pre main layer on purpose, to avoid possible overlappings with other plots

– Moriambar
Apr 6 '17 at 21:20













Easily said I need to create a line with a thin area along/surrounding it (like an error interval). The area has the same color as the line but is somewhat transparent - the for a unity. Now this line with its shadow crosses a second, similar line. This looks weird as the mix of the lines is not expected. Basically I just expect pgf fill between to plot something onto a layer I specify as it normally does and not just hide it in case I specify a magic layer. If there is a deeper meaning to it I can accept that but I don't understand the inconsistency.

– bz-mof
Apr 6 '17 at 21:35







Easily said I need to create a line with a thin area along/surrounding it (like an error interval). The area has the same color as the line but is somewhat transparent - the for a unity. Now this line with its shadow crosses a second, similar line. This looks weird as the mix of the lines is not expected. Basically I just expect pgf fill between to plot something onto a layer I specify as it normally does and not just hide it in case I specify a magic layer. If there is a deeper meaning to it I can accept that but I don't understand the inconsistency.

– bz-mof
Apr 6 '17 at 21:35















Can this be relevant, perhaps?

– Moriambar
Apr 6 '17 at 21:39





Can this be relevant, perhaps?

– Moriambar
Apr 6 '17 at 21:39




1




1





No problem, I appreciate that you looked into my problem!

– bz-mof
Apr 6 '17 at 21:49





No problem, I appreciate that you looked into my problem!

– bz-mof
Apr 6 '17 at 21:49




1




1





you need to give the option to the addplot part addplot[on layer=main, fill=green] fill between[of=A and B ];

– percusse
Apr 8 '17 at 7:59





you need to give the option to the addplot part addplot[on layer=main, fill=green] fill between[of=A and B ];

– percusse
Apr 8 '17 at 7:59










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f362517%2fpgfplots-fillbetween-layer-issue-with-main-layer%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f362517%2fpgfplots-fillbetween-layer-issue-with-main-layer%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Why does my Macbook overheat and use so much CPU and energy when on YouTube?Why do so many insist on using...

How to prevent page numbers from appearing on glossaries?How to remove a dot and a page number in the...

Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...