Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3857
| From | Ethan A Merritt <EAMerritt@gmail.com> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: Variable fill color for polygons when using "filledcurves closed" |
| Date | 2018-01-10 08:36 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <p35fdr$go7$1@dont-email.me> (permalink) |
| References | <7b902302-835d-46a6-bd9a-171afd215668@googlegroups.com> <p34hsd$c0d$1@solani.org> |
Karl Ratzsch wrote: > Am 10.01.2018 um 04:43 schrieb Hua Tong: >> 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: > >> What I get is that the edge of each polygon is colored according to >> the third column, but not the filled color. > > (gnuplot version? following is done with 5.2pl2) > > Hm, the following fills the polygons with the demanded colour > alright. The last polygon breaks open if you remove the empty line > behind it. Looks like a separate bug to me. > > =========== > $dat << EOD > 1 1 10 > 1 2 10 > 2 2 10 > 2 1 10 > > 3 1 20 > 3 2 20 > 4 2 20 > 4 1 20 > > 1 3 40 > 1 4 40 > 2 4 40 > 2 3 40 > > EOD > > #set yr [20:35] > #plot $dat u 1:2:3 w filledcurves closed fillcolor palette > plot $dat u 1:2:3 w filledcurves closed palette # does the same > ============ > > If you uncomment the yr setting, the filling becomes monochrome, > however. Seems "palette" and "filledcurves" don't agree on how to > use the value in the third column. > > All in all, also after trying to find it in the help, i think this > is not really supposed to work. Indeed. As the program sees it, the desired operation is not well-defined. Data in the 3rd column? What should I do with it? A color? But wait, what if the 3rd column number on the next line is different? How can a filled area have a color that changes at each vertex?
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
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