{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)

3
votes
1answer
63 views

Picture environment: line length does not match its coordinates

Well I have a problem matching line end with its coordinate. Here's the code: \documentclass{article} \begin{document} \begin{figure}[h] \centering \begin{picture}(260,210) ...
2
votes
1answer
155 views

How to label arrows in this commuting cube?

I would like to draw a commuting cube, where all the edges are also labeled. Below is my cube but I don't know how to do this, as the stackrel doesnt seem to work. \documentclass[12pt]{article} ...
2
votes
0answers
117 views

Problem with overwriting diagram files using feynmf

I've just installed feynmf package and tried working with a standard example. I'm working with MikTeX 2.9 on Windows. The compilation worked fine and I got the diagram in the PDF, but when changing ...
4
votes
1answer
181 views

Drawing graphs and Feynman diagrams with axodraw

I used CalcHEP to get following graph. However, the output gives a problem and it does not draw any graphs. (I have install axodraw.sty locally). The code is as follows: % u, D -> W+, b, B ...
3
votes
1answer
92 views

An unwanted overlapping of arrows with xymatrix

I try to make a commutative diagram like this: with the code $\xymatrix{ Y \ar@{->>}[rd] \ar@{->>}[r] &{Y_1} \ar@{.>}[d]^<<<{\cong}_<<<{\exists} ...
3
votes
0answers
491 views

How to draw Sequence diagram with TeX [closed]

I want to draw Sequence diagram in latex. I want it to to be like the following diagram: any hint? update [I changed the title from "use case" to "Sequence" , so sorry ]
6
votes
1answer
321 views

Triangular commutative diagram

I am using the \xymatrix command this is the code I've written \[\xymatrix{ & A \ar[d]^{i}\\ B \ar@{-->}[ru]^-{\exists \overset{\sim} \varphi}\ar[r]^{\varphi}&C }\] My problem is ...
7
votes
2answers
216 views

Double arrow for inline diagram

I want to make a diagram like A--->B, but there are two arrows, one written f_1 and another with f_2. I tried \stackrel, but this gives arrows with different sizes. If using ...
26
votes
2answers
641 views

Chaotic billiard with TikZ

I'm looking for a TikZ library that could help me to represent different shapes of chaotic billiards. Any idea?
48
votes
3answers
2k views

Holiday contest! Drawing a picture of Krampus for Yule

I've volunteered to use some of my Cthulhu reputation to sponsor a Christmas/holiday contest. You all have aced previous holiday questions, so I'm going to give you a bit more of a challenge: Draw me ...
7
votes
2answers
6k views

Drawing flow diagram in LaTeX using TikZ

I need to draw the following diagram using TikZ package in LaTeX I wrote the following code so far: ...
2
votes
2answers
162 views

Layered diagram with empty spaces

I am trying to achieve something like the following: +---------------------+ +---------------+ | A | | B | +---------------------+ +---------------+ ...
1
vote
0answers
116 views

Beamer–PSTricks Diagram “Wiggling”

I am working on a presentation using Beamer with diagrams done in PSTricks. I would like to animate one of my diagrams, and have achieved this by using various \only, \uncover, etc. statements. ...
5
votes
1answer
165 views

tikz parameterized circle node with t-lines inside within a tree diagram

I would like to draw a tree diagram consisting of circle nodes with three subparts divided by a t-line (see sample below). Instead of separating every tree node by hand I would like to only specify ...
29
votes
2answers
964 views

How to plot a lattice of points on the surface of a torus?

I am doing a report on the Ising model, without going into the complex details of the model, in its two-dimensional form it involves a lattice of points. Which, when periodic boundary conditions ...
7
votes
0answers
174 views

3d graphics/diagrams [closed]

Is there a convenient way to create a 3d graphic/diagram like the following in LaTeX (e.g. with tikz)? I'm aware that convenience is a point of view, however I would describe myself as a newbie to ...
3
votes
1answer
235 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
514 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
143 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
241 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
403 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
135 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} ...
6
votes
1answer
214 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
548 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
83 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$}.
5
votes
4answers
394 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
95 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
155 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
312 views

How can I make this diagram about graphs in LaTeX?

How can I make the following diagram in LaTex:
12
votes
2answers
245 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
354 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
1k 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
337 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
143 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 ...
8
votes
2answers
528 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
275 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
194 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
425 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
73 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
301 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
165 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
463 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
238 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
383 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
621 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
402 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
485 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 ...
6
votes
3answers
497 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
366 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 ...