Title: pgfplots &#8211;&gt; fillbetween
Last modified: August 30, 2016

---

# pgfplots –> fillbetween

 *  Resolved [Matheboy](https://wordpress.org/support/users/matheboy/)
 * (@matheboy)
 * [11 years ago](https://wordpress.org/support/topic/pgfplots-fillbetween/)
 * Hi,
    I try to use tikzpicture with the Quicklatex Plugin. Now i get the message:
 * *** Error message:
    I can’t find file `pgflibrarypgfplots.fillbetween.code.tex’.
   leading text: \usepgfplotslibrary{fillbetween}
 * Can you help me please? 🙂
 * Here the Code:
 *     ```
       [latex]
   
       \begin{tikzpicture}
       [+preamble]
       \usepackage{tikz}
       \usepackage{pgfplots}
       \usepgfplotslibrary{fillbetween}
       \usetikzlibrary{patterns}
       \usepackage{color}
       /listfiles
       [/preamble]
        \begin{axis}[
        axis equal,
        %domain=-3:3,
        grid,
        grid style={dashed,gray!30},
        smooth,
        xmin=-2, xmax=2,
        ymin=-1.5, ymax=3.5,
        axis lines=middle,
        xlabel=$x$,
        xlabel style={below, anchor=north east,inner xsep=0pt},
        xtick={-2,...,2},
        ylabel=$y$,
        ylabel style={above,anchor=north east,inner ysep=0pt},
        ytick={-1,...,3},
        samples=100,
        %legend cell align=left,
        %legend pos=outer north east,
        legend style={at={(1,1)},xshift=0cm,anchor=north east,nodes=right,fill=none}
        ]
   
        \addplot[red,name path=f1,mark=none,domain=-2:2,line legend,thick] {3-x^2};
        \addlegendentry{$f_{1}(x)$}
   
        \addplot[blue,name path=f2,mark=none,domain=-1.4:1.4, line legend,thick] {3*x^2-1};
        \addlegendentry{$f_{2}(x)$}
   
       \path[name path=lower,intersection segments={of=f1 and f2,sequence=B0 --A1}];
       \addplot[pattern=north west lines, pattern color=green]fill between[of=f2 and lower];
       \addlegendentry{$\cal{A}$}
       \end{axis}
       \end{tikzpicture}
   
       [/latex]
       ```
   

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [Matheboy](https://wordpress.org/support/users/matheboy/)
 * (@matheboy)
 * [11 years ago](https://wordpress.org/support/topic/pgfplots-fillbetween/#post-6293242)
 * **HEEEEEEEEEEEELP!!!!!!!!!!!!!!!!!**
 *  Plugin Author [advanpix](https://wordpress.org/support/users/advanpix/)
 * (@advanpix)
 * [11 years ago](https://wordpress.org/support/topic/pgfplots-fillbetween/#post-6293266)
 * Hi,
 * Sorry for delay in answer – it was a deep night in Japan 🙂
 * The `fillbetween` library was introduced only in the latest version of pgfplots
   1.10.
 * We will update our TexLive installation shortly – to include the newest version.
 *  Plugin Author [advanpix](https://wordpress.org/support/users/advanpix/)
 * (@advanpix)
 * [11 years ago](https://wordpress.org/support/topic/pgfplots-fillbetween/#post-6293278)
 * Server has been updated.
 * Here is image generated from your code:
 * [http://www.holoborodko.com/pavel/wp-content/ql-cache/quicklatex.com-5361f8458dedbaf536bc2a78337fd319_l3.svg](http://www.holoborodko.com/pavel/wp-content/ql-cache/quicklatex.com-5361f8458dedbaf536bc2a78337fd319_l3.svg)
 * I had to remove ‘/listfiles’.
 * Actualy there is a whole new version of WP-QuickLaTeX is available – please update.
 *  Plugin Author [advanpix](https://wordpress.org/support/users/advanpix/)
 * (@advanpix)
 * [11 years ago](https://wordpress.org/support/topic/pgfplots-fillbetween/#post-6293282)
 * Marked as resolved
 *  Thread Starter [Matheboy](https://wordpress.org/support/users/matheboy/)
 * (@matheboy)
 * [11 years ago](https://wordpress.org/support/topic/pgfplots-fillbetween/#post-6293284)
 * you are my white knight in the darkness hahaha
    thank you very much!!!!!!!
 *  Plugin Author [advanpix](https://wordpress.org/support/users/advanpix/)
 * (@advanpix)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/pgfplots-fillbetween/#post-6293434)
 * If you like it – you can always give us some stars ;).
 * Take a look on ratings section on plugin page:
    [https://wordpress.org/plugins/wp-quicklatex/](https://wordpress.org/plugins/wp-quicklatex/)

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘pgfplots –> fillbetween’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-quicklatex.svg)
 * [WP QuickLaTeX](https://wordpress.org/plugins/wp-quicklatex/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-quicklatex/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-quicklatex/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-quicklatex/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-quicklatex/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-quicklatex/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [advanpix](https://wordpress.org/support/users/advanpix/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/pgfplots-fillbetween/#post-6293434)
 * Status: resolved