Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3853

Variable fill color for polygons when using "filledcurves closed"

Newsgroups comp.graphics.apps.gnuplot
Date 2018-01-09 19:43 -0800
Message-ID <7b902302-835d-46a6-bd9a-171afd215668@googlegroups.com> (permalink)
Subject Variable fill color for polygons when using "filledcurves closed"
From Hua Tong <tonghuagg@gmail.com>

Show all headers | View raw


I want to plot polygons with filled color according to some variable defined, e.g., in third column.
In short, the data format is as below:
0.16658205E+02 0.29610505E+02 0.13685260E+01 1
0.15732364E+02 0.29916967E+02 0.13685260E+01 1
0.15111388E+02 0.28956940E+02 0.13685260E+01 1
0.16658205E+02 0.29610505E+02 0.13685260E+01 1

0.12330652E+02 0.32410390E+02 0.13104752E+01 2
0.11806368E+02 0.31577728E+02 0.13104752E+01 2
0.12629825E+02 0.30750973E+02 0.13104752E+01 2
0.12330652E+02 0.32410390E+02 0.13104752E+01 2
......
The command that I use is as below:
p "data" u 1:2:3 w filledcurves closed fillcolor palette
What I get is that the edge of each polygon is colored according to the third column, but not the filled color.

I searched and found this https://sourceforge.net/p/gnuplot/feature-requests/411/, where someone seemed to have the same problem but solution is not clear. 

I'd be grateful if anyone knows that trick.
Thanks in advance.

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

Variable fill color for polygons when using "filledcurves closed" Hua Tong <tonghuagg@gmail.com> - 2018-01-09 19:43 -0800
  Re: Variable fill color for polygons when using "filledcurves closed" Karl Ratzsch <mail.kfr@gmx.net> - 2018-01-10 09:11 +0100
    Re: Variable fill color for polygons when using "filledcurves closed" Ethan A Merritt <EAMerritt@gmail.com> - 2018-01-10 08:36 -0800
      Re: Variable fill color for polygons when using "filledcurves closed" Ethan Merritt <sfeam@users.sf.net> - 2018-01-10 18:10 +0000

csiph-web