How to have a filled patternRotate a node but not its content: the case of the ellipse decorationProblem...

Why is there paternal, for fatherly, fraternal, for brotherly, but no similar word for sons?

Function that detects repetitions

How was the website able to tell my credit card was wrong before it processed it?

When moving a unique_ptr into a lambda, why is it not possible to call reset?

Can one block with a protection from color creature?

Why am I getting unevenly-spread results when using $RANDOM?

Computer name naming convention for security

My professor has told me he will be the corresponding author. Will it hurt my future career?

Why is whale hunting treated differently from hunting other animals?

How to have a filled pattern

What is this burst transmission sequence across the entire band?

Why did RFK loathe LBJ?

Can the Four Elements monk's Shape the Flowing River elemental discipline create stairs by expending a single ki point?

Sorting a list according to some pre-specified rules

Where are the Wazirs?

Troubling glyphs

What are the effects of abstaining from eating a certain flavor?

How to gather entities into sets?

What does "frozen" mean (e.g. for catcodes)?

Why did the frequency of the word "черт" (devil) in books increase by a few times since the October Revolution?

How did the IEC decide to create kibibytes?

QR codes, do people use them?

Taking my Ph.D. advisor out for dinner after graduation

Can we share mixing jug/beaker for developer, fixer and stop bath?



How to have a filled pattern


Rotate a node but not its content: the case of the ellipse decorationProblem about pattern and gradientHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?Scale dash pattern with line widthHow to have a real random pattern?TikZ/ERD: node (=Entity) label on the insideuse circuitikz picture inside tikzpictureTikZ: Drawing an arc from an intersection to an intersectionLine up nested tikz enviroments or how to get rid of them






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







2















I have the following rectangle:



documentclass[tikz,11pt]{standalone}
usepackage{pgfplots}
usetikzlibrary{shapes,fit,chains,positioning,patterns}
usepackage{xcolor}
usepackage{graphicx}

pgfplotsset{compat=newest}

begin{document}
begin{tikzpicture}
fill[blue!8!white] (0.3,1.1) -- (0.3,0.68) -- (1.2,0.68) -- (1.2,1.1);
filldraw[pattern = north east lines,rounded corners=8pt, blue!8!white,draw=black] (0.3,1.1) -- (0.3,3.45) -- (1.2,3.45) -- (1.2,1.1);
draw[dashed] (0.3,1.1) -- (0.3,0.68);
draw[dashed] (1.2,1.1) -- (1.2,0.68);
filldraw[rounded corners=8pt, blue!8!white,draw=black] (0.3,0.68) -- (0.3,-0.3) -- (1.2,-0.3) -- (1.2,0.68);
node[draw=none,fill=none] at (0.75,1.575) {footnotesize{text{Q/C}}};
end{tikzpicture}
end{document}


rather than a continuous fill, how can I have a striped fill? Additionally I want the pattern shading to leave a rounded white rectangle about the text node in the centre.










share|improve this question





























    2















    I have the following rectangle:



    documentclass[tikz,11pt]{standalone}
    usepackage{pgfplots}
    usetikzlibrary{shapes,fit,chains,positioning,patterns}
    usepackage{xcolor}
    usepackage{graphicx}

    pgfplotsset{compat=newest}

    begin{document}
    begin{tikzpicture}
    fill[blue!8!white] (0.3,1.1) -- (0.3,0.68) -- (1.2,0.68) -- (1.2,1.1);
    filldraw[pattern = north east lines,rounded corners=8pt, blue!8!white,draw=black] (0.3,1.1) -- (0.3,3.45) -- (1.2,3.45) -- (1.2,1.1);
    draw[dashed] (0.3,1.1) -- (0.3,0.68);
    draw[dashed] (1.2,1.1) -- (1.2,0.68);
    filldraw[rounded corners=8pt, blue!8!white,draw=black] (0.3,0.68) -- (0.3,-0.3) -- (1.2,-0.3) -- (1.2,0.68);
    node[draw=none,fill=none] at (0.75,1.575) {footnotesize{text{Q/C}}};
    end{tikzpicture}
    end{document}


    rather than a continuous fill, how can I have a striped fill? Additionally I want the pattern shading to leave a rounded white rectangle about the text node in the centre.










    share|improve this question

























      2












      2








      2








      I have the following rectangle:



      documentclass[tikz,11pt]{standalone}
      usepackage{pgfplots}
      usetikzlibrary{shapes,fit,chains,positioning,patterns}
      usepackage{xcolor}
      usepackage{graphicx}

      pgfplotsset{compat=newest}

      begin{document}
      begin{tikzpicture}
      fill[blue!8!white] (0.3,1.1) -- (0.3,0.68) -- (1.2,0.68) -- (1.2,1.1);
      filldraw[pattern = north east lines,rounded corners=8pt, blue!8!white,draw=black] (0.3,1.1) -- (0.3,3.45) -- (1.2,3.45) -- (1.2,1.1);
      draw[dashed] (0.3,1.1) -- (0.3,0.68);
      draw[dashed] (1.2,1.1) -- (1.2,0.68);
      filldraw[rounded corners=8pt, blue!8!white,draw=black] (0.3,0.68) -- (0.3,-0.3) -- (1.2,-0.3) -- (1.2,0.68);
      node[draw=none,fill=none] at (0.75,1.575) {footnotesize{text{Q/C}}};
      end{tikzpicture}
      end{document}


      rather than a continuous fill, how can I have a striped fill? Additionally I want the pattern shading to leave a rounded white rectangle about the text node in the centre.










      share|improve this question














      I have the following rectangle:



      documentclass[tikz,11pt]{standalone}
      usepackage{pgfplots}
      usetikzlibrary{shapes,fit,chains,positioning,patterns}
      usepackage{xcolor}
      usepackage{graphicx}

      pgfplotsset{compat=newest}

      begin{document}
      begin{tikzpicture}
      fill[blue!8!white] (0.3,1.1) -- (0.3,0.68) -- (1.2,0.68) -- (1.2,1.1);
      filldraw[pattern = north east lines,rounded corners=8pt, blue!8!white,draw=black] (0.3,1.1) -- (0.3,3.45) -- (1.2,3.45) -- (1.2,1.1);
      draw[dashed] (0.3,1.1) -- (0.3,0.68);
      draw[dashed] (1.2,1.1) -- (1.2,0.68);
      filldraw[rounded corners=8pt, blue!8!white,draw=black] (0.3,0.68) -- (0.3,-0.3) -- (1.2,-0.3) -- (1.2,0.68);
      node[draw=none,fill=none] at (0.75,1.575) {footnotesize{text{Q/C}}};
      end{tikzpicture}
      end{document}


      rather than a continuous fill, how can I have a striped fill? Additionally I want the pattern shading to leave a rounded white rectangle about the text node in the centre.







      tikz-pgf tikz-styles






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 11 hours ago









      SidSid

      7233 silver badges16 bronze badges




      7233 silver badges16 bronze badges






















          2 Answers
          2






          active

          oldest

          votes


















          6














          You can use postaction for the pattern. I also cleaned up a bit.



          documentclass[tikz,11pt]{standalone}
          usetikzlibrary{patterns}
          begin{document}
          begin{tikzpicture}
          path[postaction={pattern = north east lines},rounded corners=8pt,
          fill=blue!8!white] (0.3,-0.3) rectangle (1.2,3.45)
          node[midway,font=footnotesize,fill=white,rounded corners=2pt,inner sep=1.5pt] {Q/C};
          draw[dashed] (0.3,1.1) -- (0.3,0.68) (1.2,1.1) -- (1.2,0.68);
          draw[rounded corners=8pt] (0.3,1.1) |- (0.75,3.45)
          (1.2,1.1) |- (0.75,3.45)
          (0.3,0.68) |- (0.75,-0.3)
          (1.2,0.68)|- (0.75,-0.3);
          end{tikzpicture}
          end{document}


          enter image description here



          This is a style Sid grid which allows you to have a fully customizable pattern. It uses a path picture, which takes a few milliseconds more to compile, but is way more flexible, and can be transformed and so on.



          documentclass[tikz,11pt]{standalone}
          usetikzlibrary{patterns,calc}
          pgfkeys{/Sid/.cd,
          grid/.style={draw=black,double=blue!8!white,line width=0.4pt,double distance=2pt},
          distance/.initial=6pt,
          }
          tikzset{Sid grid/.style={/utils/exec=pgfkeys{/Sid/.cd,#1},
          path picture={
          path[/Sid/grid] let p1=($(path picture bounding box.north east)-(path picture bounding
          box.south west)$),n1={int((x1+y1)/pgfkeysvalueof{/Sid/distance})} in
          pgfextra{pgfmathsetmacromynmax{n1}}
          foreach XX in {1,...,mynmax}
          {
          ([xshift={-y1-2pt+XX*pgfkeysvalueof{/Sid/distance}},yshift=-2pt]path picture bounding box.south west)
          --
          ([xshift=XX*pgfkeysvalueof{/Sid/distance}+2pt,yshift=2pt]path picture bounding box.north west)
          };
          }}}

          begin{document}
          begin{tikzpicture}
          pgfmathsetmacro{mh}{6/sqrt(2)}
          path[rounded corners=8pt,Sid grid] (0.3,-0.3) rectangle (1.2,3.45)
          node[midway,font=footnotesize,fill=white,rounded corners=2pt,inner sep=1.5pt] {Q/C};
          draw[dashed] (0.3,1.1) -- (0.3,0.68) (1.2,1.1) -- (1.2,0.68);
          draw[rounded corners=8pt] (0.3,1.1) |- (0.75,3.45)
          (1.2,1.1) |- (0.75,3.45)
          (0.3,0.68) |- (0.75,-0.3)
          (1.2,0.68)|- (0.75,-0.3);
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer


























          • As opposed to having black lines running through, is it possible for the shading itself to be stripped? I.e. having stripes of blue shaded regions interspersed with white regions?

            – Sid
            9 hours ago











          • @Sid So you want to have white diagonal and blue diagonal areas alternating? (Yes, that is possible.)

            – marmot
            9 hours ago











          • Yes, that's what i'm looking for

            – Sid
            9 hours ago











          • @Sid Done. You can control all aspects since things are stored in pgf keys.

            – marmot
            8 hours ago



















          4














          Like this ?



          documentclass[tikz,11pt,border=5mm]{standalone}
          usepackage{pgfplots}
          usetikzlibrary{shapes,fit,chains,positioning,patterns}
          usepackage{xcolor}
          usepackage{graphicx}

          pgfplotsset{compat=newest}

          begin{document}
          begin{tikzpicture}
          fill[blue!8!white] (0.3,1.1) -- (0.3,0.68) -- (1.2,0.68) -- (1.2,1.1);
          filldraw[blue!8!white,pattern = north east lines,rounded corners=8pt, draw=black] (0.3,1.1) -- (0.3,3.45) -- (1.2,3.45) -- (1.2,1.1);
          draw[dashed] (0.3,1.1) -- (0.3,0.68);
          draw[dashed] (1.2,1.1) -- (1.2,0.68);
          filldraw[rounded corners=8pt, blue!8!white,draw=black] (0.3,0.68) -- (0.3,-0.3) -- (1.2,-0.3) -- (1.2,0.68);
          node[draw=none,fill=none] at (0.75,1.575) {footnotesize{{Q/C}}};
          end{tikzpicture}
          end{document}


          screenshot






          share|improve this answer


























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "85"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f498738%2fhow-to-have-a-filled-pattern%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            6














            You can use postaction for the pattern. I also cleaned up a bit.



            documentclass[tikz,11pt]{standalone}
            usetikzlibrary{patterns}
            begin{document}
            begin{tikzpicture}
            path[postaction={pattern = north east lines},rounded corners=8pt,
            fill=blue!8!white] (0.3,-0.3) rectangle (1.2,3.45)
            node[midway,font=footnotesize,fill=white,rounded corners=2pt,inner sep=1.5pt] {Q/C};
            draw[dashed] (0.3,1.1) -- (0.3,0.68) (1.2,1.1) -- (1.2,0.68);
            draw[rounded corners=8pt] (0.3,1.1) |- (0.75,3.45)
            (1.2,1.1) |- (0.75,3.45)
            (0.3,0.68) |- (0.75,-0.3)
            (1.2,0.68)|- (0.75,-0.3);
            end{tikzpicture}
            end{document}


            enter image description here



            This is a style Sid grid which allows you to have a fully customizable pattern. It uses a path picture, which takes a few milliseconds more to compile, but is way more flexible, and can be transformed and so on.



            documentclass[tikz,11pt]{standalone}
            usetikzlibrary{patterns,calc}
            pgfkeys{/Sid/.cd,
            grid/.style={draw=black,double=blue!8!white,line width=0.4pt,double distance=2pt},
            distance/.initial=6pt,
            }
            tikzset{Sid grid/.style={/utils/exec=pgfkeys{/Sid/.cd,#1},
            path picture={
            path[/Sid/grid] let p1=($(path picture bounding box.north east)-(path picture bounding
            box.south west)$),n1={int((x1+y1)/pgfkeysvalueof{/Sid/distance})} in
            pgfextra{pgfmathsetmacromynmax{n1}}
            foreach XX in {1,...,mynmax}
            {
            ([xshift={-y1-2pt+XX*pgfkeysvalueof{/Sid/distance}},yshift=-2pt]path picture bounding box.south west)
            --
            ([xshift=XX*pgfkeysvalueof{/Sid/distance}+2pt,yshift=2pt]path picture bounding box.north west)
            };
            }}}

            begin{document}
            begin{tikzpicture}
            pgfmathsetmacro{mh}{6/sqrt(2)}
            path[rounded corners=8pt,Sid grid] (0.3,-0.3) rectangle (1.2,3.45)
            node[midway,font=footnotesize,fill=white,rounded corners=2pt,inner sep=1.5pt] {Q/C};
            draw[dashed] (0.3,1.1) -- (0.3,0.68) (1.2,1.1) -- (1.2,0.68);
            draw[rounded corners=8pt] (0.3,1.1) |- (0.75,3.45)
            (1.2,1.1) |- (0.75,3.45)
            (0.3,0.68) |- (0.75,-0.3)
            (1.2,0.68)|- (0.75,-0.3);
            end{tikzpicture}
            end{document}


            enter image description here






            share|improve this answer


























            • As opposed to having black lines running through, is it possible for the shading itself to be stripped? I.e. having stripes of blue shaded regions interspersed with white regions?

              – Sid
              9 hours ago











            • @Sid So you want to have white diagonal and blue diagonal areas alternating? (Yes, that is possible.)

              – marmot
              9 hours ago











            • Yes, that's what i'm looking for

              – Sid
              9 hours ago











            • @Sid Done. You can control all aspects since things are stored in pgf keys.

              – marmot
              8 hours ago
















            6














            You can use postaction for the pattern. I also cleaned up a bit.



            documentclass[tikz,11pt]{standalone}
            usetikzlibrary{patterns}
            begin{document}
            begin{tikzpicture}
            path[postaction={pattern = north east lines},rounded corners=8pt,
            fill=blue!8!white] (0.3,-0.3) rectangle (1.2,3.45)
            node[midway,font=footnotesize,fill=white,rounded corners=2pt,inner sep=1.5pt] {Q/C};
            draw[dashed] (0.3,1.1) -- (0.3,0.68) (1.2,1.1) -- (1.2,0.68);
            draw[rounded corners=8pt] (0.3,1.1) |- (0.75,3.45)
            (1.2,1.1) |- (0.75,3.45)
            (0.3,0.68) |- (0.75,-0.3)
            (1.2,0.68)|- (0.75,-0.3);
            end{tikzpicture}
            end{document}


            enter image description here



            This is a style Sid grid which allows you to have a fully customizable pattern. It uses a path picture, which takes a few milliseconds more to compile, but is way more flexible, and can be transformed and so on.



            documentclass[tikz,11pt]{standalone}
            usetikzlibrary{patterns,calc}
            pgfkeys{/Sid/.cd,
            grid/.style={draw=black,double=blue!8!white,line width=0.4pt,double distance=2pt},
            distance/.initial=6pt,
            }
            tikzset{Sid grid/.style={/utils/exec=pgfkeys{/Sid/.cd,#1},
            path picture={
            path[/Sid/grid] let p1=($(path picture bounding box.north east)-(path picture bounding
            box.south west)$),n1={int((x1+y1)/pgfkeysvalueof{/Sid/distance})} in
            pgfextra{pgfmathsetmacromynmax{n1}}
            foreach XX in {1,...,mynmax}
            {
            ([xshift={-y1-2pt+XX*pgfkeysvalueof{/Sid/distance}},yshift=-2pt]path picture bounding box.south west)
            --
            ([xshift=XX*pgfkeysvalueof{/Sid/distance}+2pt,yshift=2pt]path picture bounding box.north west)
            };
            }}}

            begin{document}
            begin{tikzpicture}
            pgfmathsetmacro{mh}{6/sqrt(2)}
            path[rounded corners=8pt,Sid grid] (0.3,-0.3) rectangle (1.2,3.45)
            node[midway,font=footnotesize,fill=white,rounded corners=2pt,inner sep=1.5pt] {Q/C};
            draw[dashed] (0.3,1.1) -- (0.3,0.68) (1.2,1.1) -- (1.2,0.68);
            draw[rounded corners=8pt] (0.3,1.1) |- (0.75,3.45)
            (1.2,1.1) |- (0.75,3.45)
            (0.3,0.68) |- (0.75,-0.3)
            (1.2,0.68)|- (0.75,-0.3);
            end{tikzpicture}
            end{document}


            enter image description here






            share|improve this answer


























            • As opposed to having black lines running through, is it possible for the shading itself to be stripped? I.e. having stripes of blue shaded regions interspersed with white regions?

              – Sid
              9 hours ago











            • @Sid So you want to have white diagonal and blue diagonal areas alternating? (Yes, that is possible.)

              – marmot
              9 hours ago











            • Yes, that's what i'm looking for

              – Sid
              9 hours ago











            • @Sid Done. You can control all aspects since things are stored in pgf keys.

              – marmot
              8 hours ago














            6












            6








            6







            You can use postaction for the pattern. I also cleaned up a bit.



            documentclass[tikz,11pt]{standalone}
            usetikzlibrary{patterns}
            begin{document}
            begin{tikzpicture}
            path[postaction={pattern = north east lines},rounded corners=8pt,
            fill=blue!8!white] (0.3,-0.3) rectangle (1.2,3.45)
            node[midway,font=footnotesize,fill=white,rounded corners=2pt,inner sep=1.5pt] {Q/C};
            draw[dashed] (0.3,1.1) -- (0.3,0.68) (1.2,1.1) -- (1.2,0.68);
            draw[rounded corners=8pt] (0.3,1.1) |- (0.75,3.45)
            (1.2,1.1) |- (0.75,3.45)
            (0.3,0.68) |- (0.75,-0.3)
            (1.2,0.68)|- (0.75,-0.3);
            end{tikzpicture}
            end{document}


            enter image description here



            This is a style Sid grid which allows you to have a fully customizable pattern. It uses a path picture, which takes a few milliseconds more to compile, but is way more flexible, and can be transformed and so on.



            documentclass[tikz,11pt]{standalone}
            usetikzlibrary{patterns,calc}
            pgfkeys{/Sid/.cd,
            grid/.style={draw=black,double=blue!8!white,line width=0.4pt,double distance=2pt},
            distance/.initial=6pt,
            }
            tikzset{Sid grid/.style={/utils/exec=pgfkeys{/Sid/.cd,#1},
            path picture={
            path[/Sid/grid] let p1=($(path picture bounding box.north east)-(path picture bounding
            box.south west)$),n1={int((x1+y1)/pgfkeysvalueof{/Sid/distance})} in
            pgfextra{pgfmathsetmacromynmax{n1}}
            foreach XX in {1,...,mynmax}
            {
            ([xshift={-y1-2pt+XX*pgfkeysvalueof{/Sid/distance}},yshift=-2pt]path picture bounding box.south west)
            --
            ([xshift=XX*pgfkeysvalueof{/Sid/distance}+2pt,yshift=2pt]path picture bounding box.north west)
            };
            }}}

            begin{document}
            begin{tikzpicture}
            pgfmathsetmacro{mh}{6/sqrt(2)}
            path[rounded corners=8pt,Sid grid] (0.3,-0.3) rectangle (1.2,3.45)
            node[midway,font=footnotesize,fill=white,rounded corners=2pt,inner sep=1.5pt] {Q/C};
            draw[dashed] (0.3,1.1) -- (0.3,0.68) (1.2,1.1) -- (1.2,0.68);
            draw[rounded corners=8pt] (0.3,1.1) |- (0.75,3.45)
            (1.2,1.1) |- (0.75,3.45)
            (0.3,0.68) |- (0.75,-0.3)
            (1.2,0.68)|- (0.75,-0.3);
            end{tikzpicture}
            end{document}


            enter image description here






            share|improve this answer















            You can use postaction for the pattern. I also cleaned up a bit.



            documentclass[tikz,11pt]{standalone}
            usetikzlibrary{patterns}
            begin{document}
            begin{tikzpicture}
            path[postaction={pattern = north east lines},rounded corners=8pt,
            fill=blue!8!white] (0.3,-0.3) rectangle (1.2,3.45)
            node[midway,font=footnotesize,fill=white,rounded corners=2pt,inner sep=1.5pt] {Q/C};
            draw[dashed] (0.3,1.1) -- (0.3,0.68) (1.2,1.1) -- (1.2,0.68);
            draw[rounded corners=8pt] (0.3,1.1) |- (0.75,3.45)
            (1.2,1.1) |- (0.75,3.45)
            (0.3,0.68) |- (0.75,-0.3)
            (1.2,0.68)|- (0.75,-0.3);
            end{tikzpicture}
            end{document}


            enter image description here



            This is a style Sid grid which allows you to have a fully customizable pattern. It uses a path picture, which takes a few milliseconds more to compile, but is way more flexible, and can be transformed and so on.



            documentclass[tikz,11pt]{standalone}
            usetikzlibrary{patterns,calc}
            pgfkeys{/Sid/.cd,
            grid/.style={draw=black,double=blue!8!white,line width=0.4pt,double distance=2pt},
            distance/.initial=6pt,
            }
            tikzset{Sid grid/.style={/utils/exec=pgfkeys{/Sid/.cd,#1},
            path picture={
            path[/Sid/grid] let p1=($(path picture bounding box.north east)-(path picture bounding
            box.south west)$),n1={int((x1+y1)/pgfkeysvalueof{/Sid/distance})} in
            pgfextra{pgfmathsetmacromynmax{n1}}
            foreach XX in {1,...,mynmax}
            {
            ([xshift={-y1-2pt+XX*pgfkeysvalueof{/Sid/distance}},yshift=-2pt]path picture bounding box.south west)
            --
            ([xshift=XX*pgfkeysvalueof{/Sid/distance}+2pt,yshift=2pt]path picture bounding box.north west)
            };
            }}}

            begin{document}
            begin{tikzpicture}
            pgfmathsetmacro{mh}{6/sqrt(2)}
            path[rounded corners=8pt,Sid grid] (0.3,-0.3) rectangle (1.2,3.45)
            node[midway,font=footnotesize,fill=white,rounded corners=2pt,inner sep=1.5pt] {Q/C};
            draw[dashed] (0.3,1.1) -- (0.3,0.68) (1.2,1.1) -- (1.2,0.68);
            draw[rounded corners=8pt] (0.3,1.1) |- (0.75,3.45)
            (1.2,1.1) |- (0.75,3.45)
            (0.3,0.68) |- (0.75,-0.3)
            (1.2,0.68)|- (0.75,-0.3);
            end{tikzpicture}
            end{document}


            enter image description here







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 8 hours ago

























            answered 11 hours ago









            marmotmarmot

            142k6 gold badges185 silver badges342 bronze badges




            142k6 gold badges185 silver badges342 bronze badges













            • As opposed to having black lines running through, is it possible for the shading itself to be stripped? I.e. having stripes of blue shaded regions interspersed with white regions?

              – Sid
              9 hours ago











            • @Sid So you want to have white diagonal and blue diagonal areas alternating? (Yes, that is possible.)

              – marmot
              9 hours ago











            • Yes, that's what i'm looking for

              – Sid
              9 hours ago











            • @Sid Done. You can control all aspects since things are stored in pgf keys.

              – marmot
              8 hours ago



















            • As opposed to having black lines running through, is it possible for the shading itself to be stripped? I.e. having stripes of blue shaded regions interspersed with white regions?

              – Sid
              9 hours ago











            • @Sid So you want to have white diagonal and blue diagonal areas alternating? (Yes, that is possible.)

              – marmot
              9 hours ago











            • Yes, that's what i'm looking for

              – Sid
              9 hours ago











            • @Sid Done. You can control all aspects since things are stored in pgf keys.

              – marmot
              8 hours ago

















            As opposed to having black lines running through, is it possible for the shading itself to be stripped? I.e. having stripes of blue shaded regions interspersed with white regions?

            – Sid
            9 hours ago





            As opposed to having black lines running through, is it possible for the shading itself to be stripped? I.e. having stripes of blue shaded regions interspersed with white regions?

            – Sid
            9 hours ago













            @Sid So you want to have white diagonal and blue diagonal areas alternating? (Yes, that is possible.)

            – marmot
            9 hours ago





            @Sid So you want to have white diagonal and blue diagonal areas alternating? (Yes, that is possible.)

            – marmot
            9 hours ago













            Yes, that's what i'm looking for

            – Sid
            9 hours ago





            Yes, that's what i'm looking for

            – Sid
            9 hours ago













            @Sid Done. You can control all aspects since things are stored in pgf keys.

            – marmot
            8 hours ago





            @Sid Done. You can control all aspects since things are stored in pgf keys.

            – marmot
            8 hours ago













            4














            Like this ?



            documentclass[tikz,11pt,border=5mm]{standalone}
            usepackage{pgfplots}
            usetikzlibrary{shapes,fit,chains,positioning,patterns}
            usepackage{xcolor}
            usepackage{graphicx}

            pgfplotsset{compat=newest}

            begin{document}
            begin{tikzpicture}
            fill[blue!8!white] (0.3,1.1) -- (0.3,0.68) -- (1.2,0.68) -- (1.2,1.1);
            filldraw[blue!8!white,pattern = north east lines,rounded corners=8pt, draw=black] (0.3,1.1) -- (0.3,3.45) -- (1.2,3.45) -- (1.2,1.1);
            draw[dashed] (0.3,1.1) -- (0.3,0.68);
            draw[dashed] (1.2,1.1) -- (1.2,0.68);
            filldraw[rounded corners=8pt, blue!8!white,draw=black] (0.3,0.68) -- (0.3,-0.3) -- (1.2,-0.3) -- (1.2,0.68);
            node[draw=none,fill=none] at (0.75,1.575) {footnotesize{{Q/C}}};
            end{tikzpicture}
            end{document}


            screenshot






            share|improve this answer




























              4














              Like this ?



              documentclass[tikz,11pt,border=5mm]{standalone}
              usepackage{pgfplots}
              usetikzlibrary{shapes,fit,chains,positioning,patterns}
              usepackage{xcolor}
              usepackage{graphicx}

              pgfplotsset{compat=newest}

              begin{document}
              begin{tikzpicture}
              fill[blue!8!white] (0.3,1.1) -- (0.3,0.68) -- (1.2,0.68) -- (1.2,1.1);
              filldraw[blue!8!white,pattern = north east lines,rounded corners=8pt, draw=black] (0.3,1.1) -- (0.3,3.45) -- (1.2,3.45) -- (1.2,1.1);
              draw[dashed] (0.3,1.1) -- (0.3,0.68);
              draw[dashed] (1.2,1.1) -- (1.2,0.68);
              filldraw[rounded corners=8pt, blue!8!white,draw=black] (0.3,0.68) -- (0.3,-0.3) -- (1.2,-0.3) -- (1.2,0.68);
              node[draw=none,fill=none] at (0.75,1.575) {footnotesize{{Q/C}}};
              end{tikzpicture}
              end{document}


              screenshot






              share|improve this answer


























                4












                4








                4







                Like this ?



                documentclass[tikz,11pt,border=5mm]{standalone}
                usepackage{pgfplots}
                usetikzlibrary{shapes,fit,chains,positioning,patterns}
                usepackage{xcolor}
                usepackage{graphicx}

                pgfplotsset{compat=newest}

                begin{document}
                begin{tikzpicture}
                fill[blue!8!white] (0.3,1.1) -- (0.3,0.68) -- (1.2,0.68) -- (1.2,1.1);
                filldraw[blue!8!white,pattern = north east lines,rounded corners=8pt, draw=black] (0.3,1.1) -- (0.3,3.45) -- (1.2,3.45) -- (1.2,1.1);
                draw[dashed] (0.3,1.1) -- (0.3,0.68);
                draw[dashed] (1.2,1.1) -- (1.2,0.68);
                filldraw[rounded corners=8pt, blue!8!white,draw=black] (0.3,0.68) -- (0.3,-0.3) -- (1.2,-0.3) -- (1.2,0.68);
                node[draw=none,fill=none] at (0.75,1.575) {footnotesize{{Q/C}}};
                end{tikzpicture}
                end{document}


                screenshot






                share|improve this answer













                Like this ?



                documentclass[tikz,11pt,border=5mm]{standalone}
                usepackage{pgfplots}
                usetikzlibrary{shapes,fit,chains,positioning,patterns}
                usepackage{xcolor}
                usepackage{graphicx}

                pgfplotsset{compat=newest}

                begin{document}
                begin{tikzpicture}
                fill[blue!8!white] (0.3,1.1) -- (0.3,0.68) -- (1.2,0.68) -- (1.2,1.1);
                filldraw[blue!8!white,pattern = north east lines,rounded corners=8pt, draw=black] (0.3,1.1) -- (0.3,3.45) -- (1.2,3.45) -- (1.2,1.1);
                draw[dashed] (0.3,1.1) -- (0.3,0.68);
                draw[dashed] (1.2,1.1) -- (1.2,0.68);
                filldraw[rounded corners=8pt, blue!8!white,draw=black] (0.3,0.68) -- (0.3,-0.3) -- (1.2,-0.3) -- (1.2,0.68);
                node[draw=none,fill=none] at (0.75,1.575) {footnotesize{{Q/C}}};
                end{tikzpicture}
                end{document}


                screenshot







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 11 hours ago









                AndréCAndréC

                11k1 gold badge15 silver badges51 bronze badges




                11k1 gold badge15 silver badges51 bronze badges






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f498738%2fhow-to-have-a-filled-pattern%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

                    The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

                    Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...