2

I have this code :

\documentclass[tikz]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{comment}
\usepackage{tkz-euclide}
\usetkzobj{all} 
\tikzset{
b/.style={draw, rectangle, rounded corners=1.5ex,minimum height=0.4in, text width = .7in, minimum width=1in,align=center},
d/.style={draw, rectangle, rounded corners=1.5ex,minimum height=0.4in, text width = .5in, minimum width=.5in,align=center},
c/.style={draw, rectangle, rounded corners=1ex, minimum height=0.2in, minimum  width=.3in,align=center},
}
\usetikzlibrary{shapes.geometric,arrows,positioning,fit,calc,backgrounds}

\begin{document}
 \pgfmathsetseed{1}
   \begin{tikzpicture}
      \draw (0,.5) circle (0.2cm);
   \node[rectangle] (user) at (0, -1) {User};
   \draw (0,0.3) -- (0, -.2);
   \draw (-.1, .1) -- (.1, .1);
   \draw (0,-.2) -- (.12,-.6);
   \draw (0,-.2) -- (-.12, -.6);

   \node[b] (server) at(0, 2) {Server};

   \node (node1) at (4,4){};


   \node[b, above=6cm of user] (app) {App};



   \coordinate (a) at (app.north);
    \coordinate (c) at ($(node1.east) + (.3,0)$) ;
    \coordinate (b) at (server.east);  % modify the -1cm offset here

   % Draw the arc through the points
    \tkzCircumCenter(c,b,a)\tkzGetPoint{O}
    \tikzset{compass style/.append style={<-,thick,black}}
    \tkzDrawArc(O,b)(a) 

    \node[above=1cm of app] (abapp){};
    \node (righ) at ($(node1.east) + (1.2,0)$){Results};

    \node[left=12 of node1.center, text width = 2.5cm](scn) {};


    \node[draw, fill opacity=0.2,fill=blue, fit=(righ)(abapp)(scn)(user)] (fiter) {};

    \clip (fiter.south west) rectangle (fiter.north east);

   \end{tikzpicture}   

   \end{document}  

I got this result (the white above the blue rectangle is a part of the result) : enter image description here

How can I print only the blue part (compile it to see my problem)? I used clip but it doesn't work. The white space is created when I draw the arc through the three points.

3

To remove the white space you can use

\pgfresetboundingbox
\path(fiter.south west) rectangle (fiter.north east);

instead of

\clip (fiter.south west) rectangle (fiter.north east);

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.