Lines in Tikz
Line is one the basic geometric shape and can easily be created in Tikz
\draw [parameter1, parameter2, parameter3,...] (a,b) -- (c,d) (K_unit)
where:
- \draw --- used to draw the shape;
- [parameter1, parameter2, parameter3,...] --- parameters are the options separated by commas used to enhance the graphics of the shape
- (a,b) and (c,d) --- coordinates of the line, (a,b) is the initial point and (c,d) is the final point
- K_unit ---- K is some positive integer and unit is the measurement unit like, 5mm, 1in, 4cm, 6pt etc.
;
Line in Tikz | Code in |
Result |
---|---|---|
Solid Line; Black Color(default) |
\begin{tikzpicture}
|
|
Solid Line; Violet Color |
\begin{tikzpicture}
|
|
Dashed Line; Green Color |
\begin{tikzpicture}
|
|
Thick Line; Purple Color |
\begin{tikzpicture}
|
|
Ultra Thick Line; Blue Color with 40% opacity |
\begin{tikzpicture}
|
|
Dotted Line; Blue Color |
\begin{tikzpicture}
|
|
Vertical Line; Yellow Color |
\begin{tikzpicture}
|
|
Rotated Line at initial point; red Color |
\begin{tikzpicture}
|
|
Parallel Lines; Blue and Green Color |
\begin{tikzpicture}
|
|
Perpendicular Lines; Red and Yellow Color |
\begin{tikzpicture}
|
|
Related Questions
- Graphics in LaTeX using Tikz
- How to draw line in tikz
- How to draw colored line in tikz
- How to draw dashed line in tikz
- How to draw dotted line in tikz
- How to draw gradient color line in tikz
- How to draw different color line in tikz
- How to draw thick line in tikz
- How to draw ultra thick line in tikz
- How do you make a line in TikZ?
- How do you draw TikZ?
- tikz draw line radius
- tikz manual
- tikz colors
- How do you insert a line in latex?
- How do you make a small line in latex?
- Which command is used to draw a solid line?
- latex black line
- black filled line latex
- latex line number
- tikz line no line
- how to color line in tikz latex
0 Comments