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

6
votes
1answer
2k views

Diagram of an artificial neural network

I need draw some picture, but I don't know how do that. First, the simple graph with basic shapes, arrow,.... And then, draw a picture with math symbol or equation in math environment. Like that: ...
2
votes
1answer
166 views

How do I make my path node follow the path from a certain position?

I am trying to make a diagram with a curved arrow and I want its node to follow the arrow from about the "near end" point. I have been googling for hours now and I can't find the way to do it. I've ...
2
votes
0answers
94 views

Programmatically converting an integer into bits with graphical output [duplicate]

I just stumbled upon this interesting question about "how to automatically draw tree diagrams of prime factorization with LaTeX" and it rang a bell. I 'd like to create a command that displays the ...
5
votes
2answers
234 views

Draw a trellis with time labels

How can I draw a graph like the below image? It seems that I could use some package for drawing graphs but I am new and I dont know if they have limitations. The requirements are: -There is a ...
4
votes
2answers
86 views

psgo.sty the goboards are not drawn

I use TeXlive on Debian Wheezy. I have psgo.sty installed (in texlive-games). I have downloaded psgomanual.tex. After I enter the command latex psgomanual.tex I get a .dvi file. With lots of warnings ...
47
votes
6answers
2k views

How to automatically draw tree diagram of prime factorization with LaTeX?

I want to have a simple interface to automatically draw tree diagrams of prime factorization. For example, by invoking the following code, \PrimeTree{36} \PrimeTree{90} \PrimeTree{112} ...
6
votes
1answer
187 views

How to plot sectors in 3D with LaTeX?

I wish to have two sectors (one in blue color, the other in black pencil) in 3D, and they share the same vertex on the plane. The black pencil one lies on the plane, whereas the blue one is theta ...
0
votes
1answer
100 views

Picture environment in latex. How can I use the same length but

I am using the picture environment and this comes from a pdf I found online about it The picture environment has one mandatory argument, which specifies the size of the picture. The environment ...
13
votes
3answers
428 views

Drawing complex diagrams with TikZ using gradients

I am relatively new to LaTeX. I don't find it an issue writing documents and so on but when I try to draw diagrams I run into some bother. I was reading an article and found this diagram: I was ...
2
votes
0answers
84 views

Wrapping Lyx Graphic

I'm very new to this whole LaTeX system, but I love the typesetting, it looks so much better than Word, but i'm currently preparing an article with multiple columns using a \start{multicols} script i ...
0
votes
1answer
403 views

Import code from LaTeXDraw to writeLaTeX

I am new to LaTeX. I am trying to write my master thesis using WriteLaTeX. I wanted to make some figures using LaTeXDraw. However, I want to import the code to my report and not the final picture. How ...
4
votes
1answer
298 views

PRL style horizontal line in Latex

I want to get the line similar to the one in PRL articles at the end. I don't want to use RevTex but can't figure out a simple way of doing it in Latex. Any help will be appreciated.
4
votes
1answer
132 views

Text over picture with white space

I'd like to label some level curves with values that are superimposed over the level curves, creating white space around the labels so that the underlying curves appear "broken". I figured a simple ...
1
vote
0answers
183 views

pictograms, Iconography, scalable shapes, custom nodes, shapes

Hy, I'm building up my own iconography, a set of pictograms that represent ideas so that i can connect them to illustrate more complex systems. I would like some suggestions of which is the best ...
1
vote
1answer
74 views

Too wide diagrams

I have been struggling with diagrams that exceed the margins of my document. Could you tell me how could I solve this problem without changing the margin sizes? I am using the XY package. Thanks!
13
votes
2answers
423 views

How to draw spherical triangles?

Does anyone know how to draw spherical arcs and spherical triangles using LaTeX?
4
votes
1answer
98 views

How to put picture into glossary entry?

I'm using the Glossaries package, which is fantastic, but I'd like to put in pictures which explain the term better than words would. Is there a way for me to do this?
4
votes
4answers
1k views

How can I produce a Hasse (or lattice) diagram?

I want to produce a some kind of lattice diagram, such as a Hasse diagram. How can I do so? I tried using matrix with letters and slashes but it seems ugly. Do I need any additional packages? EDIT: ...
1
vote
1answer
117 views

Label the source/target object in the middle of compositemaps from 2cell package of xy?

In the 2cell package for xy, there is a command for typesetting 2cells between composite arrows, namely \..compositearrow (where the .. stands for some number of u,l,d,r). I would like to use this ...
2
votes
1answer
119 views

Change the orientation of Arrow of xtwocell in the 2cell option for xy

I'm trying to make a diagram similar to this (from wikipedia) Except that I want to the double arrow $\eta$ two be pointing from node $B$ toward the middle of arrow $X$ (it is, after all, a natural ...
3
votes
1answer
421 views

Tikz automaton placed too far to the right

So I'm having a bit of trouble drawing an automaton that I've created. I've been looking around for a while to no real avail, so I decided to just ask the question myself: when I make an automaton ...
0
votes
1answer
281 views

Can LaTeX create graphics with mathematical curves? [duplicate]

I am trying to see how good LaTeX is. Can someone show me whether graphics like this. Thank you due to copyright complains removed the figure.
3
votes
1answer
193 views

Representing Equivalence Relations with Nodes, Loops, and Edges

I've never used TikZ for illustrating equivalence relations, but I thought I'd try it out. What I'd like to produce is something like this: What is the general method for connecting points to ...
3
votes
1answer
191 views

Change color of vertex outline in tkz-graph

Suppose I have the following graph: \documentclass[]{article} \usepackage[utf8]{inputenc} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{fullpage} \usepackage[upright]{fourier} ...
4
votes
1answer
163 views

TikZ and PGF — Design considerations and approach to sizing pictures?

The first pages of the TikZ/PGF manual specifies that measurements are in points, centimeters, or are relational to other lines/objects, but I don't understand how to determine that up front. I have ...
5
votes
1answer
149 views

Relational Grammar arcs

I'm quite used to draw syntactic trees and even AVMs for different linguistic theories, but I've stumbled upon the need to draw Relational Grammar / Arc-paired grammar arcs for a paper I'm writing ...
1
vote
2answers
253 views

Draw a picture of primes ideal lying over a prime ideal

Let $K$ be a number field and $L$ be a finite extension of $K$. Then, let $\mathfrak{p}$ be a prime in $K$ and $\mathfrak{P}$ be a prime lying over $\mathfrak{p}$. I would like to draw the following ...
3
votes
1answer
314 views

Flow of current in a circuit

I am trying to create a circuit with resistors and voltage sources. I need to have each resistor labeled with their resistance (above) and the unknown current (below) flowing through the resistor. I ...
12
votes
3answers
336 views

Draw Polygonal Number Using PSTricks (or TikZ)

I would like to draw the following using PSTricks (or TikZ): (Found on http://i1.wp.com/mathandmultimedia.com/wp-content/uploads/2012/08/polygonal-numbers.png.) I can do it myself using an ...
4
votes
2answers
395 views

Creating a digraph with formulas instead of nodes

I am looking to make a diagram with lines similar to this one: Labeling Edges in a Weighted Digraph But I am trying to have a mathematical formula, which is the label, instead of being above the dot ...
35
votes
3answers
1k views

Replicate the Fourier transform time-frequency domains correspondence illustration using TikZ

The following time-frequency correspondence illustration is in the wikipedia entry of the Fourier transform. Also a gif animation version (if the animation doesn't show, please open the following ...
3
votes
2answers
287 views

Drawing line around obstacle in circuit diagram

I have a circuit diagram with 3 DFFs (rectangles) and an xor gate (pointy bit on the right). For reference, let's identify the components from left to right as x[n], DFF0, DFF1, DFF2 and XOR0. ...
4
votes
1answer
193 views

How to draw compactification and completely regular diagrams in tikz

How can we draw diagrams like this: and
-1
votes
0answers
81 views

How draw an add-two shape? [closed]

I have two shapes: (x0,y0) (x1,y1) ..... end is join to x0,y0 ... How get shape who is additive this two shapes?
5
votes
1answer
111 views

change numbering when using \foreach to assign numbers for aid lines in a diagram

\documentclass[11pt]{article} \usepackage{xfrac, array, tabu, multirow, graphicx, setspace, dcolumn, tikz} \usepackage[fleqn]{mathtools} \usepackage[ngerman]{babel} \usepackage[applemac]{inputenc} ...
10
votes
3answers
263 views

Vertical cofibration arrow in xypic

I want to use xypic to make diagrams using vertical cofibration arrows, i.e. ones that look like $\rightarrowtail$. Naively using \ar@{>->} gives an arrow whose tail overlaps with the ...
5
votes
1answer
161 views

How to specify start and end date of \chronoperiode in a dd/mm/yyyy format

The package chronosys allows to draw a timeline with a reasonable degree of customization, without the need to draw it by yourself using tikz or similar tools. In my opinion, is the most promising ...
4
votes
1answer
834 views

Declare function for tikzpicture

I'd like to declare a function that will be part of the equation that I then want to plot. The equation that I want to plot is defined as \frac{e^{-rT}N'(d_{2})}{S\sigma\sqrt{T}} The function to ...
4
votes
1answer
308 views

What tool to make flow graphs in Linux?

SQLite documentation is very nice with graphs such as Any idea of what software can I use to do similar picture? It would be perfect if the images could be described textually, instead of drawing ...
2
votes
1answer
203 views

How to fix venn diagram

I would like to make a venn diagram with Tikz, but instead of labeling A, B or C each circle I'd like to give some other names. However, having read the manual I've changed their labels but each new ...
1
vote
0answers
177 views

Making Diagrams in TIKZ [closed]

I am making a diagram of a cellular reaction pathway and I'd like the chain of reactions to be surrounded by a large circle, which will of course be the cell membrane. For the life of me though, I ...
5
votes
1answer
654 views

Energy level diagrams with TeX

Do you have any experience with creating energy level diagrams with TeX as shown below ? What software/packages would you recommend me ? I've heard about TikZ, but I don't have any experience with ...
0
votes
1answer
411 views

How do you draw the next graphics examples of limits in LaTeX?

How do you draw the next graphics examples of limits in LaTeX?
8
votes
2answers
2k views

Positioning TikZ pictures

How do I position a TikZ picture relative to body text? I have drawn a circle using TikZ and would like to position it to the side of the body text (so it is easy to see as you're reading, but not in ...
9
votes
2answers
3k views

Histogram with Tikz

I am a newbie in TeX. And I need to use Tikz to make a copy of this histogram Of course, I am able to make something similar. Unfortunately, I need a replica (90%) of it. Can anybody help me? ...
2
votes
1answer
678 views

Display Database Instance Relationship with TikZ

I'm trying to display all of my corporate database instances and their relationship to each other, so to speak the database links. I found the geometry shape cylinder using TikZ ...
2
votes
1answer
139 views

Oval in picture environment has discontinuous corners

I am trying to create a rounded rectangle so I used the \oval command inside the picture environment but the corners do not connect and are of a different thickness. How can I fix this? MWE: ...
1
vote
0answers
26 views

Should labels in tikz / pgfplots / etc. have serifs? [duplicate]

By default, diagrams in tikz and pgfplots inherit the style of the surrounding document, which is a good thing. However, I've read that serifs are good for large bodies of printed text (the main text ...
5
votes
2answers
336 views

Problem bending arrows in xypic

I'm having an annoying problem bending an arrow with xypic. I read the part 2.8 of the manual (http://www-bcf.usc.edu/~cautis/tools/xypic.pdf‎) about bending arrows, but could not understand it. ...
7
votes
2answers
2k views

Four Node Commutative Diagram in LaTeX

I am quite new to LaTeX and I was curious if anyone knew how to make these sorts of diagrams. I saw one other picture on here but it was a three node diagram and I wasn't sure how to make LaTeX ...