---------- Forwarded message ---------- From: William Henney <when...@gmail.com> Date: Sat, Jan 28, 2012 at 8:55 AM Subject: Re: [Pgfplots-features] How to customize legend labels for scatter/classes? To: Clemens Helfmeier <cleme...@cs.tu-berlin.de>
Hi Clemens On Sat, Jan 28, 2012 at 8:34 AM, Clemens Helfmeier <cleme...@cs.tu-berlin.de> wrote: > to modify the literal string in the legend, use the > \addlegendentry{\ion{Ne}{2}} > command. It works for graphs and for scatter classes. Just add labels in the > order they appear as scatter classes. That works! I was sure I had tried that before and couldn't get it to work, but I must have had some other error at the time. Many thanks Will > > Best regards, > Clemens > > > > On Fri, Jan 27, 2012 at 09:48:27PM -0600, William Henney wrote: >> Hi list >> >> I've recently started using pgfplots and am very impressed so far. Mostly, I >> have found answers to all my questions in the excellent manual, but today I >> hit a problem that I couldn't get round. >> Hopefully, someone on this list can help me out. >> >> In the attached figure, I am using scatter/classes with a column that is read >> from the accompanying data file. This works fine, and I can make a legend >> showing each class and accompanying marker. But I want to modify the text >> that appears in the legend for each class, so that it isn't just the literal >> string from the "meta" data column. For instance, I want it to be >> "[\ion{Ne}{2}]" instead of "Ne2". Is this possible? >> >> Another thing I tried was to use the extended \label[...]{...} syntax >> discussed in the manual (p.79), but I couldn't get it to work. When I >> uncomment the line containing \ref, I get various errors such as "! Package >> pgfkeys Error: I do not know the key '/pgfplots/error >> bars/mark'", see attached log file. >> >> Cheers >> >> Will >> >> -- >> >> Dr William Henney, Centro de Radioastronomía y Astrofísica, >> Universidad Nacional Autónoma de México, Campus Morelia > > > > >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers is >> just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro >> Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 > >> _______________________________________________ >> Pgfplots-features mailing list >> Pgfplots-features@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/pgfplots-features > > > Clemens Helfmeier -- Dr William Henney, Centro de Radioastronomía y Astrofísica, Universidad Nacional Autónoma de México, Campus Morelia -- Dr William Henney, Centro de Radioastronomía y Astrofísica, Universidad Nacional Autónoma de México, Campus Morelia ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Pgfplots-features mailing list Pgfplots-features@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pgfplots-features