{diagrams} is for general questions about vector graphics created programmatically inside a (La)TeX document. For questions about specific packages, use the appropriate tag, e.g. {tikz-pgf} or {pstricks}. For questions about inclusion of external graphic files, use {graphics} instead.

learn more… | top users | synonyms (1)

4
votes
1answer
292 views

How can I draw this commutative diagram for function composition?

I am working on a project, and need to add a diagram that displays a commutative diagram illustrating basic function composition similar to what is on page 17 in the image attached. I would like to ...
5
votes
2answers
531 views

what software can draw this kind of figure?

It looks very beautiful! I'd love it! See http://www.science4all.org/le-nguyen-hoang/integer-programming/ Do someone know what software can draw this kind of figure? I'm interested in learning it. ...
8
votes
1answer
154 views

For each node I want to draw arrow '->'

I want to draw '->' for each path. Actually I tried to add every node option and '->', but this doesn't work. I know that \draw[->] (t1)--(t2); \draw[->] (t2)--(t3); ... would be work. But I want ...
5
votes
1answer
296 views

How to draw 'Open Oyster' Feynman diagram with FeynMF or other package?

I am curious to learn about Feynman diagrams, so I have started to read Richard Mattuck's book "A guide to Feynman Diagrams in the Many-Body problem". One of the first diagrams that appears in this ...
13
votes
0answers
474 views

Are there any other methods left to create a spiral of equidistant segments?

I want to create a spiral that is composed of equidistant segments as shown in the following figure. I tried to draw it with various methods. The colors are used to distinguish each method from the ...
4
votes
2answers
148 views

Inserting Symbols into my graphics

I am trying to show two braids are equivalent, I have my code as follows \begin{figure}[htb] \centering \begin{tikzpicture} \braid [line width=.4mm] a_2^{-1} a_1^{-1} ...
7
votes
1answer
302 views

TiKZ picture does not sit properly in `figure` environment

This code: \documentclass{tufte-handout} \usepackage{tikz} \begin{document} \title{Lorem ipsum} \author{me} \date{now} \maketitle Lorem ipsum dolor sit amet, blah blah blah... \begin{figure} ...
12
votes
3answers
607 views

How to create simple causal chains with TikZ

I have a problem trying to create a simple causal chain, as it can be seen on the attached file: List of available TikZ libraries with a short introduction. I'm having two main issues: I would like ...
3
votes
1answer
90 views

Math in picture environment

Is it possible to avoid excessive use of the symbol $ in pictures containing a lot of formulas/math symbols? I mean to use \put(m,n}{math} instead of \put(m,n}{$math$}.
4
votes
4answers
435 views

How to plot a curve in a polar form r = f(Θ)?

Can we use LaTeX to make the graph of $\rho = \sec(\theta)$?
4
votes
1answer
101 views

Custom commands for `xymatrix` paths

I would like to define a custom command to replace \ar@{->}`r[d]`[l]`[llld]_-{\delta}`[d][lld] in this bit of code: \[\xymatrix{ \cdots\ar@{->}[r] & H_n(X)\ar@{->}[r] & ...
5
votes
4answers
168 views

How can I make TikZ nodes center on a particular symbol/operator?

Here is a small example document. \documentclass[a4paper]{amsart} \usepackage{tikz} \newcommand{\dju}{\mathbin{\coprod}} \DeclareMathOperator{\id}{id} \begin{document} \begin{tikzpicture}[x = ...
5
votes
2answers
337 views

How can I make this diagram about graphs in LaTeX?

How can I make the following diagram in LaTex:
12
votes
2answers
257 views

Is there another better way to have a region with gradient opacity?

My objective is to get a region with gradient opacity. In the following MWE, the region is a quarter of a disk on the top a bird. I made the gradient opacity by partitioning the sector into 45 ...
6
votes
2answers
372 views

How to create the following figures in TikZ - Part 2

This is the second part of Question How to create the following figures in TikZ. I'd like to create the following figure with TikZ. \documentclass[tikz,border=5pt]{standalone} ...
9
votes
1answer
2k views

Drawing a data flow diagram in LaTeX

Would it be possible to draw a data flow diagram in LaTeX as follow? if so, how? (actually I am only puzzled with the bounding box). Thanks a lot Edit: the following code will get me everything ...
-1
votes
1answer
379 views

I need to draw the chemical Structural Formula of Bisphenol A [closed]

I need to draw the chemical structure of Bisphenol A as shown on this page: http://commons.wikimedia.org/wiki/File:Bisphenol_A.svg I've also found this presentation how to do it: ...
4
votes
1answer
151 views

Trouble compiling an example from the LaTeX Graphics Companion

I've been trying to compile code samples from the wonderful The LaTeX Graphics Companion. Second Edition, by Michel Goossens, Frank Mittelbach, Sebastian Rahtz, Denis Roegel HerbertVoB IT Addison, but ...
9
votes
2answers
604 views

How to create the following figures in TikZ

I'd like to create the following two figures with TikZ I'm tikz beginner, can anybody give me some advice how to do that? Now i've created the first figure: ...
3
votes
1answer
309 views

The perplexing path direction of TikZ

This is a follow up to the question Replicating a simple diagram in Knuth's book using Tikz where I was fortunate to receive various useful and enriching answers for which I am grateful. The ...
3
votes
2answers
200 views

How to create a line like crayon with Beamer

I want to create a custom beamer line , for my template to look something like crayon like picture below:
8
votes
2answers
444 views

How to draw a circle with a triangle in TikZ?

Be sorry that I cannot provide the coordinates of all points, or I can draw the picture. How can I make this figure? Thanks for any help!
3
votes
1answer
92 views

Fixing picture heights (to avoid overlap with text)

I’m using the picture environment (with linguex). However my pictures overlap with the text: I've fixed the problem by adding in a rule with zero width and height equivalent to the picture (30 ...
8
votes
2answers
322 views

how to draw the simple geometric figure with arrow shows its width via tex?

Before I ask this question, I have clicked many pages. Unluckily, I have found none. Could someone tell me how to draw the simple geometric figure with arrow via tex? Be grateful so much!
1
vote
0answers
200 views

Animation for discrete-time convolution of two sequences?

How can I animate a convolution sum of two discrete-time sequences using LaTeX? It can be done? An example of how the convolution sum works can be seen here: Wolfram Demostration Project, ...
9
votes
2answers
526 views

TikZ - drawing multiple lines from the origin to the edge of an *arc*

I am trying to produce a diagram showing wavefronts/rays spherically diverging from some origin, and being paraxially rectified when contacting a lens with some controlled radius. What I want is ...
2
votes
0answers
291 views

xy-pic or tikz : which one should I learn? [closed]

I want to learn how to use tikz more in depth. But I wonder wether I should also learn how to use xy-pic, because it seems, at first glance, that xy-pic can do much of what tikz does when it comes to ...
3
votes
3answers
425 views

Draw a Kohonen SOM feature map?

I have never used the drawing packages available to TeX but they seem like the ideal solution for creating re-usable technical drawings, and might be better than spending a week in inkscape (I'm ...
24
votes
4answers
1k views

A rather difficult ring like picture to be drawn

I desire a figure similar to the following: \documentclass[tikz,margin=10pt]{standalone} \usepackage{mathtools,amssymb} \begin{document} \begin{tikzpicture}[scale=2,transform shape] \draw (1,0) ...
13
votes
3answers
655 views

Noisy, analogue waveform in TikZ

Is there an easy way of drawing a noisy waveform in TikZ? I know you can draw a simple sinusoid by repeatedly using cos and sin for every half-period, but doing that for a noisy waveform seems like a ...
1
vote
1answer
434 views

TikZ graph with interesting vertices

I'd like to use TikZ to typeset some graphs like this one: (Sorry for the crappy camera-phone pic) I am familiar with \node, \path and edge, as well as with getting different arrowhead styles. ...
8
votes
6answers
508 views

How to draw a ring-like diagram with some labels on its arcs?

I would like to draw a figure that looks like the following scenario: Consider a circle of radius $r$, described parametrically by $x = cos(t) and y = sin(t)$. I'd like to draw a figure where the ...
7
votes
4answers
591 views

Drawing randomly ragged lines in technical drawings

I am having issues getting started on drawing a randomly ragged line, with finite variation, between two endpoints. The random function which uses variable rnd I think can be used, for instance, ...
8
votes
2answers
424 views

How to draw a closed curve with a flag-like path and attach some labels to them?

I'm trying to draw some arbitrary closed two dimensional curve where I'm focusing on only part of the boundary. I want to label the diameter of the part of the boundary I'm focusing on. Last, I'd like ...
3
votes
1answer
245 views

The best way to create illustrations for a book, reports, etc

I use LaTeX in Mac for my scientific reports. I want to include illustrations like this: One of my professors recommended DrawPerfect 1.1. It is obvious that he is outdated. I was thinking of ...
8
votes
3answers
585 views

Best and easy-to-master free softwares for drawing geometric figures in math papers?

I'm not very familiar with how to draw geometric figures (say circles, rectangles, surfaces of different genera and cusps etc.). I'd like your opinion on softwares that I can use for this purpose. Are ...
5
votes
1answer
172 views

Three loop diagram

I want to make a three loop diagram such as the one on the left. I use the following script \fmfleft{i}\fmfright{o} \fmf{boson}{i,v1}\fmf{boson}{v2,o} ...
2
votes
0answers
59 views

Qcircuit: Different shapes or colors for multigate

I have a noise term that I am implementing as a Multigate. Is there a way I can make this specific multigate stand out: such as different shapes or colors for this specific gate? Or even a dashed or ...
45
votes
13answers
2k views

What is the simplest way to draw this triangle exactly?

I want to see how we can exactly construct the following diagram as simple as possible. It means that the manual calculation should be avoided. Note that the angle marks attached to angles ...
4
votes
2answers
322 views

Creating a punktchain or flow diagram in tikz/pgf latex that is two column then merges to one and back to two

I have update the example code with some of the comments to get really close to what I want. Now I just want two lines coming out of filter 1 and filter 2 inline and with the same line style as ...
7
votes
1answer
749 views

TikZ Self Loops Style Question

I have a question on how to "style" the self loops in my diagram. Here is my preamble: \documentclass[letterpaper]{tufte-handout} % Additional LaTeX Packages \usepackage{amsmath} ...
9
votes
1answer
590 views

Drawing a complete ER Diagram in Crow's foot style by TikZ

I need to draw a ER digram in Crow's foot style in LaTeX. After some search I found: Creating crow's foot style E-R diagrams, rather than Chen-style ones However, I found this style was not ...
3
votes
1answer
137 views

Argument diagram (logic)

I need to diagram arguments (Beamer). I've tried to use tikzcd but it doesn't work. How can I draw a diagram as the following one?
15
votes
3answers
861 views

Draw a 3D diamond structure

I want to draw a 3D diamond crystal structure. The point where I struggle is quite in the beginning to draw connecting 3D rods: \documentclass{article} \usepackage[utf8]{inputenc} ...
17
votes
3answers
1k views

Replicating a simple diagram in Knuth's book using TikZ

Despite the many attempts to draw this simple flowchart, I didn't really know how to do the following: Drawing a start arrow (as the one before A1) Drawing an end arrow (as the one after A2 and ...
8
votes
0answers
139 views

Is there a better way to display this information? [closed]

I have drawn this picture in tikz. Is there a more visually pleasing and intuitively appealing way of displaying this information? I feel what I have drawn is dull and boring. I have to include more ...
3
votes
1answer
371 views

How to draw this genogram using LaTeX/TikZ

I'm a medical student and I need to write a report on a patient for next week. I'm fairly new to LaTeX, so I was wondering if there is a way of creating a genogram like the one below. It needs to have ...
6
votes
2answers
245 views

Graphs in commutative diagrams in TikZ

I want to draw a diamond shape commutative diagram using tikz. Instead of just letters I want to have simple graphs (just edges and vertices) in the diagram. I tried some stuff but the diagram still ...
4
votes
0answers
402 views

TikZ path decorated with coil or snake

A recurrent question on the forum is... How to draw a decorated path without a straight segment at the end? Usually the path described are straight lines (See post1, post2 or post3), but there are ...
5
votes
1answer
241 views

How can I draw a *manual input* and *Multi-document* nodes in a flowchart using TiKz?

I am drawing flowcharts using TiKz. I have found a number of suggestions here and here. However, I have not found code to draw a manual input node (image source) I could eventually figure this out, ...