How do I set the color of a marker with one meta column in a table AND its size with another meta column?
So in this minimal working example, how can I set the marker size with 'w1' and the color with 'w2'?
\begin{filecontents*}{temp.dat}
x y w1 w2
1 1 2 4
2 2 1 3
3 3 4 2
4 4 3 1
\end{filecontents*}
\documentclass[10pt,a4paper]{report}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[]
\addplot[scatter,
only marks,
scatter src=explicit,
scatter/@pre marker code/.append style={/tikz/mark size=2+\pgfplotspointmetatransformed/300}]
table[x=x,y=y,meta=w1]{temp.dat};
\end{axis}
\end{tikzpicture}
\end{document}