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

39
votes
1answer
3k views

Plotting several 2d functions in a 3d graph

I am trying to reproduce a similar figure to the following one. My first guess was to use pgfplots but I didn't find any example that I could use as a starting point. At the moment I am unsure if ...
11
votes
3answers
525 views

Creating macros for common commutative diagrams in tikz

I am currently typesetting a document which requires many commutative diagrams of the same shape and construction, but with different labels at the vertices and edges. For example, I want a ...
1
vote
1answer
555 views

Help with drawing a picture (pgf/tikz)

I am interested on drawing (I suspect that using pgf/tikz is one of the easiest ways to accomplish this) a picture like the following one It is supposed to be a grid of the plane (I only care about ...
37
votes
2answers
17k views

Can you make chemical structure diagrams in LaTeX?

Can you create diagrams of chemical structures in LaTeX? Example(s) of "chemical structure diagrams":
4
votes
1answer
179 views

How can I move the arrow inside the commutative diagram into the centre?

I have the following diagram: \documentclass{article} \usepackage[all]{xy} \begin{document} \xymatrix@R.8pc@C.8pc{ F(Y) \ar[rr]^{E_{Y}} \ar[dd]_{F(f)} && F(Y) \ar[dd]^{F(f)} \\ & \mbox{...
3
votes
1answer
1k views

Introducing a (sub)node within a part of a split rectangle (with tikz-pgf, for displaying memory data structures)

I'm trying to put a node (or, say, a chain) within one of the nodeparts of a split rectangle shape. So far I've been unable to make it work. Essentially I'm trying to represent a simple data structure ...
0
votes
1answer
613 views

Commutative Diagram with Elements

I want to make a diagram that looks like the following:
6
votes
1answer
602 views

How to enclose terminal symbols within circles and/or nice oval boxes in a syntax diagram built using syntax.sty?

I hope you can help me again. I want to use the syntax package to build syntax diagrams, but I want to enclose non-terminal symbols in boxes and terminal symbols in circles or well-formed oval boxes (...
8
votes
3answers
840 views

Intersection of lines to draw a convex function

I'm trying to draw (in TikZ) a convex function f constructed as the minimum of the linear functions f1, f2, f3 and f4. To do that, my inclination is to use the intersections of said lines to find the ...
6
votes
2answers
5k views

Tools for tree diagram

I would like to make a simple scheme looking like tree diagram (structure like this or that). The problem is that all the packages I did try, could make nice binary trees with little information in ...
5
votes
1answer
1k views

moving label of arrow

How can I shift the F_{2}(f') label so that it isn't touching the arrow? \usepackage[all]{xy} \SelectTips{xy}{12} \[ \xymatrix{ A \ar@{<->}[rrrr]^{F_{1}(h' \circ g')} \ar@{<.>}[...
6
votes
1answer
684 views

Short diagonal arrows inside commutative diagram

I need to use the xy maths package (because I need to make it into a PNG file for Wordpress and mathurl.com accepts the xy template) to make a commutative diagram in which there are diagonal 4 shorter ...
6
votes
1answer
2k views

Turing Machine Figure

Just curious if anyone had a good recommendation for generating a Turing machine style image using perhaps TikZ or something else that would create an image similar to the one shown here. Any ...
3
votes
1answer
692 views

Where is mp.exe in MikTeX 2.9?

I am a a retired software engineer and a newbie on this site. Please execuse me for the naiveness in my question. I am using Windows, XP and Vista. Other OS's are not affordable to me for now. I used ...
3
votes
1answer
2k views

Feynmf doesn't produce feynman diagram at all in TXC

I am trying to draw a feynman diagram using feynmf in TXC. I use the following code \documentclass{article} \usepackage{feynmf} \begin{document} \unitlength = 1mm % determine the ...
2
votes
2answers
265 views

How to generate the movie DVD available sound systems symbols?

On the back every movie DVD I have seen there are bunnch of available sound systems characters, they look like a square (just the outside not solid filled) and a number of filled squares on various ...
7
votes
3answers
4k views

How to draw labeled parallel arrows in commutative diagram with TikZ?

I want to draw labeled parallel arrow in commutative diagram with TikZ, I searched on google and Tex Stackexchange, however, I found only the method to draw parallel arrow by transform canvas only, I ...
3
votes
4answers
13k views

Drawing a line between two points

The LaTeX line requirements are too restrictive (coprime and mag < 6). Is there any package that lets me just draw a line between two points? Basically \line(a,b)(c,d) or something similar I ...
4
votes
1answer
645 views

Creating definition of new shapes in PGF/TikZ

Can somebody help me out with declaring these shapes for nodes? : Need them as model for creation another shapes for symbols. Picked up those what I'm not able to define.Sorry there will be no MWE, ...
5
votes
2answers
7k views

How can I make a graph of a function?

I'm trying to implement a function to LaTeX but i don't know how. I'm compiling using this page: docs.latexlab.org
35
votes
2answers
11k views

How to draw a poset Hasse Diagram using TikZ?

I need to draw an Hasse Diagram using LaTeX. TikZ is the solution I would like to use. I tried with a simple structure involving trees but obviously when I need to join two nodes, it is not possible. ...
4
votes
1answer
524 views

How do I add a \vector to a table?

I am trying to make a table that shows how an element moves from location in the table to another. I would like to add a vector that starts at the first element and goes to the second element. How do ...
3
votes
2answers
443 views

How to join arrows within xymatrix?

I use xymatrix (\usepackage[all]{xy}) in order to create the following picture: \[ \xymatrix{A \ar@{-}[d] & B \\ \ar[r] & C} \] Is there any possibility to join the lines?
25
votes
2answers
3k views

Is there a way to compile tikz graphics outside a document?

As my document grows, so does the number of drawings. I am using PGF/TikZ and each drawing is what is enclosed between \begin{tikzpicture} and \end{tikzpicture}. Every time the document is compiled, ...
3
votes
1answer
498 views

Grid customized

I would like to build a grid such as the figure shown below where each grid point is surrounded by some of the two curves that describe below. First curve: an outline around the point forming a ...
6
votes
1answer
4k views

How to put the values of each bar in a pgfplots bar chart inside the bar itself?

I have this: \begin{tikzpicture} \begin{axis}[ ybar = 0.6, width=1.2\textwidth, height=0.4\textheight, enlarge x limits = 0.2, bar width=16pt, title={Instance els19 with 1\% max error}, legend style={...
0
votes
0answers
84 views

Is there a program that converts a drawing to latex? [duplicate]

Possible Duplicate: What GUI applications are there to assist in generating graphics for TeX? Is there an analogue of detexify for, say, pictures of curves intersecting? E.g., something that ...
34
votes
3answers
40k views

Drawing graphs in LaTeX

Is it possible to draw graphs like in image below in LaTeX? It doesn't have to look exactly the same. I need arrows with numbers and circles (or dots or other symbol) with text in it (or next to it).
5
votes
0answers
643 views

Creating a colored bar chart using MetaPost or pgfplots [closed]

Right now I have this: input graph input sarith beginfig(1) draw begingraph(3cm,2cm) gdata("data1.d", v, path p; augment p (v1,0); augment p (v1,v2); augment p (v1 Sadd ...
4
votes
0answers
1k views

Package for UML component diagrams? [closed]

Do you know any package to model component diagrams of UML? There are some packages like tikz-uml that support class diagrams or sequence diagrams, but I haven't found any for component diagrams. Any ...
2
votes
1answer
1k views

tikz-uml sequence diagram “Extra \or” error

I was compiling the following code which uses the tikz-uml package. \documentclass{article} %\usepackage{pgf} %\usepackage{tikz} \usepackage{tikz-uml} \begin{document} \begin{tikzpicture} \begin{...
10
votes
3answers
565 views

How to simplify a basic diagram

I am a beginner in Latex, trying to use it for an industrial document. I have tried to add a simple electrical diagram using the following code. However it is not easy for me to adjust the location of ...
2
votes
2answers
951 views

Process locking diagram in LaTeX

Does someone know if it is possible to reproduce something like this Diagram (found at this Website) in LaTeX, perhaps with Tikz? Or do I have to draw my diagrams in another program and import them ...
5
votes
1answer
1k views

How to have one straight arrows surrounded by two curved arrows (TikZ)

What is the best way to draw one arrow surrounded by two circular arrows (see image below). This is very easy to do when you have a small number of nodes, especially so when the arrows go from one ...
4
votes
1answer
836 views

Using TikZ along with picture environment

Please see my examples: picture After TikZ \documentclass{article} \usepackage{color} \usepackage{tikz} \usepackage[english]{babel} \begin{document} \begin{tikzpicture} \path (...
6
votes
1answer
2k views

Is there a library for drawing object inheritance trees in TikZ?

This seems like a very common thing, but searching for the words 'tree', 'language', 'object', 'inheritance' and/or 'parent' returns Questions that have nothing to do with mine. In a nutshell, I want ...
16
votes
2answers
8k views

Draw lines by specifying angles?

I'd like to be able to draw lines in LaTeX by specifying an angle, rather than specifying it like so \put(0,0){\line(2,1){3}} Is this possible? I've looked at tikz and tikz-euclid. I've even tried ...
2
votes
2answers
3k views

Consistent font size in EPS image that are scaled?

Assume that at creation time (of an EPS image) the final 'size' of the image is not known. However, this one EPS is used multiple times in different sizes within different documents. But the font size ...
3
votes
3answers
1k views

covering map arrow

I am trying to draw an arrow going down similar to these we usually see in topolgy books. For example, when we study covering spaces we usually put the covering space and then an arrow and then the ...
5
votes
2answers
1k views

ways to indicate commutativity and non-commutativity of a diagram when using xymatrix

I used the following code, but \circlearrowleft looks no good in this diagram. I would like to know if there is a better way to indicate the commutativity. Also, is there any way to indicate non-...
5
votes
3answers
1k views

What are some good graphing libraries/programs for embedding in LaTeX

The de-facto plotting program for LaTeX is, AFAIA, gnuplot. Is there such a program for drawing graphs/diagrams? I am aware of graphviz and at first glance it appears very useful, but it is missing ...
3
votes
1answer
724 views

Filling complex figures with color

I wonder if there is any method available in LaTeX to fill complex figures. There are few methods for filling figures: even-odd rule algorithm, winding number algorithm. According to these algorithms, ...
7
votes
3answers
956 views

Help on TikZ diagram

I'm very sorry about dull question, but I am totally confused by TikZ. Would anyone help me to draw following diagram, please? What I've done so far is as follows. \documentclass{article} \...
2
votes
2answers
453 views

Generating a diagram of labels with connecting lines

I need to generate a diagram showing relationships between points. I can convert my data into a simple syntax, such as this below (other forms of syntax is okay too): A (B, C) % A is connected to B ...
3
votes
2answers
1k views

Creating a rhombus in LaTeX

I want to build an E/R diagram in LaTeX such that there should be rhombus for representing the relations and squares for representing the entity sets. I dont want to import graphics in LaTeX i.e. ...
5
votes
2answers
1k views

Edit TikZ Chains to add labels and maintain the option to add individual styles

I find a code that redefines the way one defines a chain (\chainin), and allows one to include labels in the chains. However, this code disables the style options (by and with keyword). However, I ...
20
votes
3answers
5k views

Put a node behind another in a TikZ diagram

I want to place a node, that is kind of a note, behind another node. However, I need to put the reference node before the note, so I can place the note in a relative position to the reference node. So,...
7
votes
3answers
840 views

Creating stacked shapes for tikzstyle with

I'm working on a diagram, and I'm exploring TikZ for doing it. I searched, and looks like there is no easy way of doing diagrams, like pgfplots for plotting. So, I need to create some special node ...
9
votes
4answers
4k views

Neural Network representation

I would like to translate to Spanish a diagram that represents a neural network, the diagrama is something like this: I would like to clone the design and effects, so I need some examples to do ...
10
votes
1answer
329 views

Automatic conversion from picture commands to tikz-pgf

I'm trying to modify an old document with a bunch of images created using the picture/pict2e environment. The problem is that I need to improve these images, but adding some new features in those old ...