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

How to approximate rolls for potions of healing using only d6's?

How to properly claim credit for peer review?

chrony vs. systemd-timesyncd – What are the differences and use cases as NTP clients?

"Murder!" The knight said

As a new poet, where can I find help from a professional to judge my work?

What do the pedals on grand pianos do?

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

Significance and timing of "mux scans"

Find the next monthly expiration date

Linear regression when Y is bounded and discrete

Why is working on the same position for more than 15 years not a red flag?

Is there a low-level alternative to Animate Objects?

What is this waxed root vegetable?

Should I choose Itemized or Standard deduction?

Auto Insert date into Notepad

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

Is there any relevance to Thor getting his hair cut other than comedic value?

How to acknowledge an embarrassing job interview, now that I work directly with the interviewer?

Second-rate spelling

Six real numbers so that product of any five is the sixth one

I encountered my boss during an on-site interview at another company. Should I bring it up when seeing him next time?

If a druid in Wild Shape swallows a creature whole, then turns back to her normal form, what happens?

How to speed up a process

How can I be pwned if I'm not registered on that site?



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 15 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 /...