Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3521
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Ethan A Merritt <EAMerritt@gmail.com> |
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: variable in plot command and key |
| Date | Mon, 09 Jan 2017 21:59:51 -0800 |
| Organization | A noiseless patient Spider |
| Lines | 30 |
| Message-ID | <o51t5r$bqd$1@dont-email.me> (permalink) |
| References | <o50eue$pm6$1@dont-email.me> <o5143c$c45$1@solani.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | 8Bit |
| Injection-Date | Tue, 10 Jan 2017 05:58:19 -0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="992d5bb7e8b161a79c787f973efb35fa"; logging-data="12109"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+o3Bf6chfT4nxREhc0SFB+" |
| User-Agent | KNode/4.14.5 |
| Cancel-Lock | sha1:/pL+lLUE9uTAVaA+V9JsHXwfLBs= |
| Xref | csiph.com comp.graphics.apps.gnuplot:3521 |
Show key headers only | View raw
Karl Ratzsch wrote: > Am 09.01.2017 um 17:50 schrieb Jörg Buchholz: >> >> >> Is there a way to use a variable as data file name and have the >> default key entry? >> > > You mean you want to see the actual file name + the actual "using" > specifier"? I think not, at least not directly. > > You could write the whole plot command into a string and execute it > with "evaluate" > > fname = "'test_1.dat'" > eval "plot ".fname." us 1:2" Or slightly simpler: foo = "'test_1.dat'" plot @foo using 1:2 To suppress interpretation of underscores in the plot key set key noenhanced I don't think there is currently a way to maintain enhanced text markup in the key titles while not having it replace underscores in file names. Ethan
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
variable in plot command and key Jörg Buchholz <bookwood4new@freenet.de> - 2017-01-09 17:50 +0100
Re: variable in plot command and key Karl Ratzsch <mail.kfr@gmx.net> - 2017-01-09 23:50 +0100
Re: variable in plot command and key Ethan A Merritt <EAMerritt@gmail.com> - 2017-01-09 21:59 -0800
Re: variable in plot command and key Jörg Buchholz <bookwood4new@freenet.de> - 2017-01-10 08:17 +0100
Re: variable in plot command and key Ethan A Merritt <EAMerritt@gmail.com> - 2017-01-10 08:54 -0800
Re: variable in plot command and key Jörg Buchholz <bookwood4new@freenet.de> - 2017-01-11 08:22 +0100
csiph-web