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 [draw]

{draw} is for questions regarding drawings in general. If the drawing is to be done from within LaTeX, include the relevant tags for the package to be used, e.g., {tikz-pgf}, {pstricks}.

2
votes
2answers
35 views

Using new command for a tikz draw

I created a new command for a drawing I want to use as a subindex: Here's what I did: \newcommand{\test}{\begin{tikzpicture} \draw (0,0)--(1,1); \draw (0,1) -- (0.5-0.05,0.5+0.05); \draw (1,0) -- (0....
1
vote
1answer
39 views

Tikz - airfoil forces and angle indication

I've generated a ClarkY airfoil with \draw function, but is small. So I decide to resize it, but it resize all and it's not what I want This is what I did: \begin{figure}[h!] \centering \resizebox{...
3
votes
3answers
169 views

tikz: 5 squares on a row, roman numbered 1 -> 5

Having never worked with tkiz before, I can't even begin to understand how to draw this simple thing. I hate to beg for a "can someone make this for me" but after trying to make this solution work ...
1
vote
1answer
41 views

Circling around some text

I would like to be able to draw a line around some expression. So far, I have found how to draw a circle around an expression, but I wonder if it is possible to draw a less restrictive shape (ellipse, ...
2
votes
1answer
48 views

Fill area under Bezier curve

I would like to fill the area under a Bezier curve and a line with color in PSTricks. How can I do that? Here is what I tried so far: \begin{pspicture}(20,25)(160,80) \psline[linewidth=0.55]{|->}...
0
votes
1answer
56 views

How can I draw this spiral (with vertical sides) in tikz?

How can I draw this spiral (with vertical sides) in tikz? The only way I would know how, would be to copy and paste code to draw semicircles of different radius, followed by connecting the ...
2
votes
2answers
111 views

How can this triangle figure be modeled/drawn with TikZ?

How can the following image be drawn?
2
votes
1answer
32 views

Defining intersections and nodes

I've replicated the figure below through the following MWE \documentclass[12pt,a4paper]{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}[dot/.style={circle,...
5
votes
2answers
204 views

Drawing perpendicular lines, filling areas

I still have some trouble with perpendicular lines. This is the figure I'd like to replicate This is my MWE \documentclass[12pt,a4paper]{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{...
2
votes
1answer
71 views

How to adjust Venn Diagram for A^c and A - B

How can I adjust this venn Diagram so it becomes like what I wrote on the Image below? I need to Color the "M" rectangle on the third Diagram and to remove the intersection between A and B on the ...
2
votes
1answer
70 views

Drawing a simple plane in 3D space

I'm trying to produce this simple 3d picture, but, since it's the first time I draw a 3d pic, I'm not sure about how to get the plane passing through the line X. The following code shows a first ...
9
votes
2answers
470 views

TikZ/PGF draw algorithm

I have TikZ code that draws an ellipse. Here is the code that, AFAIK, draws the actual ellipse: \draw [rotate around={0.:(0.,0.)},line width=0.8pt] (0.,0.) ellipse (5.cm and 4.cm); Can anyone tell ...
2
votes
3answers
78 views

Drawing Ellipse and Half-Ellipse in LaTeX

how can I draw some ellipses being "cut" by a half-ellipse like in the image (and also being able to write some labels on the ellipses)? And also, what should I do if I want to have a circle/ellipse ...
0
votes
1answer
44 views

Drawing two surfaces which intersect at a point or made a surface [closed]

Is it possible to draw a similar kind of diagram in Latex or in other software? This picture is there in Differential topology by Guillemin and Pollack. I need to give a similar sort of pictures ...
4
votes
2answers
147 views

Intersections in Tikz

The following code produces , however I would like to highlight the intersection area between the line through the coordinates A and B and that perpendicular to the vector x.3, defined in the \...
2
votes
1answer
48 views

Draw a circle with a fixed but unknown radius

I want to draw a circle centered at a point O and passing through a second point A. This is easy if we have an explicit formula for the distance |OA|. In many cases, these two points are given as the ...
3
votes
1answer
63 views

Drawing lines using \foreach

I'd like to get a picture similar to that uploaded below. Basically, I'm trying to add perpendicular lines to every ray on the positive orthant. This is my attempt, could you tell me what is wrong in ...
1
vote
2answers
90 views

Tips for improving a code

I'm trying to replicate the following figure. This is my attempt, but I want to get something more precise. \documentclass[12pt,a4paper]{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{...
0
votes
1answer
50 views

How to draw the following graph in Latex

I am trying to draw the following graph in LaTeX. But I have not been able.
1
vote
1answer
40 views

Multiple angled lines are converging instead of parallel (tikz)

I'm trying to draw a simple diagram where an angled grid is incident on a plane. I have two questions; \begin{tikzpicture} \filldraw[fill = blue!50!white, draw = black] (2.2,-0.2) ...
1
vote
2answers
75 views

Drawing some simple orthogonal projections

I'm a beginner with TikZ and I'd like to show that a vector y can be decomposed as How can I tell TikZ to draw a dashed line orthogonal to yp onto X and a vector ε orthogonal to X, starting at the ...
4
votes
1answer
43 views

Adding some simple labels

Since I am a beginner with Tikz, I wanted to ask what is the best way to include labels to my lines, as in the picture: This is the code: \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{...
6
votes
4answers
468 views

How can I make a line end at the edge of an irregular shape?

I created an irregular shape (below the Service rectangle) using the \draw command. As part of a diagram I like to have an arrow point to the shape as seen below. The arrow currently ends a bit above ...
1
vote
1answer
47 views

How to draw a line on a ball?

Basically I want to draw a line from the tip of the z-axis vector to the tip of the red vector. I do not quite know how to do this. This is the code I have so far, I hope someone has an idea on how to ...
0
votes
1answer
68 views

Drawing some simple pictures with tikz

I've never drawn plots in Latex before and I'm really struggling at drawing some simple pictures with the tikz package. Can anybody help me? The two lines in the second and fourth quadrant should be ...
1
vote
1answer
71 views

drawing simple maps with TikZ: filling areas

I'm a big fan of TikZ and I've used it a lot to make technical diagrams, but I've recently started gaining interest in a more artistic usage, namely drawing maps. As far as I can see, there's not ...
0
votes
1answer
44 views

\draw[] not working in tikzpicture? [duplicate]

I would like to draw a vertical line in the plot, indicating the mode of the left gaussian. \documentclass{article} \usepackage{graphicx} \usepackage{pgfplots} \usepackage{tikz} \...
4
votes
1answer
119 views

Omit the same coordinate parameters in drawing line in tikz

When I draw lines using TikZ, I always need to specify coordinates. For example \draw (1,0) -- (0,0) -- (0,1); It is getting tedious when you have a lots of draws. My question: "Is there a way to ...
4
votes
2answers
138 views

\draw rectangle TikZ

I'm trying to lean TikZ. I've written the following small document \documentclass[tikz,border=12pt]{standalone} \usepackage{ifthen} \usepackage{pgf, tikz} \usetikzlibrary{graphs,calc} \makeatletter ...
0
votes
1answer
35 views

Add a padding around draw nodes and images

I use this code to generate a set a of bubbles with labels: \newcounter{a} \newcounter{b} \newcounter{c} % Command to output a number of automatically-sized bubbles from a string in the format of '&...
5
votes
2answers
90 views

TikZ: Advantage of position values attached with a unit?

Regarding TikZ-images: When should I type positioning values attached with a unit (e.g. \draw (0cm, 0cm)...) and when should I type them without a unit (e.g. simply \draw (0, 0)...)? Minimum Working ...
3
votes
1answer
73 views

TikZ: How to clip out random coil fragments?

Based on this answer from marmot I am thinking about how to design a turbulent flow regime along a stream line within coarsed soil. Minimum Working Example (MWE): \documentclass[border=5mm]{...
1
vote
0answers
27 views

TikZ: How to add fill in style of multiple arcs?

I want to visualize poured loose coarse soil. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0, 0) rectangle (4, 4); \...
9
votes
2answers
380 views

TikZ: How to fill area with a special pattern?

I want to visualize a turbulent flow regime. Assumed we have a simple empty square that should be filled with a pattern. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{tikz} \...
-2
votes
2answers
90 views

Simple Tikz graph with colors [duplicate]

In my LATEX document, I would like to have the following graph: Is there a way I can put these colors next to the vertices without the vertex numbers disappear? I don't want to use online drawing ...
5
votes
1answer
133 views

How to color a zone in Tikz

I have this image: That is made with this code: \documentclass{article} \usepackage{tikz} \usepackage{amssymb,amsthm,amsmath} \usetikzlibrary{shapes,positioning,intersections,quotes} \...
1
vote
1answer
31 views

How to fix a colliding arrow between two labelled box

Hi everyone and thanks for reading my post. In a TikZ drawing, I have two boxes defined one above the other with \node[draw] type command. I also added boxed labels above each. The problem is that ...
0
votes
0answers
32 views

What are current environments for combining LaTeX/MathJAX/… and handwritten notes/sketches/drawings?

I am pretty sure there must exist by now several editing environments where you could, using touchscreen, insert any kind of scribbling into TeX-generated output (or maybe even intersperse the source ...
7
votes
2answers
458 views

Box half filled color

I am trying kinda to make this figure in tikz but I do not know how it works. I tried with \tcbox[sharp corners, boxsep=5mm, boxrule=.5mm] But I can not fill both sides with color.
1
vote
1answer
44 views

Spurious space from \tdplotsetmaincoords

The MWE below results is spurious space due to the use of \tdplotsetmaincoords: The red is the bounding box and the gray box is from \fbox{}. Including an \unskip\unskip (commented out in the MWE) ...
5
votes
2answers
109 views

Cross out words with overlapping to nearby words

I have figured out how to add a cross over words with tcolorbox \documentclass{article}\usepackage{xcolor} \usepackage[most]{tcolorbox} \begin{document} Of course, presenting this solution would be ...
2
votes
2answers
56 views

Wiring up text parts

I'm currently trying to wireup text parts to describe some thing like Unix file permissions or the output of an ls -al But I have no clue how I can create something like this: I was thinking about ...
0
votes
0answers
26 views

Include guides for staples within binding offset

I’m dealing with this setup: \documentclass[twoside]{exam} \usepackage[ letterpaper, twoside, bindingoffset=0.5in, inner=0.75in, outer=0.75in, top=0.75in, bottom=1in, ...
8
votes
1answer
750 views

How to encircle section of matrix in LaTeX?

I am currently working on a lab report where I have to explain the Gaussian Elimination Method for a matrix. As part of my explanation, I want to circle/oval portions of a matrix. Is there any way ...
1
vote
0answers
49 views

Interactive geometry package

I am looking for a package that can produce some basic geometric figures and can be incorporated in a pdf file in such a manner that it is interactive with the reader. More specifically, I want to ...
10
votes
3answers
580 views

Drawing a function without knowing its definition

I don't know TikZ in depth so I barely can play with it. The following is a transfer characteristic of an inverter gate. I have researched on the Internet to find the function's explicit definition ...
2
votes
2answers
94 views

How to draw a 2-dim Brownian motion into a disk

I should draw a Brownian motion starting into a disk until the first exit time from this disk in my LaTeX work (and after i should do similar things with SLE_k), how can i do? EDIT: I draw some ...
3
votes
3answers
460 views

How to draw a rectangle shaped arrow-jigsaw with bullets below

Like this, with multicolor shades of blue Thanks!
0
votes
1answer
155 views

Draw line with latex

How draw line and string of characters in latex I have this figure: this my code \documentclass{article} \usepackage{tikz} \newcommand{\linkeditem}[1]{ \begin{tikzpicture}[remember picture]% \...
3
votes
1answer
157 views

TikZ : “what to draw” vs “how to draw”

I have been using TikZ in drawing scientific figures for almost 2 years, and like it very much. I can say several good things about TikZ: simple and natural syntax, good documentation, drawing in ...