Path: csiph.com!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Karl Ratzsch Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Variable fill color for polygons when using "filledcurves closed" Date: Wed, 10 Jan 2018 09:11:56 +0100 Organization: solani.org Lines: 42 Message-ID: References: <7b902302-835d-46a6-bd9a-171afd215668@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1515571917 12301 eJwFwYEBwDAEBMCVpPiPcSj2HyF3rjj4aXCYry9iVEqUlCzLymHHGUSg0yQaF5v2FSh6vR8ZrhDb (10 Jan 2018 08:11:57 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Wed, 10 Jan 2018 08:11:57 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 Content-Language: de-DE-1901 In-Reply-To: <7b902302-835d-46a6-bd9a-171afd215668@googlegroups.com> Cancel-Lock: sha1:4oldRyWAft/U8+YTVl1PWDePJl4= X-User-ID: eJwNx8EBwCAIA8CVMEIi4xQp+4/Q3u9ic/HKGfSYGNOfVlK9YWAbzlvTuarxQObjuMozUrH4AQ0lELA= X-NNTP-Posting-Host: eJwNyckRwCAMBLCWQrxHXA4G3H8J4acZMTS0DFFgsxv0uUpgh4t1+GDPCrzz1sjObzlNRFqtHxRwEGk= Xref: csiph.com comp.graphics.apps.gnuplot:3854 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.