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

How to place two boxes on the same line?

I need to place two different boxes on the same line with the word 'and' separating them, if anyone could help it would be much appreciated, thanks. Something like this:
1
vote
2answers
204 views

Can some one help to draw this graph?

I am pretty new to Latex graphics I would like to aks whether the Latex could draw this picture? The function I used is : $ f(x)=\left\{ \begin{array}{ll} (x-5)^3-3(x-5)^2-18(x-5)+40 & 1\...
1
vote
0answers
62 views

Diagram for composite of a function in Latex [closed]

Can somebody help me generate a latex code for this pic.
0
votes
1answer
47 views

Doing a diagram with tikz

I'm trying to do a diagram. In this code, the diagonal lines have a good size, but i don't know how to make the horizontal lines bigger. Thanks for your advices! \begin{tikzcd}[every arrow/.append ...
1
vote
0answers
117 views

How to define a graphic [closed]

I'm new in LaTex. I need to draw a graphic like the image and each rectangles of image must have the size shown in Figure. I drwan it by MS power point but I need to do by LaTex. Can you help me? ...
4
votes
1answer
76 views

Help with further TeXing

I wanted to recreate a diagram in LaTeX, so I did my best and created something with matrices. I am really content, but I still don't have the arrows with 'reële nulpunten' and 'complexe nulpunten' ...
3
votes
1answer
117 views

How do I use piechartmp to make pie charts with Metapost?

This is my MetaPost input file: prologues := 3 ; outputformat := "%j-%c.eps" ; input piechartmp; beginfig(1); SetupColors((0.7, 0.7), this, this) ; SetupPercent(this, "%") ; Segment(64, "acc"...
0
votes
1answer
61 views

What would be a good way to make a TikZ picture composed of lines, dots and cones?

I want to make a diagram like this: It features lines, dots and 3D cones. I'd also like it to feature a little "explosion" icon and text labels. I have seen some examples of how to make 3D cones (...
2
votes
1answer
45 views

Converting pictex to eps

I have a very old pictex code which I used more than 20 years ago with plain tex. Is there a sensible way to convert it to vector graphics (eps)? EDIT: the sample code \input pictex $$ \...
2
votes
2answers
276 views

How to make curved springs (coils) in tikz, for a mechanics problem

Is there anyway using say tikz (preferred, or pstricks would be OK too) to make curved coils? Essentially I want to make beads on a circular wire that are joined by springs. Here are the images I ...
2
votes
2answers
200 views

Square Edge and Horizontal Tree Diagramm with forest

I am basically trying to re-create the Aves Cladogram as illustrated in this wikipedia page. After trying to use Newicktree package for a while, I decided to migrate to forest. I am trying to make ...
2
votes
2answers
212 views

Draw a lightning bolt between two given points in tikz?

I need to draw a lightning bolt which starts at a point and its sharp edge ending at another point. For instance, let me define the points \documentclass[tikz,border=5mm]{standalone} \usetikzlibrary{...
3
votes
1answer
235 views

How can I draw an empty plot?

How can I draw an empty plot, so I can print it and draw the input manually? I just want the X and Y axes. I want a time on the X-axis (07:00-22:00) and an Integer (0-10) on the Y-axis, but all I ...
4
votes
1answer
117 views

Problem with vectors (tikz)

I have to draw these vectors, with the grid and also a grid (like the picture). I've searched online but I can't solve my problem. Can you help me? \documentclass[a4paper]{minimal} \usepackage[...
2
votes
1answer
115 views

Feynman diagrams with feynarts

I'm trying to draw Feynman diagrams with the feynarts.sty package for LaTex. The problem is that if I write the following code: \begin{feynartspicture}(150,150)(1,1) \FADiagram{} \FAProp(0.,10.)...
6
votes
2answers
167 views

TikZ: drawing balancing diagrams like SolveMe Mobiles

I want to draw a diagram like this: In general, the diagrams in SolveMe Mobiles (section Play) I suppose I can do with raw code, but I want to do with custom command like: "make horizontal line", "...
1
vote
2answers
152 views

creating diagrams with dots and connections in TikZ

I'm a newcomer to TikZ, but figure it's the easiest way to draw and include several of the following diagrams below in LaTeX. What code will generate the above diagrams? (Obviously not the text or ...
3
votes
1answer
59 views

Tex Add nodestyle

Is it possible to use different node styles with my "syntax" of defining the nodes (using [. ]). \documentclass[landscape]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[...
1
vote
1answer
43 views

I want the text to continue right after the second figure

I am writing an organic lab report, and latex is preventing me from writing my results section right after my second figure. Instead, it starts the results section on the next page. Also, I would ...
5
votes
1answer
116 views

Adding elements on the surfaces of a cubic diagram

Thanks to this answer here; I can draw a nice cubic diagram as bellow: with the following code: \documentclass{standalone} \usepackage{tikz-cd} \begin{document} \begin{tikzcd}[ row ...
3
votes
1answer
149 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
342 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
94 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
60 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
311 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
113 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
163 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
197 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
114 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
290 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
133 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
90 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
273 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
410 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
207 views

How can I create vertical bars showing a field extension?

Specifically, I would like to create something like this:
0
votes
2answers
341 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
184 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
144 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
97 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
88 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
252 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
100 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
909 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
216 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
130 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
636 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
78 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
125 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 ...