Stack Exchange Network

Stack Exchange network consists of 174 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
77 views

draw milk carton in tikzpicture

i want to draw 4 milk carton like attachment. Please help Example: Create water cup symbol this code for water: \documentclass{article} \usepackage[most]{tcolorbox} \makeatletter \tcbset{ ...
-5
votes
3answers
79 views

Tikz simple mechanical scheme

Could you help me with drawing of the transformer (see below)? I haven't enough experience with tikz to achieve this alone.
1
vote
1answer
20 views

Macro inputs from text file to draw nodes at x,y where x,y values are read from the file

I am drawing boxes using a macro like \newcommand{\drawbox}[2]{ \node[box, fill=green] at (#1,#2){}; } where I specify the arguments #1 and #2 (that correspond to x,y values) when calling the macro. ...
1
vote
2answers
62 views

How to draw intervals in latex using tikz or otherwise?

Sometimes we require to represent multiple intervals on a single number line so that we could see their intersection easily. One illustration is given below I can draw line and make nodes using tikz ...
11
votes
2answers
710 views

Drawing a half-full bottle in TikZ

I want to fill half of the bottle. I tried these kind of commands: %\filldraw[color=black!100, fill=cyan!30, very thick](-3,-2.4) arc (180:230:2.5) .. controls (-2,-5) and (-1.9,-5.2) .. (-1.8,-5.5) ;...
0
votes
1answer
99 views

What is the most efficient way to draw sets in LaTeX?

What is the best way to draw sets in LaTeX. I want to have a visualization of the Sets of a certain proof because it is way easier to see than to read. But I am not sure if it is worth the effort to ...
5
votes
3answers
225 views

Surface of genus 3 tikz

I want to draw a surface of genus 3. I produced this \documentclass[margin=0pt]{standalone} %---------------------------- Tikz Libraries ------------------------------% \usepackage{tikz} \...
23
votes
3answers
868 views

tikz — Snake like curves between straight lines

How do we draw a figure like this in tikz? I am able to draw the straight lines, but these curves are too challenging -- how to draw them nice? The minimal template is: \begin{tikzpicture} \draw[-&...
2
votes
3answers
41 views

How to draw lines that connect nodes in the axis environment?

I'm trying to draw arrowed lines that goes like (A) -> (A1) -> (A2) -> (A3), but my code doesn't work. \documentclass[11pt,a4paper]{article} \usepackage{geometry} \usepackage{tikz} \...
5
votes
1answer
88 views

Draw an array of lines and vectors in tikz

How do we draw a figure like this in tikz? I am able to draw the x-y frame via: \begin{tikzpicture} \draw[->] (0,0,0)--(1,0,0) node[right]{$x$}; \draw[->] (0,0,0)--(0,1,0) node[above]{$y$}; \...
-4
votes
1answer
61 views

Drawing a spring ring with 3 masses

I'm trying to figure out how to draw the following using LaTeX: How can I draw a system with round springs?
1
vote
3answers
132 views

How to draw a geometry triangle in LaTeX?

Name explicitly used properties from the sketch (for example, parallel lines, equilateral triangles, right angles), and give common calculation rules used. Helpful calculation rules and methods can ...
4
votes
1answer
36 views

Drawing a sub cubic grid inside a cubic grid (with different gray scales)

This is a related but very simple follow-up to a previous question, inspired by the comment of @marmot "Or do you want to use different grays for different planes?" Here is what I have This is a 8 x ...
4
votes
2answers
128 views

draw border around edge of symbol

Is it possible to draw a (coloured) border around the edge of a LaTeX symbol? For instance, I would like to draw a black border around the edge of a \bigstar. So, something like this Below a very ...
3
votes
3answers
98 views

How to draw a much more dense grid or lattice?

My inquiries: 1) How to draw a much more dense grid in 2-dim? 2) How to draw a much more dense grid in 3-dim? Let us say it is still 4 x 4 in 2d or 4 x 4 x 4 in 3D in size, but I want to have ...
0
votes
0answers
81 views

how to draw a sine waves [duplicate]

I would draw more sine waves where wave parameter (top, bottom interval between two waves) depends from a value inserted on a \foreach (or similar) value. Can someone give me example? Renato ok, ...
1
vote
2answers
33 views

Arrival atom numbering doesn't work with \chemabove

Consider the following MWE: \documentclass{article} \usepackage{chemfig} \begin{document} \chemfig{ X -[:30,,,2]^{18}\chemabove{O}{H} -[:-30]X } \end{document} This code returns an ...
0
votes
1answer
27 views

SR Latch using Circuitikz

I am trying to draw an SR Latch using Circuitikz My code is: \begin{circuitikz} \draw (0,2) node[nor port] (NOR1) {} (1,2) node[anchor=east] {Q} (1,0) node[anchor=east] {$\overline{Q}$} (0,0) node[...
7
votes
3answers
638 views

Drawing a Tank with Water in it

I am trying to draw a cylindrical tank that has water in it, using tikz. Here is what I have so far: \documentclass[a4paper, 12pt]{article} \usepackage{pgfplots} \pgfplotsset{compat=1.15} ...
3
votes
1answer
41 views

Line from Origin to Nodes at circles centers

I want to produce a figure like this: with this code: \begin{tikzpicture} \draw (0,0) circle [radius=10.75cm]; \draw (0,0) circle [radius=4.2cm]; \begin{scope}[even odd rule] \draw[fill=gray!20,...
1
vote
2answers
70 views

How to draw 3 components diagram?

I would like to draw the following figure in LaTeX, but I am unable to get any satisfying result with the packages tikz, smartidagram or even graphicx. I am grateful for any tip and suggestion. ...
2
votes
2answers
68 views

A diagram with matrices

I want to draw the following diagram which contains two matrices (2x2 on left and 4x4 on right) and a box. Could someone help?
2
votes
1answer
42 views

How to properly draw a histogram?

Surely it is an easy problem but I can't find a solution. Imagine you want to simulate a Gaussian distribution of frequencies around a mean value with a certain spread. It is an easy task to write the ...
2
votes
1answer
84 views

How can I draw a Venn diagram with multiple circles contained in a circle?

Exactly like I can't figure out where to start. I don't know why Tikz confuses me so much.
6
votes
2answers
212 views

Draw a line between two labels

I am looking for a way to draw a line between points (labels) in a text, like this: \documentclass{article} \begin{document} Cordially convinced did incommode existence put \label{start}out ...
2
votes
2answers
62 views

How to add perpendicular symbol at desired location

I am trying to draw perpendicular symbol on point where the perpendicular line from O is meeting the line AB. But I am unable to achieve it. I try via simple draw because I use pgfplots (you can see ...
4
votes
1answer
76 views

How can I draw a square wave function on the screen of this tikz-generated oscilloscope?

Here is an oscilloscope which is entirely generated by tikz. I just copied it from texample.org and modified the code a little bit. I am now trying to draw a square wave function on it and I am stuck ...
3
votes
2answers
66 views

Symbol filled with colour using tikz?

I am trying to reference data presented in figures in my text. In order to identify the data being discussed, I draw the symbol in the text. I can use tikz to draw the circle that is filled with ...
3
votes
2answers
150 views

Draw the three cylindrical sections

I want to draw the three conic sections (circle, ellipse and rectangle) where the cylinder and cross sections are colored: \documentclass{standalone} \usepackage{tikz} \usepackage{animate} \...
1
vote
1answer
67 views

Draw a figure (cut-off functions) in tikz

Please I need the code tikz for this figure. I have this code but it's not correct : [![\begin{figure} \begin{tikzpicture}\[x=1.5cm,y=1.5cm\] \draw\[thick\] plot\[domain=-100:40,samples=100\] ({3.5*...
5
votes
1answer
124 views

Draw the four conic sections

I want to draw the four conic sections (circumference, ellipse, parabola, and hyperbola) as shown in the picture: MWE: \documentclass{article} \usepackage{pst-plot} \usepackage{tikz} \begin{...
1
vote
1answer
43 views

How to precisely define the placement of the labels in circuitikz?

I want to have complete control on where to put the labels R1 and L1, the annotation 100 Ohms and the Voltage VL. For example, how to move L1 label a little more to the right, and a little more to ...
4
votes
2answers
835 views

How to customize this oscilloscope picture?

This is an oscilloscope picture which I copy-pasted from texample.net I modified the code a little bit and now, I am stuck with two things: I would like to draw some probes that are connected to the ...
1
vote
1answer
43 views

Curve drawing in TIKZ - evenly spaced points

I have a certain number of points, using which I want to draw a spline/bezier curve "through" the points. When the curve is drawn, I want to automagically put along the curve p equally spaced points. (...
4
votes
2answers
203 views

How draw this figure (spiral) in tikz?

I would like to draw this figure in tikz. This figure below is already in tikz, but I would like to develop the code.
0
votes
1answer
63 views

Drawing semantic maps in LaTeX

So I'd like to draw a semantic map in my article. Where semantic frames are in some order organized and groupped by different colored boxes of lexemes. As an example of what I want, I can attach one, ...
0
votes
0answers
28 views

Plot with shaded regions under curve [duplicate]

I want to plot the given graph, with a concave function and a rectangular box formed by drawing lines from the $x$ and $y$ axis to a point on the function. I also draw a segment from that point to the ...
19
votes
1answer
2k views

What was used to draw the rope?

I came across the following to draw a rope connecting two points. Is this a custom-made object, or is this something that came from a package? If it is custom-made, what is the best way of ...
2
votes
2answers
100 views

Fill area between curves with tikzfillbetween

I need to fill the area between a few curves with tikzfillbetween, but I don't want the inner circle to be filled. \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{...
-1
votes
1answer
77 views

How to make this Figure in tikz? [closed]

Could anyone please help me draw this with TikZ ? please notice that there is curved lines I tried to made by hand in office
1
vote
1answer
31 views

How to add a vertex vertically in this template (or with tkz-graph )

Please help me draw a graph like this(see hand-drawing pic) in Latex ? I have found a template which has clean Latex in it. I am trying to add some vertices vertically without any success, Here is ...
2
votes
1answer
37 views

Extend the line to y-axis in Tikz

I have a simple tikzpicture with two lines. Here is the Latex code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture}[scale=1.0] \...
5
votes
1answer
59 views

Family of curved lines with perpendicular curved lines

I'm trying to draw the below image: The only approach I have is to draw multiple lines of the sort \draw[->] (0,0) to[out=60,in=-150] (1,1); \draw (1,1) to[out=30,in=180] (2,1.3); I've ...
1
vote
1answer
59 views

Calculate a coordinate

I could calculate the coordinate, sure but I want Latex to do it. But it gives many errors and a wrong coordinate pC', (pC is correct), what do I forget? \documentclass[aspectratio=169]{beamer} ...
2
votes
4answers
608 views

How to draw an diagram with arrows?

I want to draw the following diagram in LaTeX:
3
votes
3answers
129 views

Filling circular segment using Tkz-Euclide

I tried to fill a circular segment but I'm having trouble doing it. Here's my MWE: \documentclass[10pt]{scrartcl} \usepackage{tikz} \usepackage{tkz-euclide} \usetikzlibrary{calc,backgrounds} \...
1
vote
3answers
75 views

Filling a region between circles using Tkz-Euclide

I am trying to fill the region inside the circle centered on C but outside the circle centered on B using TikZ or Tkz-Euclide but I am unable to do so. I just got help on a similar question and I ...
3
votes
1answer
131 views

Filling region limited by circumferences using Tkz-Euclide

I am trying to fill the region enclosed by three circumferences (the little one in the middle) using TikZ or Tkz-Euclide but I am unable to do so, even after looking at several examples. Here's my ...
6
votes
1answer
210 views

Specifying line length in TikZ

(I apologise if this question has been asked before, it's hard to believe it hasn't, but I can't find any material on it.) I want to draw a line passing through two points where I can specify the ...
2
votes
1answer
55 views

Is it possible to make an X,Y,Z scatter plot in LaTex?

I need to make a scatter plot with the following points: $(1,1,0), (-2,0,2)$, and $(2,1,1)$ and then I need to draw a plane through the three points. I don't really know much about creating graphs in ...