Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: sfeam Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Plot a geographical map with gradient color Followup-To: comp.graphics.apps.gnuplot Date: Fri, 25 Nov 2011 14:31:41 -0800 Organization: gnuplot development team Lines: 23 Message-ID: References: Reply-To: sfeam@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Fri, 25 Nov 2011 22:39:16 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="3mhAfh4CeAIeL3OKnPexDA"; logging-data="27511"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19cCb3zRx4fsXhHJc4bNsKD" User-Agent: KNode/4.4.9 Cancel-Lock: sha1:70r1XAImYlVmB+Qk6YbWPe2EM7E= Xref: x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:707 Gerard Sookahet wrote: > Hello, > > I plot a geographical map with state boundaries from coordinates data > file : > > plot 'map.dat' u 1:2 w l, \ > 'map.dat' u 3:4 w l, \ > 'map.dat' u 5:6 w l, \ > 'map.dat' u 7:8 w l, \ > [....] > > If values are associated to states (polygons), is there a way to color > them with a gradient color palette ? > A kind of choropleth map (http://en.wikipedia.org/wiki/ > Choropleth_map). Maybe set palette ... (pick a gradient scheme you like) plot 'map.dat' using 1:2 w filledcurves lt palette fraction , '' u 3:4 w filledcurves lt palette fraction , ...