# Problem with opacity in pgfplots when using pstricks package [closed]

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:

    \documentclass{standalone}

\usepackage{pgfplots,pgfplotstable}
\usepgfplotslibrary{fillbetween}
\pgfplotsset{compat=1.12}

\usepackage{pstricks}

\begin{document}

\begin{tikzpicture}
\begin{axis}[enlargelimits=0.1]

fill=orange,
opacity=0.4
]
fill between[
of=f and g,
soft clip={domain=0:1},
];

\end{axis}
\end{tikzpicture}

\end{document}


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, ebosiDec 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
• I'm voting to close this question because it was solved in the comments. – Stefan Pinnow Dec 11 '16 at 13:49