I'd like to draw a plot with a very thin line but large markers, like in the following example
\documentclass[tikz]{standalone}
\RequirePackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot [thin, mark = none] coordinates {(0,0) (1,1)};
\addplot [only marks,thick] coordinates {(0,0) (1,1)};
\end{axis}
\end{tikzpicture}
\end{document}
So far I can't define a single style to that effect since the same option (thick or thin) is used for both the marker and the line.
EDIT: The problem arises when one uses markers like + or x:
\documentclass[tikz]{standalone}
\RequirePackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot [thin, mark = none,blue] coordinates {(0,0) (1,1)};
\addplot [only marks, thick,mark = +,blue] coordinates {(0,0) (1,1)};
\addplot [thin, mark = +, mark size=8pt,red] coordinates {(0,1) (1,0)};
\end{axis}
\end{tikzpicture}
\end{document}
I'd like to get the blue plot in the following picture
Best Answer
You can use
mark options
and a scale factor, ormark size
to control the marks:The every
mark style
can be used to set the mark options "globally":I chose a rather large mark size just for the example.