# Tag Info

52

Like T. Tantau and Mark S. Everitt, I think it's a bad thing to do this. I don't understand if you want to use pgfplots or pgf plots ? It's not exactly the same things. The code would be better if yshift for the shadow is calculated in function of the height of the picture. Update 2 Some corrections, complete and clean the code. \documentclass{scrartcl} ...

30

Adapted from How can I produce a 'ring (or wheel) chart' like that on page 88 of the PGF manual?, created using the line \wheelchart{26/cyan/Corporate, 28/orange/Plastique, 33.5/yellow/Chimique, 12.5/blue!50!red/Rhodia} \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} % Adjusts the size of the wheel: \def\innerradius{1....

24

The TikZ library secdia (I believe it stands for sector-diagram) can accomplish this task. It provides basically 3 commands: \drawaxes[list of options]{}; to establish the axis and the circles composing the grid; \sector[list of options]{}; to draw a single sector; \sectorlist[list of options]{}; to draw automatically a diagram. There is a number of ...

24

This is also doable just with the calc library and nothing else. Layers deployment At first we should locate the various livelli (italian plural of livello): nodes are just fine. Let's then define their aspect: \tikzset{layer/.style={draw, rectangle, fill=green!85!blue!60, minimum width=2cm } } Since they have very similar labels (just the ...

20

I would use TikZ; here's a little initial code that could be highly improved, but the idea is to define one basic shape (for the right foot, the other, for the left one is a simple reflection) and then it seems simple to place the shapes in the desired positions using nodes: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usepackage{...

19

MWE with Asymptote. Text can be added with function putText, the legend is written next to the data sector. % radar.tex: \documentclass{article} \usepackage[inline]{asymptote} \begin{asydef} struct RadarPlot{ real[] data; string[] Legend; pen[] Pens; pen gridPen; pen axisPen; pen labelPen; pen legendPen; int n,m; real pieAngle; int maxX;...

19

Here is an attempt to implement this visualization using Asymptote. The algorithm is pretty simple: For every data point its label is constructed, preferably with equal width and length (to fit inside the bubbles more often) All data points are processed in order, and the current stem height is chosen as the minimum for which there's no overlap of the ...

18

After all my failed attempts (deleted) I got one version to work. The problem was, that inside of the axis environment the loop of \DTLforeach didn't expand the macros at the proper moment, but after the loop ended. This led to the result that only one (i.e. the last) box was drawn. This solution circumvents this as it assembles all the TikZ commands ...

17

I had a similar one and adapted it to your needs. With an matrix of nodes it's easy to place all boxes and just need some draw commands for links between them. \documentclass[border=1mm,tikz]{standalone} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{tikz} \usetikzlibrary{matrix, arrows,fit} \begin{document} \begin{...

17

Here are two suggestions. The first one uses a rather small font size to make the chart fit within the margins of a standard article. I've also set the labels in fixed width nodes, so that text is broken over two lines. Finally, the x unit, y unit chart and y unit title are modified. In the second option I've set the chart on a landscape page with smaller ...

15

Here is a first version. So far you can only define the angles of the individual sectors. In the center of each sector there is a node n(sector number) which you can use for labeling. \documentclass[parskip]{scrartcl} \usepackage[margin=15mm]{geometry} \usepackage{tikz} \usetikzlibrary{calc} \global\edef\lastangle{0} \newcounter{sectornumber} \newcommand{\...

15

With command \resizebox{new width}{new height}{what you want to resize} you can change dimensions of any latex box. This means that everything (text, lines, simbols, ...) will be adjusted to new dimensions. In first or second parameter you can use ! in order to keep original aspect ratio. With this command, \documentclass{article} \usepackage{lipsum} \...

13


13

Such thing can easily be made with TikZ: \documentclass{standalone} \usepackage{tikz} \tikzset{ mystyle/.style={inner sep=0pt, inner ysep = .5mm, anchor=west, text height=2mm}, mynum/.style={inner sep=0pt, inner ysep = .5mm, anchor=east} } \begin{document} \newcommand{\myrow}[4]{% #1 & \begin{tikzpicture}[baseline=-2pt]\node at (0,0)[ fill = red, text ...

12


12

There are some subtle points: The vertical spacing in the header Alignment between the leader dots Horizontal alignment in the last two columns Here's a way for solving these issues. The \? command produces a horizontal space as wide as a digit. \documentclass{article} \usepackage{textcomp} \usepackage{tgschola} \usepackage{tabularx} \newcolumntype{I}{@{}...

11

Update: Most of the idea exposed in the initial version is now made automatically, adding support for unnumbered chapters: \documentclass[openany]{book} \usepackage{chappg} \usepackage{pgfplots} \usepackage{lipsum} \usepackage{nameref} \usepackage{showkeys} \definecolor{ylgnbu1}{RGB}{255, 255, 204} \definecolor{ylgnbu2}{RGB}{161, 218, 180} \definecolor{...

10

My answer from Drawing different tikz shapes parameterized by data from a file can be extended quite easily to include colour specification as well, by adding a fourth (and fifth) column with color names. For example, with a data file looking like this (first two rows) x,y,r,fill,outline 2,1,0.1,red,blue and the DTLforeach changed to \DTLforeach*{...

10

You must use the outer nodes (with letter O) for the positioning (see texdoc pstricks-add): \documentclass[pstricks]{standalone} \usepackage{pstricks-add} \begin{document} \begin{pspicture}(-7,-4)(7,4) \psset{unit=1.2} \psChart[userColor={black!10,black!40},shadow,shadowsize=3pt, chartNodeO=1.15]{10,90}{}{3} \bfseries \ncline[arrows=<-, arrowscale=1.5, ...

10

This isn't very hard to do. In the code below, I've used \dotfill to fill the cells and made a couple of commands for the undotted subsections and the indent. The font is really up to you. For a freely available similar font I've used TeX Gyre Schola which is a Century Schoolbook clone. But if you use XeLaTeX or LuaLaTeX you can buy the actual font you want ...

9

Simple replication with the usage of tikz::chain library. Current issues: Change colors. Prettify source code. Maybe Livello nodes can be done via \foreach. Code: \documentclass[tikz]{standalone} \usepackage{tikz} \usetikzlibrary{chains,fit} \begin{document} \begin{tikzpicture}[livello/.style={draw=green,fill=green!15}, host/.style={...

9

The fix (short version) You are missing the plain compatibility mode: \starttext \startMPcode useplainlabels ; input piechartmp; Segment(30, "first"); Segment(70, "second"); PieChart(1cm, 0, 0, 0, 0); Label.auto(0)(name)(outwards,0); ResetSegments; \stopMPcode \stoptext Reason for the failure In contrast to traditional ...

9

Whit pgfplots you can use something like this (not so automatized but still a solution) \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ name=like, scale only axis, xbar, xmin=0, xmax=40, %xbar=2pt, xlabel={likes}, width=5cm, height= 3cm, ytick={1,2,3,4,5}, yticklabels={sa,safda,afa,afa,af}, y tick label ...

9

\documentclass{article} \usepackage{calc} \usepackage{ifthen} \usepackage{tikz} \begin{document} \newcommand{\slice}[5]{ %% use 5 arguments here \pgfmathparse{0.5*#1+0.5*#2} \let\midangle\pgfmathresult % slice %% I changed !10 to !30 to get darker color % use the fifth argument #5 to pass the color \draw[thick,fill=#5!30] (0,0) -- (#1:1) arc (#...

9

Here are some definitions of three different node set styles to get the aspect of the images you posted: The code: \documentclass[varwidth]{standalone} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{% decorations.pathreplacing,% decorations.pathmorphing,% arrows, arrows.meta, positioning, shapes, shadows, ...

9

My answer would be, not for the moment, the packages are evolving with time, at least in the specialized tree diagrams I have not found any that can give you a similar result; what if you always have is the basic code of tikz, with which I think you can do almost everything in 2D and automated, the cost is the learning of the basics, the technical and ...

8

A possible approach is the pgfplots package with the dateplot library. Here is an example with fictitious data and the dates you provided in the question: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.7} % with TeXLive updated this is the current version; use the one you have installed \usepgfplotslibrary{dateplot} \usepackage{...

8

I've just made some changes to Jake's excelent answer to How can I produce a 'ring (or wheel) chart' like that on page 88 of the PGF manual? and the result is: The adapted code is: \documentclass[tikz,border=2mm]{standalone} \usepackage{siunitx} \begin{document} % Adjusts the size of the wheel: \def\outerradius{2.2cm} % The main macro \newcommand{...

Only top voted, non community-wiki answers of a minimum length are eligible