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

9
votes
2answers
501 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
267 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
408 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
643 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
420 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
495 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
563 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
404 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
240 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
553 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
169 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 ...
44
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
305 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
594 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
562 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
135 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
816 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
135 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
346 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
238 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
376 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
211 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, ...
6
votes
1answer
159 views

Problem with drawing thick line

With the solution posted here, I only changed a little (at line 17, I added [thick, ->] after \draw): \documentclass[tikz,border=2mm]{standalone} \begin{document} \begin{tikzpicture} [ ...
2
votes
1answer
566 views

Drawing a Neural Network architecture [duplicate]

I need to draw an image like this: I saw this and this, but I could not modify it properly. Basically, I could not write the on the labels. Need your help.
5
votes
1answer
144 views

Kiviat Diagram with scale always aligned to first axis

I'm using Kiviat Diagram to draw graphs, sample code for same is mentioned below: \begin{center} \psframebox*[fillcolor=white]{ \begin{pspicture}(-6,-5)(5,5) \psset{unit=1.2} ...
1
vote
1answer
302 views

Draw graph of XOR problem (Neural Network)

Here are the 2 images I need to draw in a Beamer presentation:
8
votes
2answers
205 views

tikz and limits

I don't really know how to explain what I want to do other than giving you the code I wrote : \varinjlim\limits_\cI \left( \begin{tikzpicture} \matrix (m) [matrix of math nodes,row ...
7
votes
1answer
462 views

Drawing Benzene resonance mechanism, and reaction mechanism + curly arrows

I am new to LaTeX and there are few things at which I am stuck. I can draw benzene with alternate double bonds but I don't know how to draw curly arrows to show bond shifting and electrophile attack. ...
2
votes
1answer
114 views

Scaling External Asymptote File within the Current Document

I have diagrams generated in Asymptote stored in external files. Is it possible to input the files into my current LaTeX document and to choose the scale factor within the current document? The ...
3
votes
2answers
2k views

LaTeX Flow Chart Path Problem [duplicate]

I have a flow chart that has all of the nodes that I want, there is just one path that I can't get. \begin{figure}[H] \begin{center} \tikzstyle{decision} = [diamond, draw, fill=blue!20, ...
3
votes
1answer
320 views

Creating Tic-Tac-Toe boards with LaTeX/TikZ

I am trying to create a diagram of tic-tac-toe boards similar to the one attached below. I cannot seem to find any documentation or examples on how to create these boards in LaTeX or TikZ. Does ...
107
votes
12answers
8k views

Can we make a love heart with LaTeX?

I understand that this post may cause some down votes because it seems a bit off-topic, but having seen the discussion on Christmas Tree with LaTeX I am still willing to try. My Girlfriend's birthday ...
7
votes
1answer
350 views

Veitch diagram draw with TikZ [duplicate]

How can I make the same diagram like this in LaTeX? I see that i could use package karnaugh but i don´t like placement of x.
2
votes
3answers
522 views

Needed tikz examples

I just drew this with GeoGebra, how to draw with tikz?
9
votes
1answer
351 views

TikZ - flowchart nodes alignment

I'm trying to code a flowchart and I'm almost there, but I can't get the nodes properly aligned. Lets say my flowchart has 3 columns: the nodes of the first are ok, but I need the nodes from 2nd and ...
2
votes
4answers
275 views

How to clip a rectangle with multiple shapes (circle)?

How to clip a rectangle with multiple shapes (circle)? I need to create a complex venn diagram and need to clip the outer rectangle in a shape that is combined with multiple circle. Not sure how to do ...
8
votes
1answer
321 views

3D arc in Asymptote

I constructed the technical figure embedded below. I wonder how to draw red arc to denote angle $\alpha$ between two blue vectors. (Actually, I add the desired output using Inkscape.) The Asymptote ...
6
votes
1answer
475 views

How to make hexagon diagram from Smart diagram package?

I know How to make a smart diagram from Smart Diagram Package, but "How to make hexagon diagram from Smart Diagram package" and How to change from bubble diagram to be hexagon diagram? like this : ...
3
votes
1answer
88 views

cannot draw graph with many nodes in latex

here is the latex code generated by a package \documentclass[11pt]{article} \usepackage{auto-pst-pdf,pstricks,pst-node,pst-tree,geometry} \usepackage{lscape} ...
7
votes
2answers
206 views

Fill area between two distinct curves

I have the following MWE in PSTricks: \documentclass{article} \usepackage{pstricks} \usepackage{pst-plot} \begin{document} \psset{xunit=2cm,yunit=1.5cm} \begin{pspicture}(80,-2)(120,2) ...
3
votes
2answers
270 views

Reliability block diagram

I've been trying to figure out how to draw a reliability block diagram and I've run into several good examples on how to draw diagrams. Here are a bunch: ...
2
votes
2answers
964 views

Drawing figures in LaTeX

Can I make the figure which I just posted here in LaTeX?
3
votes
1answer
162 views

draw complicated symmetric figure

I wish to draw a figure in PSTricks (a Paint-version is attached), consisting of three elements: Two identical objects, facing each other (they are they in the figure...) A red "parabola", ...
9
votes
3answers
309 views

How to draw a braid of long exact sequences

For example, in page 353 of Ranicki's book Algebraic and geometric surgery, there is a braid of long exact sequences like so: I use xy-pic. Thanks in advance!
9
votes
1answer
155 views

LaTeX typeset multiple comparisons

I originally asked this question on Stack Overflow, but was advised to also ask here... So, here goes! I'm teaching an applied stats course and was wondering whether anyone can advise me on how to ...
10
votes
1answer
328 views

Arrow with superscript in tikz-cd

I need my tikz-cd diagrams to have arrows (vertical and horizontal) that mimic \mapsto^* to match the relation in the text. The closest I've managed is to add a label {*} at [pos=1]: ...
6
votes
2answers
182 views

drawing figure to scale

I have a technical drawing of a mechanical setup which I would like to draw in either TikZ or PSTricks. My experience with these two packages is very limited. A "MWE" of the drawing is shown in the ...