Probably an easy answer to this, but I can't get it to work, and I obviously don't understand the manual or the other answers given to similar questions here on tex.sx (see 1,2, and 3).
Basically I want to use the values of an additional column in a table to specify the size of the markers, but keeping the colour the same for each marker (e.g., a colour defined by \definecolor{name}{rgb}{x1,x2,x3}).
An MWE doing almost what I want; the size of the markers is controlled by the third column as desired, but obviously the colour as well. What do I need to change in order to keep the colour constant for all the markers?
\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usetikzlibrary{plotmarks}
\usepackage{amsmath}
\usepackage{filecontents}
\begin{filecontents*}{temp.dat}
1 1 100
2 2 200
3 3 300
4 4 400
5 5 500
6 6 600
7 7 700
8 8 800
9 9 900
10 10 1000
\end{filecontents*}
\begin{document}
\begin{tikzpicture}
\begin{axis}[%
width=4.5in,
height=3.5in,
scale only axis,
xmin=0,
xmax=10,
ymin=0,
ymax=10,
axis x line*=bottom,
axis y line*=left
]
\addplot[%
scatter,
only marks,
mark=*,
color=blue,
visualization depends on={\thisrowno{2} \as \perpointmarksize},
scatter/@pre marker code/.append style={/tikz/mark size=\perpointmarksize/50}] plot table[row sep=crcr]{temp.dat};
\end{axis}
\end{tikzpicture}%
\end{document}

scatter/use mapped color={draw=ColorX,fill=ColorY},does the trick, but I'm not sure if this is the best solution. – blubbafett Feb 03 '14 at 18:57visualization depends on={\thisrowno{2} \as \perpointmarksize}. – blubbafett Feb 03 '14 at 19:04