7

I use external .tikz files to include graphics in my LaTeX document. These .tikz files are generated by matlab2tikz. The scatter plots that come out though have very small markers. I want to scale these markers. Right now I include the .tikz file as follows:

\begin{figure}
    \centering
    \newlength\figureheight 
    \newlength\figurewidth 
    \setlength\figureheight{0.5\linewidth} 
    \setlength\figurewidth{0.5\linewidth}
    \input{images/filename.tikz}
    \caption{caption}
    \label{fig:label}
\end{figure}

How do I scale the markers at the moment I \input the .tikz file. I don't want to edit the content of the .tikz file itself. A method to scale plot markers globally would also be acceptable.

2
  • 3
    Try \tikzset{mark size=5} (or some other value) before the \input statement. If that doesn't work, please edit your question to include the code in filename.tikz.
    – Jake
    Apr 2, 2013 at 14:39
  • I don't know how matlab2tikz handles the plots but you can try adding \tikzset{every mark/.append style={scale=3}} in the preamble.
    – percusse
    Apr 2, 2013 at 14:39

1 Answer 1

7

You can specify the marker size globally by putting

\tikzset{mark size=5}

(or some other value) somewhere before your tikzpicture.

1
  • what if I actually want to scale the marker sizes, not just set them all to a single size, i.e., I have multiple marker sizes and what the relative sizes between markers to remain the same, I just want to scale everything...
    – daaxix
    Jul 29, 2015 at 21:54

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.