Circular sector












0















I'm trying to draw a circular sector. The code:



documentclass[tikz,border=5pt]{standalone}

begin{document}
begin{tikzpicture}[thick,font=sffamilyLarge]
draw (0,0) circle (4cm);
filldraw circle (1pt) node[below] {$O$};

%secteur
draw[fill=blue!30, opacity = 1] (0,0) -- (220:4) arc(220:120:4) -- cycle;

%angle
draw[<-, color = blue] (220:1.2) arc(220:120:1.2) node[midway,left]{$alpha$};

%L
draw[latex-latex, color = red] (220:4) arc(220:120:4) node[midway,left]{L};

%rayon
draw[very thick,-latex] (0,0) -- (20:4) node[midway,above]{1};
end{tikzpicture}
end{document}


somewhat works but needs a few tweaks that I've been unable to do, namely remove the dark color that overlaps with the red color on the arc named L, make the center O just a little below and add a pointing arrow to the red arc.



Thanks for the help!



edit:



Thanks!



How can I add a pointing arrow named B like that:



enter image description here



I've tried draw (-1.2,2.2) -- (-0.23,1.1) node at (-1.37,2.37) {$B$}; but guesstimating doesn't work










share|improve this question









New contributor




medihde is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • This code produces a circular sector. What do you want to change or add?

    – marmot
    6 hours ago











  • I edited my post

    – medihde
    6 hours ago
















0















I'm trying to draw a circular sector. The code:



documentclass[tikz,border=5pt]{standalone}

begin{document}
begin{tikzpicture}[thick,font=sffamilyLarge]
draw (0,0) circle (4cm);
filldraw circle (1pt) node[below] {$O$};

%secteur
draw[fill=blue!30, opacity = 1] (0,0) -- (220:4) arc(220:120:4) -- cycle;

%angle
draw[<-, color = blue] (220:1.2) arc(220:120:1.2) node[midway,left]{$alpha$};

%L
draw[latex-latex, color = red] (220:4) arc(220:120:4) node[midway,left]{L};

%rayon
draw[very thick,-latex] (0,0) -- (20:4) node[midway,above]{1};
end{tikzpicture}
end{document}


somewhat works but needs a few tweaks that I've been unable to do, namely remove the dark color that overlaps with the red color on the arc named L, make the center O just a little below and add a pointing arrow to the red arc.



Thanks for the help!



edit:



Thanks!



How can I add a pointing arrow named B like that:



enter image description here



I've tried draw (-1.2,2.2) -- (-0.23,1.1) node at (-1.37,2.37) {$B$}; but guesstimating doesn't work










share|improve this question









New contributor




medihde is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • This code produces a circular sector. What do you want to change or add?

    – marmot
    6 hours ago











  • I edited my post

    – medihde
    6 hours ago














0












0








0








I'm trying to draw a circular sector. The code:



documentclass[tikz,border=5pt]{standalone}

begin{document}
begin{tikzpicture}[thick,font=sffamilyLarge]
draw (0,0) circle (4cm);
filldraw circle (1pt) node[below] {$O$};

%secteur
draw[fill=blue!30, opacity = 1] (0,0) -- (220:4) arc(220:120:4) -- cycle;

%angle
draw[<-, color = blue] (220:1.2) arc(220:120:1.2) node[midway,left]{$alpha$};

%L
draw[latex-latex, color = red] (220:4) arc(220:120:4) node[midway,left]{L};

%rayon
draw[very thick,-latex] (0,0) -- (20:4) node[midway,above]{1};
end{tikzpicture}
end{document}


somewhat works but needs a few tweaks that I've been unable to do, namely remove the dark color that overlaps with the red color on the arc named L, make the center O just a little below and add a pointing arrow to the red arc.



Thanks for the help!



edit:



Thanks!



How can I add a pointing arrow named B like that:



enter image description here



I've tried draw (-1.2,2.2) -- (-0.23,1.1) node at (-1.37,2.37) {$B$}; but guesstimating doesn't work










share|improve this question









New contributor




medihde is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I'm trying to draw a circular sector. The code:



documentclass[tikz,border=5pt]{standalone}

begin{document}
begin{tikzpicture}[thick,font=sffamilyLarge]
draw (0,0) circle (4cm);
filldraw circle (1pt) node[below] {$O$};

%secteur
draw[fill=blue!30, opacity = 1] (0,0) -- (220:4) arc(220:120:4) -- cycle;

%angle
draw[<-, color = blue] (220:1.2) arc(220:120:1.2) node[midway,left]{$alpha$};

%L
draw[latex-latex, color = red] (220:4) arc(220:120:4) node[midway,left]{L};

%rayon
draw[very thick,-latex] (0,0) -- (20:4) node[midway,above]{1};
end{tikzpicture}
end{document}


somewhat works but needs a few tweaks that I've been unable to do, namely remove the dark color that overlaps with the red color on the arc named L, make the center O just a little below and add a pointing arrow to the red arc.



Thanks for the help!



edit:



Thanks!



How can I add a pointing arrow named B like that:



enter image description here



I've tried draw (-1.2,2.2) -- (-0.23,1.1) node at (-1.37,2.37) {$B$}; but guesstimating doesn't work







tikz-pgf






share|improve this question









New contributor




medihde is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




medihde is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 6 hours ago







medihde













New contributor




medihde is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 6 hours ago









medihdemedihde

373




373




New contributor




medihde is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





medihde is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






medihde is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • This code produces a circular sector. What do you want to change or add?

    – marmot
    6 hours ago











  • I edited my post

    – medihde
    6 hours ago



















  • This code produces a circular sector. What do you want to change or add?

    – marmot
    6 hours ago











  • I edited my post

    – medihde
    6 hours ago

















This code produces a circular sector. What do you want to change or add?

– marmot
6 hours ago





This code produces a circular sector. What do you want to change or add?

– marmot
6 hours ago













I edited my post

– medihde
6 hours ago





I edited my post

– medihde
6 hours ago










1 Answer
1






active

oldest

votes


















3















  • I draw an arc instead of a circle at first to avoid overlapping, which leads to the "dark color".

  • I use path instead of draw so that the outline of the arc is not drawn.

  • I use the command you used to draw the arrow from O to the red arc.

  • I use below=1ex to make O lower a bit.


Code:



documentclass[tikz,border=5pt]{standalone}

begin{document}
begin{tikzpicture}[thick,font=sffamilyLarge]
%draw (0,0) circle (4cm);
draw (120:4) arc (120:-140:4);
path[fill=blue!30, opacity = 1] (0,0) -- (220:4) arc(220:120:4) -- cycle;
draw (220:4)--(0,0)--(120:4);
filldraw circle (1pt) node[below=1ex] {$O$};
draw[<-, color = blue] (220:1.2) arc(220:120:1.2) node[midway,left]{$alpha$};
draw[latex-latex, color = red] (220:4) arc(220:120:4) node[midway,left]{L};
draw[very thick,-latex] (0,0) -- (20:4) node[midway,above]{1};
draw[very thick,-latex] (0,0) -- (195:4) node[midway,above]{1};
draw[latex-] (160:4) --++(-2,2) node[pos=1.1] {$B$};
end{tikzpicture}
end{document}


enter image description here






share|improve this answer


























  • What do you mean by pointing arrow?

    – JouleV
    6 hours ago












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
});


}
});






medihde is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483810%2fcircular-sector%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









3















  • I draw an arc instead of a circle at first to avoid overlapping, which leads to the "dark color".

  • I use path instead of draw so that the outline of the arc is not drawn.

  • I use the command you used to draw the arrow from O to the red arc.

  • I use below=1ex to make O lower a bit.


Code:



documentclass[tikz,border=5pt]{standalone}

begin{document}
begin{tikzpicture}[thick,font=sffamilyLarge]
%draw (0,0) circle (4cm);
draw (120:4) arc (120:-140:4);
path[fill=blue!30, opacity = 1] (0,0) -- (220:4) arc(220:120:4) -- cycle;
draw (220:4)--(0,0)--(120:4);
filldraw circle (1pt) node[below=1ex] {$O$};
draw[<-, color = blue] (220:1.2) arc(220:120:1.2) node[midway,left]{$alpha$};
draw[latex-latex, color = red] (220:4) arc(220:120:4) node[midway,left]{L};
draw[very thick,-latex] (0,0) -- (20:4) node[midway,above]{1};
draw[very thick,-latex] (0,0) -- (195:4) node[midway,above]{1};
draw[latex-] (160:4) --++(-2,2) node[pos=1.1] {$B$};
end{tikzpicture}
end{document}


enter image description here






share|improve this answer


























  • What do you mean by pointing arrow?

    – JouleV
    6 hours ago
















3















  • I draw an arc instead of a circle at first to avoid overlapping, which leads to the "dark color".

  • I use path instead of draw so that the outline of the arc is not drawn.

  • I use the command you used to draw the arrow from O to the red arc.

  • I use below=1ex to make O lower a bit.


Code:



documentclass[tikz,border=5pt]{standalone}

begin{document}
begin{tikzpicture}[thick,font=sffamilyLarge]
%draw (0,0) circle (4cm);
draw (120:4) arc (120:-140:4);
path[fill=blue!30, opacity = 1] (0,0) -- (220:4) arc(220:120:4) -- cycle;
draw (220:4)--(0,0)--(120:4);
filldraw circle (1pt) node[below=1ex] {$O$};
draw[<-, color = blue] (220:1.2) arc(220:120:1.2) node[midway,left]{$alpha$};
draw[latex-latex, color = red] (220:4) arc(220:120:4) node[midway,left]{L};
draw[very thick,-latex] (0,0) -- (20:4) node[midway,above]{1};
draw[very thick,-latex] (0,0) -- (195:4) node[midway,above]{1};
draw[latex-] (160:4) --++(-2,2) node[pos=1.1] {$B$};
end{tikzpicture}
end{document}


enter image description here






share|improve this answer


























  • What do you mean by pointing arrow?

    – JouleV
    6 hours ago














3












3








3








  • I draw an arc instead of a circle at first to avoid overlapping, which leads to the "dark color".

  • I use path instead of draw so that the outline of the arc is not drawn.

  • I use the command you used to draw the arrow from O to the red arc.

  • I use below=1ex to make O lower a bit.


Code:



documentclass[tikz,border=5pt]{standalone}

begin{document}
begin{tikzpicture}[thick,font=sffamilyLarge]
%draw (0,0) circle (4cm);
draw (120:4) arc (120:-140:4);
path[fill=blue!30, opacity = 1] (0,0) -- (220:4) arc(220:120:4) -- cycle;
draw (220:4)--(0,0)--(120:4);
filldraw circle (1pt) node[below=1ex] {$O$};
draw[<-, color = blue] (220:1.2) arc(220:120:1.2) node[midway,left]{$alpha$};
draw[latex-latex, color = red] (220:4) arc(220:120:4) node[midway,left]{L};
draw[very thick,-latex] (0,0) -- (20:4) node[midway,above]{1};
draw[very thick,-latex] (0,0) -- (195:4) node[midway,above]{1};
draw[latex-] (160:4) --++(-2,2) node[pos=1.1] {$B$};
end{tikzpicture}
end{document}


enter image description here






share|improve this answer
















  • I draw an arc instead of a circle at first to avoid overlapping, which leads to the "dark color".

  • I use path instead of draw so that the outline of the arc is not drawn.

  • I use the command you used to draw the arrow from O to the red arc.

  • I use below=1ex to make O lower a bit.


Code:



documentclass[tikz,border=5pt]{standalone}

begin{document}
begin{tikzpicture}[thick,font=sffamilyLarge]
%draw (0,0) circle (4cm);
draw (120:4) arc (120:-140:4);
path[fill=blue!30, opacity = 1] (0,0) -- (220:4) arc(220:120:4) -- cycle;
draw (220:4)--(0,0)--(120:4);
filldraw circle (1pt) node[below=1ex] {$O$};
draw[<-, color = blue] (220:1.2) arc(220:120:1.2) node[midway,left]{$alpha$};
draw[latex-latex, color = red] (220:4) arc(220:120:4) node[midway,left]{L};
draw[very thick,-latex] (0,0) -- (20:4) node[midway,above]{1};
draw[very thick,-latex] (0,0) -- (195:4) node[midway,above]{1};
draw[latex-] (160:4) --++(-2,2) node[pos=1.1] {$B$};
end{tikzpicture}
end{document}


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited 6 hours ago

























answered 6 hours ago









JouleVJouleV

11.7k22561




11.7k22561













  • What do you mean by pointing arrow?

    – JouleV
    6 hours ago



















  • What do you mean by pointing arrow?

    – JouleV
    6 hours ago

















What do you mean by pointing arrow?

– JouleV
6 hours ago





What do you mean by pointing arrow?

– JouleV
6 hours ago










medihde is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















medihde is a new contributor. Be nice, and check out our Code of Conduct.













medihde is a new contributor. Be nice, and check out our Code of Conduct.












medihde is a new contributor. Be nice, and check out our Code of Conduct.
















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%2f483810%2fcircular-sector%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

Lallio

Futebolista

Jornalista