Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [polygon]

The tag has no usage guidance.

0
votes
1answer
49 views

How to draw irregular hendecagon in asymptote

I am sorry if this is a duplicate question but how would I draw an irregular hendecagon using asymptote? I am new to it and I know how to draw a regular one but not an irregular one. [asy] size(9cm); ...
3
votes
1answer
244 views

Problem with fill color

I use the following command to create regular polygons. The 5th argument is there to insert options for styling the polygons. Though the line width is 0.3mm as I set it, it looks like the fill=red ...
0
votes
1answer
55 views

Coloring edges of a polygon differently

I would like to draw a regular 21 polygon, where the edges are labelled and have arrows in the middle using different colors. This is what I have done so far using this code \documentclass[...
3
votes
2answers
276 views

Arrows on edges of polygon

I would like to draw a regual 21 polygon, where the edges are labelled and have arrows in the middle. But I don't know how to get the arrows. This is what I have done so far \documentclass[border=5mm,...
5
votes
3answers
114 views

Colorize sides regular polygon

To illustrate what edge-coloring is, I'd like to colorize a regular polygon. I want to generate the shape using TikZ, then colorize the sides (edges) of the polygon separately, for instance by doing ...
3
votes
2answers
70 views

Position nodes relative to regular polygon anchors

I have a regular polygon, and I'd like to position nodes for instance above the first corner, or next to the nth side. This is my sample: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{...
2
votes
2answers
75 views

Efficient way of performing geometrical operations

I have to draw a series of regular (equiangular, actually) polygons, each of which is constructed by trisecting the sides of the previous polygon and subsequently cutting off its corners. Right now I'...
1
vote
1answer
358 views

Filling a polygon defined by `\node` command

I draw a polygon using \node in TikZ, and I want to fill the polygon. When I use this method, it obviously fails because I do not use \coordinate to create the polygon. Is there a way to fill a ...
1
vote
1answer
67 views

Translate some points of a polygon

I'm with a problem on this figure \documentclass{standalone} \usepackage{tikz, tkz-euclide} \usetkzobj{all} \begin{document} \begin{tikzpicture}[scale=4] \tkzDefPoints{0/0/D, .2/.5/P1, .7/....
3
votes
1answer
142 views

What package(s) and commands do I need to create shapes as thought of by Jacob Barnett in LaTeX?

I watched both the "60 minutes" talk and the "numberphile" youtube video discussing how Jacob Barnett sees numbers as shapes. In both of them they mention that Barnett sees numbers as fractal-like ...
1
vote
0answers
178 views

Drawing a polygon and using a third dimension to define the color

I would like to draw a polygon, with a non-regular shape, providing coordinates x and y. I know how to do it, e.g., by using the answer provided here. However, I would like to use the third dimension, ...
3
votes
1answer
63 views

Manipulating a polygon after few operations?

I've two polygons. The polygon have undergone some transformation like rotation and shifting. Suppose after the transformation, say as an example, how do I draw a perpendicular bisector from one of ...
2
votes
2answers
425 views

drawing a line at the intersection of polygons?

I have two intersecting polygon. Since I am filling and drawing the second polygon on top of it, the first polygon becomes hidden(at the overlapping areas). I want to show the the overlap of first ...
5
votes
1answer
154 views

Polygons one beside another

I'm trying to do two regular polygons side by side, but the second one always gets bigger then what I want. Could anyone help me? This requires tkz-obj-polygons.tex, which a beta-version of code for ...
2
votes
1answer
505 views

How do I label vertices of polygons?

I am new to Tzik and only have basic knowledge, but I want to label the vertices of my polygon with non numeric symbols? but I only got \begin{figure}[h] \centering \begin{tikzpicture}[rotate=...
15
votes
1answer
1k views

How to draw a polygon with different line color and rounded corners?

I want to draw a polygon with different line color and rounded corners, but the corners of polygon are not rounded! \documentclass[12pt]{report} \usepackage{tikz} \begin{document} \begin{tikzpicture}[...
1
vote
2answers
238 views

intersection of functions or polygon tikz?

Hello I am creating a plot using tikz I have created 3 functions on a plot and took the area above each of them using drawge. My question is how I can fill the area above intersection of two functions ...
4
votes
6answers
3k views

How to draw a path to form a regular pentagon?

I already have a code that draws a regular hexagon the following way \begin{tikzpicture}[every node/.style={draw,shape=circle,fill=blue}] \path (0,0) node (p0) {} (-1.5,-1) node (p1) {} (-1.5,-2.5) ...
5
votes
4answers
754 views

Filling a percentage of a regular polygon

I want to fill a polygon with a color. First of all the n-polygon should be divided in n equal parts. I've found a question similar to this: Drawing polygons And the solution of @Yori was almost wat ...
15
votes
4answers
962 views

polygons side by side

Could help me please, I tried to draw many polygons side by side without success! This is what I want My MWE: \documentclass{article} \usepackage{xcolor} \usepackage{pgf,tikz} \usetikzlibrary{...