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}.

1
vote
1answer
26 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) ...
-1
votes
0answers
58 views

How to draw the following diagram in Latex [on hold]

I was trying to draw the following diagram in Latex I don't have any idea how to draw. I have to draw similar pictures in my presentation. Also, please suggest me some softwares other than Tikz where ...
5
votes
2answers
98 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
52 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
23 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
720 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
45 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 ...
9
votes
3answers
537 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
79 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 ...
2
votes
3answers
425 views

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

Like this, with multicolor shades of blue Thanks!
0
votes
1answer
88 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
146 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 ...
-1
votes
1answer
66 views

How do you draw this picture in tikz?

How do you draw these two images in LateX with tikz? Note that D_R and K_R are slightly shaded. Thank you very much!!!
2
votes
1answer
49 views

Radix 2 FFT Butterfly Method in Latex

I want to use Latex to design the Radix 2 Butterfly Method to look like the (very poorly drawn) image below. I'm aware there's a similar question here to what I'm looking for, but it's not exactly ...
0
votes
1answer
38 views

Filling in a square with custom sides

I have the following code which produces the boundary of a square with each side labeled with a certain kind of arrow. I want to fill the interior with a color, but when I add "fill=color" as an ...
2
votes
1answer
64 views

Plot curves and color space regions in LaTeX

In an answer to a previous question (Drawing curves with LaTeX), this curve was drawn \documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{decorations.markings} \begin{document} \begin{...
1
vote
1answer
114 views

Drawing curves with LaTeX

Using LaTeX how can I draw a generic smooth closed curve (in 2D) and one other generic smooth curve joining two points on the first curve? I also need to write labels for the curves and each of the ...
2
votes
2answers
102 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{ ...
-4
votes
3answers
103 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
22 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
81 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
743 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
124 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
245 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
902 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
48 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
108 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
65 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
173 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
47 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
136 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
118 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
38 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
41 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
684 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
48 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
81 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
71 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
81 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
109 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
241 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
108 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
102 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
103 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
163 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
80 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
159 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
46 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
880 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 ...