Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1136
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
|---|---|
| From | "thibault.langlois" <thibault.langlois@gmail.com> |
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: how do i set a key (legend) when using “plot with labels” |
| Date | Tue, 22 May 2012 12:05:40 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 41 |
| Message-ID | <018c0bf8-235d-4a90-8ab3-7c8fbac2f3fd@googlegroups.com> (permalink) |
| References | <4ea9e157-26c2-4f2e-8213-4375cdf60fe9@googlegroups.com> <jpge8m$gfr$1@dont-email.me> |
| NNTP-Posting-Host | 89.180.150.105 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Trace | posting.google.com 1337713621 28835 127.0.0.1 (22 May 2012 19:07:01 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Tue, 22 May 2012 19:07:01 +0000 (UTC) |
| Cc | sfeam@users.sourceforge.net |
| In-Reply-To | <jpge8m$gfr$1@dont-email.me> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=89.180.150.105; posting-account=ng7-YAkAAAALNbsyPfk_hboQcKlxNbJ5 |
| User-Agent | G2/1.0 |
| X-Received-Bytes | 2399 |
| Xref | csiph.com comp.graphics.apps.gnuplot:1136 |
Show key headers only | View raw
On Tuesday, May 22, 2012 5:18:29 PM UTC+1, sfeam wrote: > thibault.langlois wrote: > > > When I use "plot with labels" with various groups of points everything is > > ok, labels appear in different colors. > > > > However I could not find a way to set the key (legend) properly I would > > like to have a sample of the text color used for each group of points. All > > a get is the title associated to each group. > > > > set term x11 > > set key outside > > set grid > > set xlabel "#occurences" > > set ylabel "F-score" > > set title "Experiment" > > plot "-" lw 1 with labels font "\"Helvetica\"" tc lt 1 title "foo" , "-" > > lw 1 with labels font "\"Helvetica\"" tc lt 2 title "bar" 96.0 0.24390244 > > 11 5547.0 0.7443704 24 > > 3974.0 0.83244646 114 > > 241.0 0.16025642 174 > > 6220.0 0.7571273 188 > > 7810.0 0.8637012 206 > > e > > > > 98.0 0.0 4 > > 96.0 0.11320755 11 > > 5547.0 0.75145125 24 > > 3974.0 0.8333118 114 > > 6220.0 0.7646692 188 > > 7810.0 0.87222874 206 > > e > > > > I would like the word "foo" to appear in red and the word "bar" in green. > > Add the following: > set key textcolor variable > > The rest is fine. Problem solved. Thanks a lot.
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Find similar
how do i set a key (legend) when using “plot with labels” "thibault.langlois" <thibault.langlois@gmail.com> - 2012-05-22 07:41 -0700
Re: how do i set a key (legend) when using “plot with labels” sfeam <sfeam@users.sourceforge.net> - 2012-05-22 09:18 -0700
Re: how do i set a key (legend) when using “plot with labels” "thibault.langlois" <thibault.langlois@gmail.com> - 2012-05-22 12:05 -0700
csiph-web