To change the legend style (taken from the PGF manual), one needs to include
Code: Select all
/pgfplots/legend style={desired options}
Code: Select all
every axis legend/.append style={desired options}
Code: Select all
legend style={line width=0.8pt}
I'm looking for an option similar to the one that can be used for changing the options of the outer axis, i.e.
Code: Select all
outer axis line style={desired options}
I've added a small example (taken from the PGF manual - but added some additional lines in order to show what I want to avoid):
Code: Select all
\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\pgfplotsset{plot coordinates/math parser=false}
\begin{document}
\thispagestyle{empty}
\begin{tikzpicture}
\begin{axis}[
xlabel=Index,
ylabel=Value,
outer axis line style={line width=0.8pt},
legend entries={some function},
legend style={nodes=right,line width=1.5pt}
]
\addplot[color=blue,mark=*]coordinates{
(1,8)
(2,16)
(3,32)
(4,64)
(5,128)
(6,256)
(7,512)
};
\end{axis}
\end{tikzpicture}
\end{document}