Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #4219
| From | Jörg Buchholz <bookwood4new@freenet.de> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | linecolor and fillcolor as stringvariable |
| Date | 2019-09-03 14:03 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <qklkqu$r5p$1@dont-email.me> (permalink) |
Hello, for me string variables being hard. I can't found a way to set "lc" and "fc" as string variables. example: color1 = "red" color2 = "green" set obj 1 rect from 0,0 to 5,5 fc color1 set obj 2 rect from 0,0 to 5,-5 fc color2 plot sin(x) w l lc color1, cos(x) w l lc color2 How must I define the variables? set obj 1 rect from 0,0 to 5,5 fc 'red' set obj 2 rect from 0,0 to 5,-5 fc 'green' plot sin(x) w l lc 'red', cos(x) w l lc 'green' This works, but there are much lines and much rectangles. So it will be easier to change the color if I can define them as variables. Thanks for any help, Jörg
Back to comp.graphics.apps.gnuplot | Previous | Next — Next in thread | Find similar
linecolor and fillcolor as stringvariable Jörg Buchholz <bookwood4new@freenet.de> - 2019-09-03 14:03 +0200
Re: linecolor and fillcolor as stringvariable Jörg Buchholz <bookwood4new@freenet.de> - 2019-09-03 14:38 +0200
Re: linecolor and fillcolor as stringvariable Ethan Merritt <eamerritt@gmail.com> - 2019-09-13 19:36 +0000
csiph-web