Need help to ameliorate this “graphics on tikz”
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:

I want to delete the "-" which appear and added 1 in each edge
how to do ?
tikz-pgf
add a comment |
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:

I want to delete the "-" which appear and added 1 in each edge
how to do ?
tikz-pgf
Unfortunatly your MWE does not compile.
– samcarter
8 mins ago
@samcarter replacedocumentclasse
– Hafid Boukhoulda
4 mins ago
add a comment |
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:

I want to delete the "-" which appear and added 1 in each edge
how to do ?
tikz-pgf
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:

I want to delete the "-" which appear and added 1 in each edge
how to do ?
tikz-pgf
tikz-pgf
asked 11 mins ago
Vrouvrou
24328
24328
Unfortunatly your MWE does not compile.
– samcarter
8 mins ago
@samcarter replacedocumentclasse
– Hafid Boukhoulda
4 mins ago
add a comment |
Unfortunatly your MWE does not compile.
– samcarter
8 mins ago
@samcarter replacedocumentclasse
– 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
add a comment |
2 Answers
2
active
oldest
votes
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}
add a comment |
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}

add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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}
add a comment |
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}
add a comment |
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}
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}
answered 3 mins ago
samcarter
85.1k794273
85.1k794273
add a comment |
add a comment |
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}

add a comment |
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}

add a comment |
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}

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}

answered just now
Hafid Boukhoulda
1,2721515
1,2721515
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Unfortunatly your MWE does not compile.
– samcarter
8 mins ago
@samcarter replace
documentclasse– Hafid Boukhoulda
4 mins ago