{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
336 views

How to use latex commands to draw a flowchart

I have to write a flow chart given by figure below I have used the packages, \usepackage{tikz} \usetikzlibrary{shapes,arrows} But I couldn't get what I want. I hope some LaTeX experts here can ...
17
votes
4answers
722 views

Plot to illustrate secant lines

I am trying for teaching purpose to explain how basically linear regression might work and how it could be extended. Since I am not the TeXpert I fear that my idea might be tricky and more difficult ...
4
votes
4answers
1k views

How can I draw a chessboard missing two diagonally opposite corner squares?

How can I draw of a mutilated chessboard, i.e. missing two diagonally opposed corner squares? Using the chessboard package, I can only draw a full chessboard...
6
votes
1answer
203 views

Tikz diagram: nodes with arrows

I am trying to draw this diagram using tikz, but I am only beginner and have some problems mainly with drawing arrows in this way. I also want nodes with round corners. Anybody can help me?
6
votes
3answers
263 views

Matrix decomposition dimensions diagram

What's the easiest way of making diagrams depicting matrix dimensions such as the following? I can do it with simple subscripts, but I like the visual effect that these diagrams give.
2
votes
1answer
160 views

How do I make an unbalanced binary tree that branches off to the right?

An image of what I want: For those who are interested: This particular figure is taken from this article (I couldn't find a freely available version) and shows k-buckets (the squares) covering an ...
4
votes
6answers
265 views

Drawing ellipses with pict2e or the like

\usepackage{pict2e} \usepackage{pstricks-add} \usepackage{pst-node,pst-plot} \psset{plotpoints=9,unit=3} Somehow, acting on various people's advice, I've put the above lines of code above my ...
0
votes
0answers
54 views

Reconstructing this website's banner / heading?

I'd sometimes like to generate some desktop wallpapers; in particular, I'd like a design like this website's banner (bg-graph-top.png): Grayish vibe Bit of mathish 2D lines/surfaces Some fleuron art ...
3
votes
2answers
122 views

Strings and Harps to be drawn

I'd like to draw a picture similar to the hand-drawn one below: With labels $0$, $1$, $\Psi_{L,S}$, $a_1$, $\ell_i + 2\varepsilon$, $\Psi_{L,H}$, $b_1$, $-\varepsilon$, $1 + \varepsilon$, ...
2
votes
1answer
312 views

Control System diagram

I found an example of a control system with TikZ in http://www.texample.net/tikz/examples/control-system-principles/ . I wanted to adapt this example by removing the measurements node and keeping only ...
8
votes
2answers
409 views

Venn diagrams for fuzzy logic

I've seen a lot of code samples for producing Venn diagrams. I'm looking for a way to draw similar but different diagrams related to fuzzy logic (see the second row in the screenshot below). How could ...
0
votes
2answers
70 views

Missing elements in picture

\begin{figure}[h!] \centering \setlength{\unitlength}{0.1\textwidth} \begin{picture}(5,5) \put(4.17,3.5){$x$} \includegraphics[height=0.4\textwidth]{rys} \end{picture} \end{figure} ...
1
vote
3answers
72 views

How to do group of this equations?

Here (P1) denotes problem 1 and (P2) denotes problem 2. (D1) and (D2) denotes their relaxations. I want to pose the question whether the relaxations may or may not be equal. I am familiar with writing ...
6
votes
2answers
264 views

Line shown behind filled rectangle made with TikZ

I need to create a TikZ style that is a filled rectangle with a line crossing it. The problem I'm facing now is that when the rectangle is filled with a color, then the line is drawn behind the ...
3
votes
2answers
269 views

Hexagon composed of equilateral triangles

Here's a nifty question! I would like to create a similar diagram to the one below, but I do not have the slightest clue how. Latex is all very new to me but I have managed to use Tikz to scribe ...
3
votes
0answers
217 views

Draw a tRNA diagram

I am new to TeX. I want to draw a figure with many tRNA secondary structure Which packages to use to draw the tRNA itself? Are there any guides or tutorials?
5
votes
2answers
152 views

Tikz: How to display properly some linked nodes?

I have created the following diagram using Tikz, is there anyway to show it properly? (As it is, it is shown with all the nodes below the last one, so it is a mess) \documentclass{article} ...
1
vote
0answers
130 views

Drawing back to back stem and leaf diagrams? [closed]

I have drawn a back to back steam and leaf diagram but it looks messy. Is there a code I can use which would make it look professional?
6
votes
3answers
560 views

Draw a trapeze in left corner of the page

I want to do draw a trapeze in position in the left corner of the page (as shown on the picture below). How can I do that?
1
vote
2answers
147 views

tikz-cd package on MacTex

I just updated by TeXShop using TeX Live utility yesterday, but I still get this error. All I am doing is the standard routine \[\begin{tikzcd} 0 \arrow[hookrightarrow]{r} & ...
3
votes
1answer
101 views

visualize parallel operations

I have a small dataset of operations which I want to display. The operations each have a name, a start time and an end time (in milliseconds). For example: Operation 1: 0 to 3000 Operation ...
4
votes
3answers
268 views

specific Box Diagram with multiple arrows

I never did a box diagram before. I tried to build this diagram, but couldn't find a solution for these kind of arrows: Could someone tell me, how to perform this? Thank you in advance. \tikzset{ ...
1
vote
0answers
36 views

media9 and remote web image

Hi guys I need to put a remote image on a pdf. Such that if the remote picture changes then also the pdf when opened changes its content. I am trying to use media9 package but I am getting nowhere. ...
8
votes
2answers
157 views

Creating figures to show binary values

I'm working on a paper that deals heavily with floating point values, and I need to make figures to represent 32 bit binary values. The code below is what I came up with, and visually it is basically ...
2
votes
2answers
255 views

addplot3 [area plot] filling the wrong area

using some saved data, i use (The data file cane be download from pX.txt where the first column is the x and at each iteration, I plot the other columns with respect to the first column) ...
1
vote
0answers
32 views

Lines in epsfig have corners

I have a problem with epsfig. I want to draw some graphs. I created the picture with xfig and got the following code: \setlength{\unitlength}{4144sp}% % ...
5
votes
2answers
307 views

need inclusion arrow in commutative diagram

\documentclass[convert = false, tikz]{standalone} \usepackage{float} \begin{document} \begin{tikzpicture}[every node/.style={midway}] \matrix[column sep={4em,between origins}, row sep={2em}] at ...
2
votes
4answers
482 views

How to plot a bar graph of decaying values?

How would I draw a picture like this in tex? I'm not sure of the scaling ratio. I believe it can be arbitrary. i.e. As long as the length of $\ell_j$ is less than $\ell_i$, $\forall \, j>i$ ...
18
votes
7answers
2k views

Can anyone draw a chiasma in LaTeX?

I am trying to draw a two curved lines that form a chiasmata. I am imagining it would look like an 'X' that is composed of two CURVED lines such that it is wider than it is tall. I also want to ...
7
votes
1answer
403 views

drawing back propagation neural network

I would like to get this network eventually but so far after referring to this Diagram of an artificial neural network I still can't seem to back the feedback arrow. Help please Here is my attempts ...
5
votes
1answer
330 views

Background Picture

I am creating a presentation using the Beamer document class. I was wondering if it would be possible to have the same picture appear as a background of each slide. This is the image I am referring ...
6
votes
2answers
165 views

Draw dots at the beginning and at the end of an arrow with xypic

I want to draw the following figure : I have compiled with following code to get it : \documentclass{book} \usepackage[all]{xypic} \begin{document} $\xymatrix{\vdots && \vdots \\ ...
14
votes
5answers
683 views

Lines and circles are not visible. Why not?

I'm running TeXworks and MikTeX on Microsoft Windows and within a document I have the code you see below. Compiling results in a pdf file in which I can see the text within this picture but I can't ...
10
votes
1answer
255 views

Solid sphere with a cylindrical hole through center (bead shaped solid)

I am trying to draw a solid sphere with a cylindrical drilled through its center. The best I have been able to do is: which does not show it is solid. How do I make it more solid in appearance? ...
8
votes
2answers
2k views

How can I produce this tree diagram in LaTeX?

I want to create the tree diagram shown below in TeX code (with the Level 1... level 3 by the side of the tree diagram). Also, I would like to know how to just put bullet points under a box. For ...
6
votes
2answers
288 views

How to draw counter-ions using chemfig package?

For my thesis I need to draw this: With this code I could get everything except for the counter-ion (shown with red arrow, I do not need the red arrow and the line on the figure). ...
4
votes
1answer
109 views

creating a small cylinder within a larger cylinder

can someone provide me with some code, or insights, into how to create a diagram of a shaded cylinder within a cylinder? any typesetting system will do (please specify which one, though). is it also ...
38
votes
12answers
3k views

Drawing a Reuleaux Triangle

A Reuleaux triangle is a shape of constant width sort of like a rounded equilateral triangle. (Reuleaux triangle - Wikipedia, the free encyclopedia) It can be formed by the intersection of three ...
4
votes
1answer
555 views

Plotting 3D graphs in specified axial direction in tikz

I am a complete tikz noob and just taking snippets of examples to draw my first diagram. To get my head around orientations I am starting with the polarizing microscope example ...
1
vote
1answer
43 views

Is there any way to get something like pmatrix with customizable grid lines between cells? [duplicate]

In the document I have to describe a series of transformations, made with a matrix. Each transformation works only on 2x2 or 1x1 block, so I want to visually select this block in the matrix like this: ...
7
votes
2answers
312 views

Skew an Arrow in a Tikz Diagram

I am trying to draw an arrow in a Tikz diagram but I would like it to be skewed as shown below. I searched Google but couldn't find any info about how to skew objects in Tikz. Is such a thing ...
2
votes
3answers
317 views

How to draw parallel capacitor plates

I am trying to create a drawing of part of a circuit with 3D perspective like so: How can this be done? The main body of the capacitors has now been created in latex, all that remains is to create ...
2
votes
1answer
165 views

LaTeX table creation

I am new to LaTeX and really stuck in creating a table. A table created in Word is attached. Can someone help me create this table in LaTeX as it is? I tried, but couldn't connect the arrows and ...
4
votes
2answers
151 views

Centering asserts in struktogramm using struktex

I'm currently using struktex for generating structograms (Nassi–Shneiderman diagram). My source code looks as follows: \begin{struktogramm}(150,45) \assign{Do something} \ifthenelse{5}{5} {Make a ...
3
votes
1answer
138 views

Building a flowchart with PSTricks

I am building several flow-charts similar to this. They represent a procedure (algorithm) for dividing a triangle. Right now, I use the following code: \newcommand{\thetriangle}{ ...
0
votes
1answer
138 views

How to draw this figure with arrows

How can I draw the following figure
4
votes
1answer
107 views

LaTeX Stretching the x-axis of the graph

I asked this question on Reddit and they told me to come here. I'm wondering if there is a way to stretch my graph, because it is narrow horizontally. Here is a picture: \documentclass{article} ...
8
votes
1answer
262 views

Multiway trees like in Knuth's The Art of Computer Programming, Volume 3

I was wondering if anybody knows how to draw a multiway tree like in Knuth's The Art of Computer Programming, Volume 3 on page 484? This looks like a rounded box with the value of the keys being ...
300
votes
48answers
80k views

Nice scientific pictures show off

Task Show off your best scientific illustration ! The main purpose of this question is to share beautiful scientific pictures, preferably with an educational aspect. Content Your post must ...
3
votes
3answers
278 views

Make an exam format with a logo

I am trying to make a header of an exam page but with logo. Below is my code. \usepackage{graphicx} \begin{document} \firstpageheadrule \begin{figure}[] \includegraphics[width=20mm]{logo.png} ...