Can anyone tell me why doesn't opacity work in pgfplots when I include the package "pstricks" and how could I fix it?

See for example the code below:





        \addplot[name path=f,domain=-.15:1.05,blue, draw=none] {x^2};
        \addplot[name path=g, domain=.15:1.05,blue, draw=none] {x^3}; 

        \addplot [
        fill between[
            of=f and g,
            soft clip={domain=0:1},



Like this the opacity doesn't work for me, but if I remove \usepackage{pstricks} it works fine.

closed as off-topic by Stefan Pinnow, Mensch, Maarten Dhondt, Zarko, ebosi Dec 11 '16 at 15:54

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Are you compiling with XeLaTeX or LaTeX--> DVi --> PDF? – percusse Apr 5 '15 at 10:03
  • With LaTeX-->DVI-->PDF. I tried right now with XeLaTeX and it works fine also with pstricks. Thank you! – Telemach Apr 5 '15 at 10:15
  • It also works if I compile LaTeX-->DVI-->PS-->PDF. – Telemach Apr 5 '15 at 10:21
  • @Telemach, so can we close this question as being solved or do you need further assistance? – Stefan Pinnow Nov 28 '16 at 19:33
  • 4
    I'm voting to close this question because it was solved in the comments. – Stefan Pinnow Dec 11 '16 at 13:49