6

In pgfplots you can add a node at some fraction of the path by just adding node[pos=<fraction]{<stuff>} after the \addplot command. \documentclass[tikz,border=3mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.17} \begin{document} \begin{tikzpicture} \begin{axis}[hide axis, width=12cm, axis background/.style={path picture={ \...


2

I see no reason to use PGF code - you are almost there just by noticing that the spiral can be plotted by {cos(deg(x))},{sin(deg(x)},{x}. I normally love PGFPlots, but this is not a plot(axis, scale, ticks, labels, ...). I believe that the plot function in TikZ is the right way. To straighten the ends of the spiral I let the amplitude decay at the same with ...


2

Do not use scale in an axis, rather use the width option. And work with symbolic coordinates. You will need lualatex to compile this swiftly. \documentclass{standalone} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[margin=0.5in,paper=a4paper]{geometry} %Shrinking margins to 0.5in \usepackage{bm} \usepackage[x11names]{...


1

I do not know why you think that you can use the poles of tan for cot. If you choose the appropriate poles, you get \documentclass[tikz,border=3.14mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.16} \begin{document} \begin{tikzpicture} \begin{axis}[% axis lines=middle, axis on top, xlabel=$x$, ylabel=$y$, domain=-2*pi:2*pi, ...


1

Instead of x filter/.code you want x filter/.append code. Then you only need one version. \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usepackage{filecontents} \begin{filecontents}[overwrite]{data.csv} # x, y, color, shape, size 1, 3, a, 0, 2 2, 6, b, 0, 2 3, 5, a, 1, 2 4, 4, b,...


1

How to lower the legend so it doesn't override the x-axis You can change legend location by changing the numbers inside at={(0.5,-0.45)} in legend style=.... You already had this in your file, I just changed the numbers so they work for your plots. Same can be done with xlabel, which was also overlapping some stuff. This time I played with values yshift=-...


1

As it seems the colors for the marks have to be given extra with the mark options (see MWE below). Interestingly changing \addplot+ to (just) \addplot the outliers aren't shown at all. Together with the "strange" behaviour of \addplot+ not considering the colors given to the not-outlier stuff this may be a bug. Is you think so as well, please ...


1

From the PGFPlots manual (v1.17) section 8.6 on page 553. To change the number format of the output have a look at the TikZ manual (v3.1.7) section 97 (page 1051), e.g. if you want to output 3 decimal numbers instead of only 2. % used PGFPlots v1.17 \documentclass[border=5pt]{standalone} \usepackage{pgfplots} \pgfplotstableread{ x y ...


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