Skip to main content
10 votes
Accepted

tikz diagram skier on a slope

The boring solution: use a skier from the fontawesome5package: \documentclass{article} \usepackage{tikz}%,pgf} %\usepackage{pgfplots} %\usetikzlibrary{calc,angles} \usetikzlibrary{angles} %\...
samcarter_is_at_topanswers.xyz's user avatar
5 votes
Accepted

PGFPlots library fillbetween causing a bunch of "Missing Character" warnings

This has been reported and fixed in the development version: https://github.com/pgf-tikz/pgfplots/issues/456 Basically you have to use \ifdim instead of \ifnum in an internal command: \documentclass[...
Ulrike Fischer's user avatar
5 votes
Accepted

Naming tikz pics doesn't work on v.3.1.10

Since version v3.1.10 TikZ includes both name prefix and name suffix for the local bounding box. Since the pic's name is appended to the name prefix this would be applied twice, meaning that the ...
Qrrbrbirlbel's user avatar
4 votes

add customize line header not smooth connected

Different approach: draw two arrows above each other \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture} \coordinate (A) at (0,0); ...
samcarter_is_at_topanswers.xyz's user avatar
3 votes
Accepted

Checking if the version of TikZ is newer in a format-independent way

A somewhat elegant test for your use case which supports a hardcoded number of 3 digits, and uses your split result. I also used the \pgfutil@ since you're loading pgf anyway and that provides \@...
Skillmon's user avatar
  • 61.6k
3 votes
Accepted

I cannot get Pgfplots to display all my axis labels

Seems to me the first and last ticks in both x and y axis are taken as the minimal resp maximal values of x / y when plotting the axes. So add the following lines to your code: xmin=153, xmax=197, ...
alchemist's user avatar
  • 1,846
3 votes
Accepted

add customize line header not smooth connected

Ultimately, I think for big arrow tips, simply drawing a white shortened lines on top of the normal line including the bending library and a sep instead of the shorten keys will lead to nicer looking ...
Qrrbrbirlbel's user avatar
3 votes
Accepted

Strange rendering of 3d surface with pgfplots

Changing what is a possible error in your equation gives the expected result (so it is not the exact same equation): \documentclass[tikz, border=1cm]{standalone} \usepackage{pgfplots} \pgfplotsset{...
hpekristiansen's user avatar
3 votes
Accepted

Reproducing the lichess opening tree stat bar

You did not explain much about how exact the output should match the picture you provide, but something like this could be a starting point (the thin white lines in the output are rendering errors): \...
Jasper Habicht's user avatar
3 votes
Accepted

inner xsep/ysep 0 not work as expected

You can see what is happening a bit more clearly if you use different colours to distinguish the inner and outer circle around B: \begin{tikzpicture} \node (A) [double circle={5pt}{red}, draw=blue,...
cfr's user avatar
  • 207k
2 votes

How to draw a simple cone with height and radius with TikZ?

If you want to draw a geometrically accurate picture (with the two segments actually tangent to the ellipse at the bottom), here is an alternative to Dan's description. We first draw a circle with two ...
Michał Miśkiewicz's user avatar
2 votes

TikZ - multi-color double circle node

The great nfold library by Jonathan can make this very easy (and would work with other shapes as well – with a small caveat†). I'll provide two styles, one that doesn't change the outer sep (the ...
Qrrbrbirlbel's user avatar
2 votes

Cannot write \Cup in tikz-qtree binary tree structure in LateX

Here's a forest version which sets up a style my tree and makes it the default for all forest trees. (This could be shortened a bit by using the linguistics library.) I don't know whether you want \...
cfr's user avatar
  • 207k
2 votes

modify shorten value for inner draw command

What happens is that postaction is independent of the properties that you add later, if you want them to affect what is in postaction you must do it through an additional variable, in this case I ...
J Leon V.'s user avatar
  • 12.8k
2 votes
Accepted

Tikz graphs not aligned

See if the following MWE givers what you after. In it I reduce preamble to loading only to your problem relevant packages (geometry, pgfplots (version 1.18), subcaption) from diagram code remove ...
Zarko's user avatar
  • 300k
2 votes

tikz diagram skier on a slope

As suggested by SamCarter... \documentclass{article} \usepackage{tikz}%,pgf} %\usepackage{pgfplots} %\usetikzlibrary{calc,angles} \usetikzlibrary{angles} %\usetikzlibrary{arrows} %\usetikzlibrary{...
John Kormylo's user avatar
  • 81.1k
2 votes
Accepted

Two for loops and the second starts with i+1

You could just do \foreach[count=\ii from 1] \i in {2,...,#1} { \foreach \j in {1,...,\ii} { which removes any necessity for calculating anything by letting the loop count an offset to \i. You can ...
Qrrbrbirlbel's user avatar
1 vote

Checking if the version of TikZ is newer in a format-independent way

This here implements a general loop which compares two different version numbers. The following syntax is supported: Parts of the version number are separated by a dot. In the expected version number ...
Skillmon's user avatar
  • 61.6k
1 vote

tikz diagram skier on a slope

is it possible to reproduce this schema with tikzpicture ? Yes, as you've seen already. Here is a way to do it via my answer in comment A) 1. Get an image So I found an uphill skier on a sign. Cur it ...
MS-SPO's user avatar
  • 13.7k
1 vote

tikz diagram skier on a slope

is it possible to reproduce this schema with tikzpicture ? Yes, as you've seen already. Here is a way to do it via my scribble suggestion B) 1. Scribble the skier uphill I did what I wrote: sketched ...
MS-SPO's user avatar
  • 13.7k
1 vote
Accepted

Center Tikz pictures used as tick labels in Pgfplots

You have several spaces in the piechart. I can not recommend doing this as it nest tikzpictures. It might be done with a path picture or simply drawn afterwards. \documentclass{article} \usepackage{...
hpekristiansen's user avatar
1 vote

I cannot get Pgfplots to display all my axis labels

Thanks to @alchemist, here is the code that ended up displaying the labels that I needed on both axes: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usepackage{tikz} \...
ziadmbaroudi's user avatar
1 vote
Accepted

groupplot: width and alignment

This uses three axis environment, using yshift and xshift to align them. Interestingly, putting a group plot into a savebox is not allowed (something about prevdepth). \documentclass[tikz, margin=5mm]...
John Kormylo's user avatar
  • 81.1k
1 vote

Tikz: image act as transparency filter

I finally found the solution using fadings, notably the great tikzfadingfrompicture that is well documented and is basically exactly an equivalent of transparency masks. I needed also to invert the ...
tobiasBora's user avatar
  • 8,954
1 vote

draw a circle shape with white inner circle by one command

One can use https://tex.stackexchange.com/a/36858/36296 : \documentclass[border=4mm] {standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \tikzset{ old inner xsep/.estore in=\...
samcarter_is_at_topanswers.xyz's user avatar
1 vote
Accepted

how to draw this bar chart in latex?

Something to get you started; keys: absolute positions AND related to the nodes anchors you could switch to matrix placement for more flexibility place basic elements first introduce and modify ...
MS-SPO's user avatar
  • 13.7k
1 vote
Accepted

Non-label Marks at points in tikzpicture

If you want a label different from the node name : \tkzLabelPoint(Ref){Label} You can use the macro \foreach but it's not necessary \documentclass[tikz]{standalone} \usepackage{tkz-euclide} \begin{...
Alain Matthes's user avatar
1 vote

Non-label Marks at points in tikzpicture

Adaptations added a \foreach loop with counter \xi over A to D draw nodes with fill=white at the vertices (If you want to place the nodes outside the polygon, you might need to define the position (...
dexteritas's user avatar
  • 9,361
1 vote

Combining `\addplot3` Commands with Separate Colors in PGFPlots

You have syntax errors in your colormap. There is a bug in PGFPlots when using z buffer=sort combined with a non-uniform colormap. \documentclass[tikz, border=1cm]{standalone} \usepackage{pgfplots} \...
hpekristiansen's user avatar
1 vote

How to add a legend to a Kiviat diagram with mutltiple lines? (tkz-kiviat)

You can use the MetaPost package mpkiviat (https://ctan.org/pkg/mpkiviat) that mimics tkz-kiviat. \documentclass{standalone} \usepackage{luamplib} \usepackage{fourier-otf} \begin{document} \begin{...
Maxime Chupin's user avatar

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