1

This question already has an answer here:

I am trying to fill two overlapped regions using fill and pattern. My problem is that the opacity option is not working in my example:

 \begin{figure}[ht!]
  \centering
   \begin{tikzpicture}[scale=0.85]
    \begin{axis}
        [ticks=none,
        ymin=0,ymax=1.7,
        xmin=0,xmax=1.7]      
    \addplot[pattern=dots,mark=*] coordinates {
                (0,0)
                (0,1.3)
                (1.1,1.1)
                (1.3,0)
                (0,0)   
    };
    \addplot[fill=green,fill opacity=0.2,mark=*] coordinates {
                (0,0)
                (0,1.3)
                (1.3,0)
                (0,0)    };
     \end{axis}
    \end{tikzpicture}
   \end{figure}   `

which produces the follwing figure:

enter image description here

I need to reduce the opacity of the green region.

marked as duplicate by Symbol 1, Zarko tikz-pgf Apr 22 '17 at 21:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • It works for me. Which version of pgfplots do you use? Please try updating. – user11232 Oct 4 '15 at 13:42
  • @HarishKumar I updated all the packages (in Miktex) but still have the same problem. For the pgfplots version, I found in the text file: Package: pgfplots 2015/05/02 v1.12.1 Data Visualization (1.12.1). – tam Oct 4 '15 at 14:19
  • I too have the same version but it works: i.stack.imgur.com/jQPX1.png Can you show the full code please. – user11232 Oct 4 '15 at 14:23
  • Might also be a viewer issue. I know my slightly old version of evince doesn't always get this right, but double checked in Adobe Reader things look as they should. – daleif Oct 4 '15 at 14:26
  • 1
    @tam That's why you need to write a full example in the question. :) You don't need this transparent package with pgfplots, you can remove it. – Alenanno Jun 17 '16 at 17:39
-2

i had the same error and could reduce it to the following package: fixmetodonotes. This interfered with transparency.

By adding

\usepackage{fixmetodonotes}

to the above example, transparency got lost.

Not the answer you're looking for? Browse other questions tagged or ask your own question.