If I want to change all edge properties (to e.g. rounded edges instead of mitered edges) in a tikz picture (picture globally), I can do so as follows:
\begin{tikzpicture}[line join=round]
This works fine. However, when attempting to do so for the entire document (globally) using tikzset in the preamble (which seemed a logical step after reading this):
\tikzset{line join=round}
It does not work, although no error appears, and every tikz image uses the default setting (which is miter) unless otherwise specified locally or picture globally.
Does anyone know how to set this property (and the line cap and miter limit property) globally?
EDIT: as requested a small example:
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{width=7cm,compat=1.8}
\tikzset{line join=round} % <-- This does not have any effect
\begin{document}
% Edges are not affected, as they are still 'mitered':
\begin{tikzpicture}
\begin{axis}
\addplot[color=black,line width=10pt] coordinates
{(0, 0) (1, 1) (2, 0) (3, 1) (4, 0)};
\end{axis}
\end{tikzpicture}
% This is how it's supposed to look like:
\begin{tikzpicture}[line join=round] % (!)
\begin{axis}
\addplot[color=black,line width=10pt] coordinates
{(0, 0) (1, 1) (2, 0) (3, 1) (4, 0)};
\end{axis}
\end{tikzpicture}
\end{document}
\tikzset{every picture/.append style={line join=round}}