Need help to ameliorate this “graphics on tikz”












0














documentclasse[12pt]{book}
usepackage{tikz}
usetikzlibrary{patterns,shapes.geometric}
begin{document}
begin{tikzpicture}
draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
foreach x in {-3,-2-1,1,2,3}
draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
foreach t in {-3,-2,-1,1,2,3}
draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
draw[pattern=north west lines] (-1,1)--(1,1)--(1,-1)--(-1,-1)--(-1,1);
end{tikzpicture}
begin{tikzpicture}
draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
foreach x in {-3,-2-1,1,2,3}
draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
foreach t in {-3,-2,-1,1,2,3}
draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
draw[pattern=north west lines] (0,0) circle (1 cm);
end{tikzpicture}
begin{tikzpicture}
draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
foreach x in {-3,-2-1,1,2,3}
draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
foreach t in {-3,-2,-1,1,2,3}
draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
draw[pattern=north west lines] (0,1)--(1,0)--(0,-1)--(-1,0)--(0,1);
end{tikzpicture}
end{document}


the result is this:



enter image description here



I want to delete the "-" which appear and added 1 in each edge



how to do ?










share|improve this question






















  • Unfortunatly your MWE does not compile.
    – samcarter
    8 mins ago










  • @samcarter replace documentclasse
    – Hafid Boukhoulda
    4 mins ago
















0














documentclasse[12pt]{book}
usepackage{tikz}
usetikzlibrary{patterns,shapes.geometric}
begin{document}
begin{tikzpicture}
draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
foreach x in {-3,-2-1,1,2,3}
draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
foreach t in {-3,-2,-1,1,2,3}
draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
draw[pattern=north west lines] (-1,1)--(1,1)--(1,-1)--(-1,-1)--(-1,1);
end{tikzpicture}
begin{tikzpicture}
draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
foreach x in {-3,-2-1,1,2,3}
draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
foreach t in {-3,-2,-1,1,2,3}
draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
draw[pattern=north west lines] (0,0) circle (1 cm);
end{tikzpicture}
begin{tikzpicture}
draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
foreach x in {-3,-2-1,1,2,3}
draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
foreach t in {-3,-2,-1,1,2,3}
draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
draw[pattern=north west lines] (0,1)--(1,0)--(0,-1)--(-1,0)--(0,1);
end{tikzpicture}
end{document}


the result is this:



enter image description here



I want to delete the "-" which appear and added 1 in each edge



how to do ?










share|improve this question






















  • Unfortunatly your MWE does not compile.
    – samcarter
    8 mins ago










  • @samcarter replace documentclasse
    – Hafid Boukhoulda
    4 mins ago














0












0








0







documentclasse[12pt]{book}
usepackage{tikz}
usetikzlibrary{patterns,shapes.geometric}
begin{document}
begin{tikzpicture}
draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
foreach x in {-3,-2-1,1,2,3}
draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
foreach t in {-3,-2,-1,1,2,3}
draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
draw[pattern=north west lines] (-1,1)--(1,1)--(1,-1)--(-1,-1)--(-1,1);
end{tikzpicture}
begin{tikzpicture}
draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
foreach x in {-3,-2-1,1,2,3}
draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
foreach t in {-3,-2,-1,1,2,3}
draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
draw[pattern=north west lines] (0,0) circle (1 cm);
end{tikzpicture}
begin{tikzpicture}
draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
foreach x in {-3,-2-1,1,2,3}
draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
foreach t in {-3,-2,-1,1,2,3}
draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
draw[pattern=north west lines] (0,1)--(1,0)--(0,-1)--(-1,0)--(0,1);
end{tikzpicture}
end{document}


the result is this:



enter image description here



I want to delete the "-" which appear and added 1 in each edge



how to do ?










share|improve this question













documentclasse[12pt]{book}
usepackage{tikz}
usetikzlibrary{patterns,shapes.geometric}
begin{document}
begin{tikzpicture}
draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
foreach x in {-3,-2-1,1,2,3}
draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
foreach t in {-3,-2,-1,1,2,3}
draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
draw[pattern=north west lines] (-1,1)--(1,1)--(1,-1)--(-1,-1)--(-1,1);
end{tikzpicture}
begin{tikzpicture}
draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
foreach x in {-3,-2-1,1,2,3}
draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
foreach t in {-3,-2,-1,1,2,3}
draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
draw[pattern=north west lines] (0,0) circle (1 cm);
end{tikzpicture}
begin{tikzpicture}
draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
foreach x in {-3,-2-1,1,2,3}
draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
foreach t in {-3,-2,-1,1,2,3}
draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
draw[pattern=north west lines] (0,1)--(1,0)--(0,-1)--(-1,0)--(0,1);
end{tikzpicture}
end{document}


the result is this:



enter image description here



I want to delete the "-" which appear and added 1 in each edge



how to do ?







tikz-pgf






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 11 mins ago









Vrouvrou

24328




24328












  • Unfortunatly your MWE does not compile.
    – samcarter
    8 mins ago










  • @samcarter replace documentclasse
    – Hafid Boukhoulda
    4 mins ago


















  • Unfortunatly your MWE does not compile.
    – samcarter
    8 mins ago










  • @samcarter replace documentclasse
    – Hafid Boukhoulda
    4 mins ago
















Unfortunatly your MWE does not compile.
– samcarter
8 mins ago




Unfortunatly your MWE does not compile.
– samcarter
8 mins ago












@samcarter replace documentclasse
– Hafid Boukhoulda
4 mins ago




@samcarter replace documentclasse
– Hafid Boukhoulda
4 mins ago










2 Answers
2






active

oldest

votes


















0














The little lines are drawn by the for loop in your code. If you don't want them outside of the axis, don't let the loop run from -3 to 3, but only from -2 to 2. Furthermore there are missing ,, that is why some of the lines are missing



documentclass[12pt]{book}
usepackage{tikz}
usetikzlibrary{patterns,shapes.geometric}
begin{document}
begin{tikzpicture}
draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
foreach x in {-2,-1,1,2}
draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
foreach t in {-2,-1,1,2}
draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
draw[pattern=north west lines] (-1,1)--(1,1)--(1,-1)--(-1,-1)--(-1,1);
end{tikzpicture}
end{document}




share





























    0














    Here is how to suppress the -. but I don't understand where do you want to place the 1?



    documentclass[12pt]{book}
    usepackage{tikz}
    usetikzlibrary{patterns,shapes.geometric}
    begin{document}
    begin{tikzpicture}
    draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
    %foreach x in {-3,-2-1,1,2,3}
    %raw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
    draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
    %foreach t in {-3,-2,-1,1,2,3}
    %draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
    draw[pattern=north west lines] (-1,1)--(1,1)--(1,-1)--(-1,-1)--(-1,1);
    end{tikzpicture}
    begin{tikzpicture}
    draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
    %foreach x in {-3,-2-1,1,2,3}
    %draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
    draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
    %foreach t in {-3,-2,-1,1,2,3}
    %draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
    draw[pattern=north west lines] (0,0) circle (1 cm);
    end{tikzpicture}

    begin{tikzpicture}
    draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
    %foreach x in {-3,-2-1,1,2,3}
    %draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
    draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
    %foreach t in {-3,-2,-1,1,2,3}
    %draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
    draw[pattern=north west lines] (0,1)--(1,0)--(0,-1)--(-1,0)--(0,1);
    end{tikzpicture}
    end{document}


    enter image description here





    share





















      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%2f467218%2fneed-help-to-ameliorate-this-graphics-on-tikz%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









      0














      The little lines are drawn by the for loop in your code. If you don't want them outside of the axis, don't let the loop run from -3 to 3, but only from -2 to 2. Furthermore there are missing ,, that is why some of the lines are missing



      documentclass[12pt]{book}
      usepackage{tikz}
      usetikzlibrary{patterns,shapes.geometric}
      begin{document}
      begin{tikzpicture}
      draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
      foreach x in {-2,-1,1,2}
      draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
      draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
      foreach t in {-2,-1,1,2}
      draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
      draw[pattern=north west lines] (-1,1)--(1,1)--(1,-1)--(-1,-1)--(-1,1);
      end{tikzpicture}
      end{document}




      share


























        0














        The little lines are drawn by the for loop in your code. If you don't want them outside of the axis, don't let the loop run from -3 to 3, but only from -2 to 2. Furthermore there are missing ,, that is why some of the lines are missing



        documentclass[12pt]{book}
        usepackage{tikz}
        usetikzlibrary{patterns,shapes.geometric}
        begin{document}
        begin{tikzpicture}
        draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
        foreach x in {-2,-1,1,2}
        draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
        draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
        foreach t in {-2,-1,1,2}
        draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
        draw[pattern=north west lines] (-1,1)--(1,1)--(1,-1)--(-1,-1)--(-1,1);
        end{tikzpicture}
        end{document}




        share
























          0












          0








          0






          The little lines are drawn by the for loop in your code. If you don't want them outside of the axis, don't let the loop run from -3 to 3, but only from -2 to 2. Furthermore there are missing ,, that is why some of the lines are missing



          documentclass[12pt]{book}
          usepackage{tikz}
          usetikzlibrary{patterns,shapes.geometric}
          begin{document}
          begin{tikzpicture}
          draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
          foreach x in {-2,-1,1,2}
          draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
          draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
          foreach t in {-2,-1,1,2}
          draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
          draw[pattern=north west lines] (-1,1)--(1,1)--(1,-1)--(-1,-1)--(-1,1);
          end{tikzpicture}
          end{document}




          share












          The little lines are drawn by the for loop in your code. If you don't want them outside of the axis, don't let the loop run from -3 to 3, but only from -2 to 2. Furthermore there are missing ,, that is why some of the lines are missing



          documentclass[12pt]{book}
          usepackage{tikz}
          usetikzlibrary{patterns,shapes.geometric}
          begin{document}
          begin{tikzpicture}
          draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
          foreach x in {-2,-1,1,2}
          draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
          draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
          foreach t in {-2,-1,1,2}
          draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
          draw[pattern=north west lines] (-1,1)--(1,1)--(1,-1)--(-1,-1)--(-1,1);
          end{tikzpicture}
          end{document}





          share











          share


          share










          answered 3 mins ago









          samcarter

          85.1k794273




          85.1k794273























              0














              Here is how to suppress the -. but I don't understand where do you want to place the 1?



              documentclass[12pt]{book}
              usepackage{tikz}
              usetikzlibrary{patterns,shapes.geometric}
              begin{document}
              begin{tikzpicture}
              draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
              %foreach x in {-3,-2-1,1,2,3}
              %raw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
              draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
              %foreach t in {-3,-2,-1,1,2,3}
              %draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
              draw[pattern=north west lines] (-1,1)--(1,1)--(1,-1)--(-1,-1)--(-1,1);
              end{tikzpicture}
              begin{tikzpicture}
              draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
              %foreach x in {-3,-2-1,1,2,3}
              %draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
              draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
              %foreach t in {-3,-2,-1,1,2,3}
              %draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
              draw[pattern=north west lines] (0,0) circle (1 cm);
              end{tikzpicture}

              begin{tikzpicture}
              draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
              %foreach x in {-3,-2-1,1,2,3}
              %draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
              draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
              %foreach t in {-3,-2,-1,1,2,3}
              %draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
              draw[pattern=north west lines] (0,1)--(1,0)--(0,-1)--(-1,0)--(0,1);
              end{tikzpicture}
              end{document}


              enter image description here





              share


























                0














                Here is how to suppress the -. but I don't understand where do you want to place the 1?



                documentclass[12pt]{book}
                usepackage{tikz}
                usetikzlibrary{patterns,shapes.geometric}
                begin{document}
                begin{tikzpicture}
                draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
                %foreach x in {-3,-2-1,1,2,3}
                %raw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
                draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
                %foreach t in {-3,-2,-1,1,2,3}
                %draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
                draw[pattern=north west lines] (-1,1)--(1,1)--(1,-1)--(-1,-1)--(-1,1);
                end{tikzpicture}
                begin{tikzpicture}
                draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
                %foreach x in {-3,-2-1,1,2,3}
                %draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
                draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
                %foreach t in {-3,-2,-1,1,2,3}
                %draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
                draw[pattern=north west lines] (0,0) circle (1 cm);
                end{tikzpicture}

                begin{tikzpicture}
                draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
                %foreach x in {-3,-2-1,1,2,3}
                %draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
                draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
                %foreach t in {-3,-2,-1,1,2,3}
                %draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
                draw[pattern=north west lines] (0,1)--(1,0)--(0,-1)--(-1,0)--(0,1);
                end{tikzpicture}
                end{document}


                enter image description here





                share
























                  0












                  0








                  0






                  Here is how to suppress the -. but I don't understand where do you want to place the 1?



                  documentclass[12pt]{book}
                  usepackage{tikz}
                  usetikzlibrary{patterns,shapes.geometric}
                  begin{document}
                  begin{tikzpicture}
                  draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
                  %foreach x in {-3,-2-1,1,2,3}
                  %raw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
                  draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
                  %foreach t in {-3,-2,-1,1,2,3}
                  %draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
                  draw[pattern=north west lines] (-1,1)--(1,1)--(1,-1)--(-1,-1)--(-1,1);
                  end{tikzpicture}
                  begin{tikzpicture}
                  draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
                  %foreach x in {-3,-2-1,1,2,3}
                  %draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
                  draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
                  %foreach t in {-3,-2,-1,1,2,3}
                  %draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
                  draw[pattern=north west lines] (0,0) circle (1 cm);
                  end{tikzpicture}

                  begin{tikzpicture}
                  draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
                  %foreach x in {-3,-2-1,1,2,3}
                  %draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
                  draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
                  %foreach t in {-3,-2,-1,1,2,3}
                  %draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
                  draw[pattern=north west lines] (0,1)--(1,0)--(0,-1)--(-1,0)--(0,1);
                  end{tikzpicture}
                  end{document}


                  enter image description here





                  share












                  Here is how to suppress the -. but I don't understand where do you want to place the 1?



                  documentclass[12pt]{book}
                  usepackage{tikz}
                  usetikzlibrary{patterns,shapes.geometric}
                  begin{document}
                  begin{tikzpicture}
                  draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
                  %foreach x in {-3,-2-1,1,2,3}
                  %raw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
                  draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
                  %foreach t in {-3,-2,-1,1,2,3}
                  %draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
                  draw[pattern=north west lines] (-1,1)--(1,1)--(1,-1)--(-1,-1)--(-1,1);
                  end{tikzpicture}
                  begin{tikzpicture}
                  draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
                  %foreach x in {-3,-2-1,1,2,3}
                  %draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
                  draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
                  %foreach t in {-3,-2,-1,1,2,3}
                  %draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
                  draw[pattern=north west lines] (0,0) circle (1 cm);
                  end{tikzpicture}

                  begin{tikzpicture}
                  draw[line width=.8pt,->] (-2,0.) -- node[pos=1,right]{}(2,0);
                  %foreach x in {-3,-2-1,1,2,3}
                  %draw[shift={(x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) ;
                  draw[line width=.8pt,->] (0.,-2) -- node[pos=1,above]{}(0,2);
                  %foreach t in {-3,-2,-1,1,2,3}
                  %draw[shift={(0,t)},color=black] (2pt,0pt) -- (-2pt,0pt) ;
                  draw[pattern=north west lines] (0,1)--(1,0)--(0,-1)--(-1,0)--(0,1);
                  end{tikzpicture}
                  end{document}


                  enter image description here






                  share











                  share


                  share










                  answered just now









                  Hafid Boukhoulda

                  1,2721515




                  1,2721515






























                      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.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • 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%2f467218%2fneed-help-to-ameliorate-this-graphics-on-tikz%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

                      Entries order in /etc/network/interfaces

                      新発田市

                      Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)