# Tag Info

2

Just a simple way, easy to adapt, (but the lines or not dashed). \documentclass{article} \usepackage{tkz-euclide} \begin{document} \begin{tikzpicture} \tkzInit[xmin=-5,xmax=5,ymin=-5,ymax=5] \tkzGrid[sub,color=gray, subxstep=.5,subystep=.5] \tkzAxeXY[very thick] \tkzGrid \end{tikzpicture} \end{document}

1

Here is a short solution with pstricks. Loading auto-pst-pdf, you can compile with pdflatex, if you use the --enable-write18' switch for MiKTeX,shell-escapefor TeX Live or MacTeX. Alternatively you can compile directly withxelatex`: \documentclass[a4paper, 11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}% \usepackage{lmodern} \usepackage[...

0

With some colour (and names): \documentclass[x11names, border=3pt]{standalone} \usepackage{pstricks-add} \usepackage{auto-pst-pdf} \begin{document} \begin{pspicture*}(-2.5,-2)(5,4) \psset{algebraic, arrowinset=0.125, arrowsize=3pt, linejoin=1} \psaxes[linecolor=OrangeRed2!80, ticks=none, labels=none, arrows=-](0,0)(-2.5,-2)(5,4) [$x$,-135] [$y$,-135] \...

0

\documentclass{article} \usepackage{pst-plot} \begin{document} \begin{pspicture}(-2,-2)(6,5) \psaxes[labels=none,ticks=none]{->}(0,0)(-2,-2)(6,5) \psplot[linewidth=1.5pt,algebraic,yMaxValue=4.5]{0.1}{5.5}{1/x} \end{pspicture} \end{document}

4

This isn't hugely difficult, and the pictures use nothing that isn't obviously in the manual: \documentclass[varwidth,border=5]{standalone} \usepackage{tikz} \tikzset{ball/.style={shape=circle, shading=ball, ball color=blue!50!cyan!50, minimum size=0.375cm}} \begin{document} \centering \begin{tikzpicture} \draw circle [radius=1]; \foreach \i in {0,...,7} ...

3

Let convert comments to an answer: Logic for positioning nodes, labels is the same as it is at naming of horizon's sides. For example: always we say south west (synonym for below left) and newer west south (= left below) ... Regarding your MWE: see if the following more concise code of your MWE is useful to you: \documentclass{article} \usepackage{amsmath,...

2

You can use groupplots library for pgfplots to form a grid of subplots. Then you can use the options area style to fill the area under a graph and const plot to draw the zigzag line easier. \documentclass{beamer} \usepackage{pgfplots} \usepgfplotslibrary{groupplots} \usepackage[tightpage,active]{preview} \PreviewEnvironment{tikzpicture} \begin{document} \...

1

The Tikz package (https://www.sharelatex.com/learn/TikZ_package) would appear to be sufficiently powerful to do what you request. Also, Ryan Reich appears to have written a package (http://www.ryancreich.info/index.php?page=latex&subpage=string_diagrams) on top of Tikz specifically for string diagrams. I have not tried this approach, but the link is ...

3

I have edited a little bit on the code given by @Claudio. and I came up with this solution. \documentclass[10pt]{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \draw[->, thick](0,0)--node[below]{$Tails(x)$}(5,0) ; \draw[->, thick](0,0)--node[left]{$Heads(y)$}(0,5); \draw[- ] (4,0)node[below]{$(n,0)$}--(0,4) ...

1

Your comment is almost a solution. You might want to use axis lines=middle to match the sketch from your question. \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[axis lines=middle, xlabel=$\mathrm{Tails}(x)$, ylabel=$\mathrm{Heads}(y)$, domain=0:15,no marks] \addplot {-x + 10}; \...

8

Here's a version in Metapost using a variation of my slightly clunky implementation of Poisson Disc Sampling. Please forgive the length of the code. If anything is unclear, please comment and I'll add some explanation. The reference for the algorithm that I used is https://www.jasondavies.com/poisson-disc/ . prologues := 3; outputtemplate := "%j%c....

10

This is a nice job for JLDiaz's Poisson disk sampling algorithm, because that's a more "pleasant looking" distribution than independently distributed points. Inclusion \documentclass{article} \usepackage{tikz} \usepackage{poisson} \begin{document} \edef\mylist{\poissonpointslist{5}{5}{0.3}{20}} % Generate a 5x5 field of points \begin{tikzpicture} \...

8

Here is a solution using Tikz also. I have separated it in four files. The idea is the same in all figures. I start with random positions and then decide the color of the circle depending on its distance from origin. Circles on the borders are not printed. Inclusion: \documentclass[tikz,border=5]{standalone} \begin{document} \begin{tikzpicture}[x=1pt,y=1pt,...

11

You can do that with the \psRandom command from pstricks-add, which distributes random points within a rectangular frame (defined by the coordinates of opposite vertices) and clips these points within an arbitrary closed curve. \documentclass[x11names, border=3pt]{standalone} \usepackage{pstricks-add} \usepackage{auto-pst-pdf} \begin{document} \begin{...

0

Simplical complexes of Betti Diagrams with Tikz I suggest the primitives coordinate, node and draw instead of doing everything with draw and node. First of Example 1 demonstrate the former while Second of Example 1 demonstrate the latter. The colored area can be done with primitives such as fill, draw and pattern where the last requires \usetikzlibrary{...

1

If you want a node to be located "elsewhere" from the coordinate, you could use anchors. Regardless of how your diagrams could be more efficiently done, you could for example write: \node[anchor=west] (n123) at (1,-1) {$x_{1}x_{2}x_{3}$}; This will make the node appear on the right of the coordinate (1,-1).

1

To get arrow heads at both ends use <-> instead of ->. To write a label above the middle of an arrow use \draw (0,0) -- (5,0) node[midway,above]{A}; midway is an alias for pos=0.5.

0

There is no good reason to use this method. I post it as an intellectual curiosity. That is, it is an experiment with coffins. The code is as long as it is because there is, as far as I can tell, no built in way to draw rules around or within coffins, making use of their handles, alignment and so on. The result is pretty good, I think, but the code is ...

5

This should get you started. I was getting unexpected results from [text height] and [minimum height] so I put both fields into saveboxes. It should be noted that for rectangles one can simply use \node[draw]. Also, when computing the width of multiple nodes don't forget to account for inner sep=.333em (default). \documentclass{standalone} \usepackage{...

1

If forest is an option, it will automatically figure out the spacing for you. \documentclass[tikz,border=10pt,multi]{standalone} \usepackage{array} \usepackage[edges]{forest} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \begin{document} \begin{forest} forked edges, for tree={ align={c}, inner xsep=0pt, draw, } [Sous-préfet [...

1

It seems that you for sibling distance use level distance ... See, if the following code gives what you looking for: \documentclass[tikz,border=3mm]{standalone} \usetikzlibrary{trees} \usepackage[utf8]{inputenc} \begin{document} \begin{tikzpicture}[ edge from parent fork down, sibling distance = 44mm, level distance = 22mm, every node/.style = {...

3

Here's something with an "other package", namely Metapost, which you can use either on its own to produce an external graphic, or integrated with LaTeX via the gmp or luamplib packages. prologues := 3; outputtemplate := "%j%c.eps"; beginfig(1); % some spacing parameters numeric xgap, ygap, zgap, cell_x, cell_y; xgap = ygap = 0; zgap = 13; cell_x = 21; ...

Top 50 recent answers are included