Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to plot some functions without marks and reference them in my text - the problem is that in the text there are some random marks and i can't turn them off somehow.

\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{
plotl/.style={blue,no marks,ultra thick,domain=-2:2,samples=50},
plotd/.style={red,no marks,ultra thick,domain=-2:2,samples=50}
}
\begin{document}
Text blablbalbal \ref{plot:probH} blablalbalba \ref{plot:probL}\\
\begin{tikzpicture}
    \begin{axis}[width=\textwidth,height= 200pt,legend pos=north east,xlabel = $E_x$, ylabel=$p_x$]
\addplot+[plotl]{0.15*exp(-x/0.5)/(0.5*sinh(4)};\addlegendentry{$T = 0.5$}\label{plot:probL}
\addplot+[plotd]{0.15*exp(-x/4)/(4*sinh(0.5)};\addlegendentry{$T = 4.0$}\label{plot:probH}
    \end{axis}
\end{tikzpicture}
\end{document}

enter image description here

share|improve this question
1  
Remove the + after the \addplot. –  Jake Oct 12 '13 at 21:04
    
thanks a lot. you could make an answer out of this (i think the question hasn't been asked before - at least searching didn't yield useful results). –  oerpli Oct 12 '13 at 21:14
add comment

1 Answer 1

up vote 1 down vote accepted

Remove the + after \addplot. The + indicates that you want to keep the normal cycle list options (including the markers) active in addition to the plot options which you specify in [...].

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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