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

Pretty printing DTDs (Document Type Declaration)

I want to include a didactic, compact view of a DTD (Document Type Declaration) in my texts. DTDs are used to define the set of tags and attributes of a XML/SGML document -- some sort of a grammar of ...
5
votes
1answer
316 views

Drawing Markov Decision Processes with Tikz

I thought this would be much easier. I am trying to recreate the standard MDP graph that is basically the same as a Markov Chain (I know a lot of posts about that) but with the addition of lines that ...
3
votes
1answer
93 views

The diagram in ConTeXt remains invisible

I found nice examples of Metapost, http://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html. When I use the example number 270, the pdf only contains a page number. Question: what I am doing ...
-1
votes
1answer
55 views

It is necessary to construct a vector diagram when a known angle relative to the horizontal axis and the length of the vector

Willing to construct a phasor diagram which consists of 2 vectors and one vector sum. An example is shown below.
1
vote
0answers
280 views

Want to Draw basic geometric figures in Latex [closed]

I have been learning latex for few month. In-fact beginners in latex. I want to draw some geometry figures for (examples given below) in latex. I came to know that it is possible by Tikz , pstricks ...
2
votes
1answer
110 views

Draw a curve in TikZ with hairs growing on one side

I would like to be able to draw tikz pictures that generalize the following one: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) to (1,0); \foreach \n ...
2
votes
1answer
154 views

3D view of 2D scatterplot

I have a scatter plot but I want to make a 3D plot where the points will be still in the XY plane but there will be a line over every point which will have different values for different (x,y) point. ...
-1
votes
2answers
186 views

Creating branch-and-bound

I want to create a graph like the one I give below! I think I should use forest package but it does not allow me (or I could not do it) to put explanations near each branch, like "solve as continuous ...
3
votes
1answer
103 views

Modify nodes near coords with \if

I would like to code something like this: if \thecitation is {This work} then nodes near coords={\thenumber{} [This work]} and plot color is Red else nodes near coords={\thenumber{} \cite{\...
3
votes
4answers
285 views

minimal looking chapter dependency wheel

I want to generate a very simple looking chapter dependency figure, something like the image below. Could someone point me in the right direction of how to do thism or what package generated this oen ...
2
votes
1answer
128 views

How to make non nested diagram in LaTeX

I am trying to draw a diagram in LaTeX but there is a problem which is I needed to made many lines to go to a specific output (Result), but they do a nested output.. look at the diagram that I have ...
2
votes
1answer
82 views

Picture environment and the \circle*'s diameter greater than 5

I've been reading this tutorial on wikibooks. They've shown a way to create the disks: \setlength{\unitlength}{1mm} \begin{picture}(60, 40) \put(15,10){\circle*{1}} \put(20,10){\circle*{2}} \put(25,...
5
votes
2answers
261 views

Tikz: Finding the middle of a line (relative positioning)

I started to draw some simple points and curves in a tikzpicture. But I am not sure if it's the best idea to use specific coordinates anymore. In this case I have to make up some linear function as ...
4
votes
0answers
372 views

Creating a timeline

I am working on my thesis and need to create a timeline similar to this: I tried Chronosys package but am not sure if this is a good choice. \documentclass{article} \usepackage{chronosys} \begin{...
5
votes
3answers
192 views

How can I create vertical bars showing a field extension?

Specifically, I would like to create something like this:
0
votes
2answers
306 views

What is the closest solution to Microsoft Visio with Latex text?

I'd like to have a program where I can model diagrams like in Microsoft Visio and write math formulas in Latex on it. It would be nice to see the rendered formulas (which can be edited in some way, i....
3
votes
1answer
176 views

How to: Lorenz curve (TikZ)

I would like to draw several Lorenz curves. I don't have concrete data point but have to illustrate in each case some general aspect of the concept. Compare e.g. Lorenz crossing: It's not that ...
2
votes
1answer
44 views

htlatex crops too much for picture environment

I use htlatex to convert a large latex file to html pages. All works with one exception. Anything drawn in the picture environment gets cropped. I have isolated the problem in the code example below. ...
5
votes
2answers
140 views

Create tangent lines at set intervals along rotated ellipse

I'm trying to draw tangent lines to a rotated ellipse at a small interval, but I'm not sure what the best way to do this. I could just get the slopes from Wolfram Alpha, but I'd rather not hardcode ...
0
votes
0answers
96 views

Which package can I use to draw this diagram?

I wan to draw this digram below with latex which package can I use to draw it? ]1
1
vote
1answer
87 views

Query regarding Graphics by latex

Hi I am beginner in Latex, my question is that, Is it possible to draw figures given in file by using latex?
3
votes
1answer
244 views

Beginning a Simple Latex Diagram with Squares and Arrows

I'm not sure if this is an acceptable kind of question, but figured I'd give it a shot. I'm trying to replicate a basic diagram using LaTeX (as this one is bad quality), but I'm having trouble ...
1
vote
0answers
99 views

Plumbing Diagrams in Latex

How do I make a diagram like this: using latex?
2
votes
1answer
63 views

Display a lot of variables in a 2D Diagram

I have a table with values like this: --------------------------------- | Function | Dimension | Result | --------------------------------- | 1 | 1 | 15% | --------------------------...
5
votes
3answers
850 views

Smart Art flow diagram?

How to make a horizontal flow diagram in latex like: If posible i would like some colors in it. Thank you
4
votes
4answers
212 views

How to draw this region

Any idea how to draw this using Latex. Having difficulties with the shaded region. \begin{figure}[h] \begin{tikzpicture} \tkzInit[xmax=6,ymax=6,xmin=-6,ymin=-6] \tkzAxeXY \draw[ thick,...
4
votes
2answers
119 views

Adjust the distance between one pair of blocks in block diagram

I want to move only the second block near to the third block so that variables between first and second block are clearly seen. Other parts of block diagram should be kept the same. I have attached ...
31
votes
2answers
627 views

drawing patterns based on prime factorization

can someone help me generate code to type the diagram for any given natural number based on its prime factorization such as these diagrams consider the next number 36 and its prime factorization, $36=...
1
vote
1answer
73 views

Question marks when I use rail package

I'm trying to compile syntax diagrams with the rail package, but all diagrams, no matter how large, come out like the following screenshot, a single rounded box with three question marks in it. ...
2
votes
1answer
118 views

How may I put labels on the corners/vertices of a cube?

I have a cube as per the answer to my question How may I put arrows along some edges of a cube?. Now I want to label the 8 corners/vertices with labels like $\mathbf{O}\lnot \lmathbf{B}\lnot q$.How ...
1
vote
1answer
60 views

How may I put arrows along some edges of a cube?

I want to put some arrows along some edges of a cube such as in the answer I accepted for the following question: How may I color four sides of a cube?. How can this best be done? Here are the arrows ...
2
votes
0answers
103 views

Word Cloud - Searchable (no images) for research keywords

I am trying to create a word cloud with LaTex for my research keywords. I would like to make it searchable (thus not an image) and to make sure that LaTex does not divide my research keywords (which ...
4
votes
3answers
421 views

Draw uniform lines/grid on a distorted square/axes?

I want to draw a square discretised by equally spaced lines. However, if I move one of the nodes, say node 4, the grid lines will keep it's relative spacing (see the image). I have no idea what to ...
0
votes
2answers
163 views

How may I color four sides of a cube?

I want to color four sides of a cube for an illustration. Let the corners of the cube be designated by the eight Cartesian coordinates $(0,0,0)$, $(0,0,1)$, $(0,1,0)$, $(0,1,1)$, $(1,0,0)$, $(1,0,1)$, ...
1
vote
1answer
150 views

How to draw longitude lines on sphere

Here is what I have so far: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \fill[ball color=blue!20] (0,0) circle (1.5 cm); \newcommand\longitude[1]{% \draw (#1:1.5) ...
0
votes
0answers
37 views

How to remove horizontal grid from sphere pspicture

Here is what I have so far: \documentclass{amsart} \usepackage{pst-solides3d} \begin{document} \psset{Decran=20,viewpoint=40 20 20 rtp2xyz,lightsrc=viewpoint,action=draw**, fillcolor=blue!...
3
votes
3answers
213 views

Tikz Flowchart nodes needed refinement

I made the following diagram in Tikz. MWE is given below and it needs some refinement for nodes where they split into two arrows. Any help will be highly appreciated. Thanks \documentclass{...
22
votes
2answers
1k views

How to make these boxes?

I don't know how exactly to call what I want to implement. It's like a box surrounded with a line and, depending on the context, I want to place a graphic on the right corner e.g. a light bulb or a ...
5
votes
3answers
288 views

Drawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawing

I'd like to draw a rectilinear path by starting at a particular location, and then prescribing increments in the horizontal and vertical directions. I am currently doing something like this \...
2
votes
3answers
246 views

Litte diagram in LaTeX

I would like to draw the following diagram in my text: How could I proceed?
3
votes
2answers
122 views

Diagram in Latex

Could anyone help me with the code in Latex to reproduce the diagram attached figure. Already thanks!
5
votes
1answer
483 views

Block diagram with Tikz

It's the first time I'm using Tikz on Latex. I have to draw this block diagram (this is a low resolution snip from a paper) In Tikz I have done this: That is very similar but I need some ...
2
votes
3answers
289 views

Illustrate transitions between states in Markov chain

How can I make a diagram like this to illustrate state transition probabilities?
2
votes
0answers
59 views

Draw sign lines with function expressions? [duplicate]

I am trying to draw a sign line like the one in the image in LaTeX. How can I do this?
1
vote
1answer
238 views

Drawing a block diagram in Tikz

I would really like to create multiple variations on the image attached. Even a basic template to get me started would be great.
2
votes
1answer
134 views

Overlay text on an image

I'm trying to create an image with some text overlaid, similar to the below example. I'm struggling to find something that works, and supports all the formatting I want to include. Essentially the ...
7
votes
3answers
197 views

Bent arrow in a diagram

I'm wondering how one would do a diagram like this one: I don't know how to make the bent arrows and I would also like to have the text (in this case "...") in the middle of the arrow. Here is a ...
2
votes
2answers
146 views

Tikzcd diagrams vs. amscd

I am a bit new to tikz environment, but following the advices of the good experts of this site I am trying to replace all my commutative diagrams built with the amscd package with ones built with the ...
3
votes
1answer
74 views

Vertically center elements in rows of array

In the following table, I would like to center the Venn diagrams vertically. Here is a MWE showing my diagrams aligned "top": \documentclass[letterpaper,10pt,american]{article} \usepackage[left=1 in, ...
15
votes
4answers
1k views

Generate all 16 possible 2-variable shaded Venn diagrams in TikZ?

Let P and Q be two statements, each with 2 possible truth values: true (T) or false (F). These component statements P and Q can be joined by 16 possible binary connectives to form 16 unique simple ...