8

I'm using tikz to produce scatter plots as shown in this question. I can define the marker size with \tikzset{mark size=8} but now I'm looking for a way to make the line of the marker thicker in a similar way. Is this possible with \tikzset?

1 Answer 1

11

You can set the size of the line width for the markers using \tikzset{mark options={line width=3pt}}:

\documentclass{article}

\usepackage{pgfplots}

\begin{document}
\tikzset{mark options={mark size=5, line width=3pt}}

\begin{tikzpicture}
\begin{axis}
\addplot [only marks, fill=red] {rnd};
\end{axis}
\end{tikzpicture}
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.