Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3649 > unrolled thread
| Started by | anees.alhamzawi@gmail.com |
|---|---|
| First post | 2017-05-25 17:31 -0700 |
| Last post | 2017-05-26 04:56 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
set the line colur value from a file anees.alhamzawi@gmail.com - 2017-05-25 17:31 -0700
Re: set the line colur value from a file Karl Ratzsch <mail.kfr@gmx.net> - 2017-05-26 04:56 +0200
| From | anees.alhamzawi@gmail.com |
|---|---|
| Date | 2017-05-25 17:31 -0700 |
| Subject | set the line colur value from a file |
| Message-ID | <d184e39f-cbc3-49d0-b64a-79f5908c7b01@googlegroups.com> |
Dear All, I am trying to plot vectors with different colours. The colour value is stored as a third column in the data file. For example, let us say the datafile is "a.tx" contains 0.603358 2.022173 1 1.08929 2.039982 2 1.588976 2.040512 3 The typical plot is plot 'a.txt' using 1:1:($2-$1):(0) notitle with vectors heads size screen 0.008,90 lc 2 The question is that How could the "lc" has the third column value?
[toc] | [next] | [standalone]
| From | Karl Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Date | 2017-05-26 04:56 +0200 |
| Message-ID | <og85i3$9vs$1@solani.org> |
| In reply to | #3649 |
Am 26.05.2017 um 02:31 schrieb anees.alhamzawi@gmail.com: > I am trying to plot vectors with different colours. The colour value is stored as a third column in the data file. > The question is that How could the "lc" has the third column value? > By giving the special keyword "variable" to "lc" and giving the third column as en extra fifth value for the "using" specifier, check "help vectors". That works for a number of other plot styles as well. plot fname us 1:1:($2-$1):(1):3 with vectors lc variable
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web