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

10
votes
2answers
2k views

inclusion arrow in TikZ

How can I give shape to some arrow in tikz, to draw the inclusion arrow? I read a similar question How to typeset inclusion arrow? with given answer, but the answer didn't really used tikz and I ...
11
votes
2answers
4k views

Labeled Number Line

I am transferring a professor's .doc files to LaTeX so that we can do more sophisticated formatting and I ran across a problem. I would like to recreate this number line in LaTeX. Help with which ...
2
votes
1answer
212 views

listplot and postscript

Is there a possibility with listplot to make lines from a point which is defined? Example... Fileinput: -0.013,0.471 0.044,-0.294 -0.069,0.446 0.025,-0.385 0.038,-0.448 0.073,-0.365 0.375,0.045 ...
3
votes
2answers
108 views

How to put a picture to the top right of a page?

I have written in TeX the following: \section{A} ... somethingA ... \begin{picture}(100, 100)(-250, -110) \includegraphics[scale=1]{face.png} \end{picture} \section{B} ... somethingB ... I have ...
2
votes
1answer
558 views

is it possible to include tikz picture from a file

I have a tikz picture in a tex file \begin{figure}[ht!] \begin{center} \resizebox{.4\textwidth}{!}{\begin{tikzpicture}[ .... \end{tikzpicture}} \end{center} \end{figure} The ... portion is quite ...
13
votes
1answer
1k views

Style question: serif or sans fonts in figure and chart text?

Question for you design-y types: I like to use a serif font for all my text (title, headings, body). What I'd like to know is whether you think that I should go with a serif or sans serif for text in ...
12
votes
2answers
1k views

Using Tikz to draw a Hash Table

I need to try to replicate a similar structure to this but am a novice when it comes to tikz. I'm not sure whether to use chains, explicit node positioning, etc. And, in my experience of drawing ...
2
votes
2answers
230 views

Multicolumn and graphics

If you try to comment what i have marked you will see the heading picture step one page back respect the title why? Here is the picture. The code is from this post. \documentclass[% ...
3
votes
1answer
93 views

How to put some special diagram in the subscript of a letter?

I'm a newer by using Latex. I don't know how to code the following equation. Can you give me some helpful suggestions? _____ ______ | | |___ |____ ...
4
votes
2answers
293 views

How to shift arrow in diagram

I need to shift this diagonal arrow (in bottom box) down. \xymatrix@R.8pc@C.8pc{ \bullet \ar[rrr]^{i'^{!}} \ar[ddd]_{Th(\Omega_{f'})} &&& \bullet \ar[ddd]^{Th(\Omega_{f})} \\ ...
1
vote
1answer
1k views

Commutative diagram with curved arrows, colour, and changing the style of arrows

I am using xy matrix and I would to curve an arrow over other arrows in a diagram, at the same time as setting some of these curved arrows to equal and changing their colour. This is what I have so ...
15
votes
1answer
1k views

Waterfall Chart

For displaying the total effect of a series of values, a waterfall chart can be useful. For example this chart, taken from The Economist, illustrates estimated efficiency potentials in the UK public ...
3
votes
1answer
626 views

Adjust spacing between specific rows with \xymatrix

I have the following diagram: \[ \xymatrix @!=1pc { & Z \ar@{.>}[d]^{\exists!h} \ar@/_1.2pc/[ddl]_{p'} \ar@/^1.2pc/[ddr]^{q'} & \\ & X \times_S Y \ar[dl]_p\ar[dr]^q & \\ X ...
3
votes
1answer
220 views

OpenType, extensible arrows, and diagrams

Does the OpenType font format provide support for extensible arrows (as in \xrightarrow)? If so, is it true that it would be unicode-math's job to make this functionality available in TeX? This ...
4
votes
0answers
259 views

Triangulated Toruses in Sketch [closed]

I want to be able to use sketch to generate an image like this: I am able to get the torus okay using nested sweeps as demonstrated in the tutorial, but my attempts to draw the diagonals using ...
1
vote
0answers
531 views

Draw set mapping diagrams [closed]

I'm trying to draw some set mapping diagrams with LaTeX. Do you know any packages that can do this? I tried searching online but I couldn't find anything useful.
16
votes
3answers
9k views

Is there any way to type LaTeX code directly into the text boxes Inkscape?

I use Inkscape on Windows 7 platform. The principle to enter integrals and other mathematical symbols in Inkscape seems that the best thing to do and write them in a LaTeX compiler and cut them in ...
3
votes
1answer
197 views

Objects in Commutative Diagram DCpic

I have the diagram of the folllowing form: \begindc \obj(1,1){$A$} \obj(3,1){$B$} \obj(3,3){$C$} \mor(1,1)(3,1) {$f$ }[\atright,\solidarrow] \mor(1,1)(3,3) {$g$ } \mor(3,1)(3,3) {$h$ ...
1
vote
1answer
390 views

Adding tikzpicture layers that can be viewed sequentially in the output (Motzkin graphs)

In a Beamer presentation it's possible to add elements to a tikzfigure on a page sequentially so that the viewer doesn't have to take in all of the complexity at once. You cannot use the Beamer ...
3
votes
1answer
120 views

Errors when trying to draw a commutative diagram using an xymatrix

Why is the following code not compiling? \[ \xymatrix{ A \ar[rd]^{g \circ f} \ar[r]^f & B \ar[d]^g\\ C} \] I'm trying to get a commutative diagram with 3 objects (A, B and C) ...
7
votes
1answer
531 views

How to create a symbol for LMB (left mouse clicking) or RMB (right mouse clicking) in LaTeX?

I'm searching now since 2 weeks for a LMB (left mouse click) or RMB (right mouse click) symbol in LaTeX. I saw it once in a manual, but I couldn't find it any more... Now I want to write a manual and ...
6
votes
1answer
447 views

TikZ picture overlaps with text (not wanted)

I am new to TikZ and I can't explain the following behavior when I compile this (with pdflatex or lualatex): \documentclass[ fontsize=12pt, DIV=calc, %draft, %parskip=half, ...
2
votes
0answers
165 views

What is most effecient way to draw a graph in LaTeX? [duplicate]

Possible Duplicate: LaTeX for Graph Theory? For the first time, I was going to draw a graph in LaTeX. (I was intended for a graph similar to the following) Graph Theory is an important ...
5
votes
1answer
214 views

Intercalate pictures and items in beamer presentations

I'm preparing a presentation in which I'd like to have pictures in a new slide between \items. The final result should look like: Slide 1: I want to discuss: 1) Cars Slide 2: [Picture of a car] ...
4
votes
2answers
602 views

Kiviat diagram with axis labeled and different sizes

I am trying to use the package tkz-kiviat to draw a kiviat. The following example produces the image below: \documentclass[]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
2
votes
0answers
278 views

Drawing to indicate algorithms [closed]

I'm looking for one good drawing so as to symbolise algorithms. The idea is to use this drawing like one symbolic icon. Have you some ideas ?
5
votes
1answer
374 views

commutative diagram having drawings as objects

I need to draw a commutative diagram having drawings as objects, like in this link which is also shown below. I have some problems: xy-pic "slants" the objects; "matrix" library in TiKZ is not ...
0
votes
1answer
786 views

How to draw a diagram for packets scheduling in networks or task scheduling?

I would like to draw a diagram for packets scheduling in networks similar to the this one: The same type of diagram (or very similar) can be used also for tasks scheduling. Can you please indicate ...
6
votes
1answer
433 views

How can I vertically align the labels in a tikz diagram

I have drawn the above diagram with diagonal arrows in TikZ, but the labels look like they have been placed on a curve instead of next to each other. I think I understand why they are placed like ...
21
votes
4answers
5k views

Is there a way to control whitespace around a TikZ picture?

When I draw a tikzpicture that includes paths, I get quite a bit of extra whitespace added around the elements of the picture. Depending on the elements the figure contains, this can work out in some ...
5
votes
2answers
1k views

How can I make labels (or other elements) rotate with a node using TikZ?

Is there a way to get label text to rotate with the TikZ node to which it is attached. I can rotate the node and its text; but labels do not rotate along with the node, and instead remain "level": ...
9
votes
2answers
1k views

Can't draw a commutative diagram

I'm trying to draw a commutative diagram using xymatrix: $\xymatrix{ S \ar@[ld]^{\pi_{i}} \ar@[rd]^{\pi_{j}}\\ R_{i} \ar[r]_{\mu_{ji}} & R_{j} }$ without any luck. Any idea? EDIT: I'm trying ...
8
votes
3answers
2k views

Surface plot with coordinates in pgf

Is it possible to draw a three dimensional surface using coordinates instead of formulas? MWE so far: \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} ...
9
votes
3answers
848 views

What are some good examples of LaTeX Cayley diagrams?

I'm looking for some good examples of LaTeX code used to generate basic Cayley diagrams like this one: Ideally, I'd like for the examples to make it fairly clear how to modify or remove various ...
7
votes
2answers
602 views

Is there a combination of LaTeX gnuplot flowchart?

I know this is not always a good idea, but I think it might be a good idea in some situation. Is there an improved LaTeX version or something, can have the gnuplot scripts inside of the LaTeX file, ...
4
votes
1answer
920 views

Questions on Xfig

I was trying to use Xfig software to draw pictures, but I am running into trouble in the following cases. I have three really quick and technical questions: I see there are options for drawing an ...
23
votes
1answer
956 views

How to produce John Kruschke's Bayesian model diagrams using TikZ or similar tools?

In a May 2012 blogpost John Kruschke discusses how he prefers his diagram conventions for representing bayesian models to the traditional approach. You can see an example of his approach in the ...
1
vote
1answer
324 views

How to make self-refering arrow with xydigram in a box

I'm trying to make a nice state diagram with some arrows I cannot find a way to make the arrows pointing to the same state: in my case, I would like a self-refering arrow to altcache I'm not fixed ...
1
vote
0answers
160 views

What is / are the softwares to use to draw surfaces of the form of a two or three-holed torus , or torus, or torus with cusps attached to it? [duplicate]

Possible Duplicate: Topological Quantum Field Theory diagrams with pstricks or tikz I am trying to draw surfaces with complete hyperbolic structures and surfaces which are topologically ...
1
vote
4answers
3k views

How to draw a boolean circuit diagram in circuitikz?

How would I draw this image: using circuitikz? What I have so far is \begin{circuitikz} \draw (0,2) node[and port] (myand) {} (2,1) node[or port] (myor) {} (myand.in 1) node[anchor=east] {A} ...
4
votes
1answer
4k views

Block Diagrams in TikZ

for my thesis i need to put some block diagrams in my LaTeX document. I was recommended to use TikZ for that. This is the only sample code i could find. Do you guys maybe have some tutorials / doc ...
19
votes
3answers
1k views

Amoeba shape with TikZ

I would like to draw generic amoeba-like shapes with TikZ and don't really want to think too deeply about its boundary. Basically a closed connected set with smooth locally convex boundaries. Any ...
6
votes
3answers
467 views

How would I trace a pixelated graphic for my thesis?

I am writing a thesis with MS Word about drug delivery and I have a graphic that is a bit pixelated (so says the professor). I heard that TeX is a good thing to learn for this and I was wondering if ...
9
votes
2answers
701 views

Step-pyramid in LaTeX

How can I generate a step-pyramid in LaTeX? I'm guessing I would use a graph module to centre chart bars... I want to be able to select the length of each "row" of the pyramid, and show that number ...
1
vote
1answer
259 views

Softwares for drawing hyperbolic surfaces , closed, with boundaries or with punctures?

In a paper I am in the process of writing in LaTeX, I need to draw and incorporate some diagrams of hyperbolic surfaces in my LaTeX document. Is there any software I can use to draw hyperbolic ...
37
votes
1answer
2k 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
420 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
434 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 ...
32
votes
2answers
9k 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
148 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)} \\ & ...