Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3519
| From | Jörg Buchholz <bookwood4new@freenet.de> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | variable in plot command and key |
| Date | 2017-01-09 17:50 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <o50eue$pm6$1@dont-email.me> (permalink) |
Hello, how can I use a string variable as "plot data" and in the key, with a underline in the variable and the default key entry? example: the plot data are in the file "test_test.dat". If I use the plot command plot 'test_test.dat' u 1:2 gnuplot gives a correct plot with the key entry "'test_test.dat' u 1:2" to me, it is the default key entry. Now I want to have the name of the file as a variable, for example "data" data = 'test_test.dat' plot data u 1:2 The plot is correct but the key entry is "data u 1:2" instead "'test_test.dat' u 1:2". Next thing I have tried is: data = 'test_test.dat' plot data u 1:2 t data The plot is correct but in the key there is a problem with the "_" and the "u 1:2" is missing. Is there a way to use a variable as data file name and have the default key entry? Jörg
Back to comp.graphics.apps.gnuplot | Previous | Next — 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