Hi all,

I try to produce a scatter plot, with a legend for each marks. However the 
following code create a plot with only the first entry in the \legend{} 
written...

I am on Ubuntu using tikz from the "texlive-pictures" package, version 2009-7.

Could you help with this?

Cheers


\begin{tikzpicture}
\begin{axis}[
        scatter/classes={
        a={mark=o},
        b={mark=oplus},
        c={mark=otimes},
        d={mark=square},
        e={mark=triangle},
        f={mark=diamond},
        g={mark=pentagon},
        h={mark=star}
  },
  ylabel=$Bytes \; (MB)$,
  xlabel=$Time \; (s)$,
  mark options={scale=2},
  legend style={font=\scriptsize},
]


\addplot+[scatter, only marks]
plot[scatter src=explicit symbolic]
coordinates {
 (2.2446, 125.6) [a]
 (2.5433, 115.2) [b]
 (2.36, 106.8) [c]
 (2.257, 194.0) [d]
 (2.3846, 161.8) [e]
 (6.1836, 129.0) [f]
 (2.8555, 118.3) [g]
 (3.3004, 244.5) [h]
};
\legend{AFOR-1, AFOR-2, AFOR-3, FOR, PFOR, Rice, S-64, VByte}
\end{axis}
\end{tikzpicture}



------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Pgfplots-features mailing list
Pgfplots-features@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgfplots-features

Reply via email to