First of all I want to thank you if you read my post.

So I use the package tikz of LaTeX I want to fill a specific area. I searched alot and found some solutions with fill between and addplot but for different reasons I want to keep the \draw command.

Here's my code:

\documentclass[10pt,aps,prb,twocolumn, nofootinbib]{revtex4-1}
    bookmarks=true,         % show bookmarks bar?
    unicode=false,          % non-Latin characters in Acrobat’s bookmarks
    pdftoolbar=true,        % show Acrobat’s toolbar?
    pdfmenubar=true,        % show Acrobat’s menu?
    pdffitwindow=false,     % window fit to page when opened
    pdfstartview={FitH},    % fits the width of the page to the window
    pdfauthor={Kevin Multani},     % author
    colorlinks=true,       % false: boxed links; true: colored links
    linkcolor=blue,          % color of internal links
    citecolor=red,        % color of links to bibliography
\newcommand{\ut}{\ensuremath{\frac{\partial u}{\partial t}}}
\newcommand{\uxx}{\ensuremath{\frac{\partial^2 u}{\partial x^2}}}
\newcommand{\Qt}{\ensuremath{\frac{dQ}{dt}} }
\newcommand{\fixme}{{\bf **FIXME**}}
%vertical & horizontal axis
\draw[->](0,0) --(6,0) node [right] {$\mu$};
\draw[->](0,0) --(0,4) node [left] {$\gamma(\mu)$};
\coordinate [label={[black] below:0}] (S) at (0,0);
\coordinate [label={[black] below:1}] (S) at (5.6,0);
\coordinate [label={[black] left:1}] (S) at (0,3.7);

% Lines & Curves
\draw [thick, blue](0,0) -- (4,0);

\draw [thick, blue] plot [smooth, tension=1] coordinates { (4,0) (5,1) (5.3,3) };
\coordinate [label={left:$\gamma=\mu$}] (S) at (5.1,3);

\node[align=center,font=\bfseries, yshift=2em] (title) 
    at (current bounding box.north)
    {Summary of the Signaling Model};

Which yields the following result:


I want to fill the area above left the blue curve with some west lines. Unfortunally reading the documentation on clip & fill did not give me a good result (some spaces were missing).

Again thank you if you have any solutions


I found a solution. The idea is to place 4 points on the graph to delimit frontiers. What to add:

  \fill[color=brown!20, opacity=0.3]
-- plot [smooth, tension=1] coordinates { (4,0) (5,1) (5.3,3) }
-- (0,3) --cycle;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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