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


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

Re: Plot a geographical map with gradient color

From sfeam <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Plot a geographical map with gradient color
Followup-To comp.graphics.apps.gnuplot
Date 2011-11-25 14:31 -0800
Organization gnuplot development team
Message-ID <jap5ek$qrn$2@dont-email.me> (permalink)
References <d88336ee-b650-4091-a183-8d652a6dec55@y12g2000vba.googlegroups.com>

Followups directed to: comp.graphics.apps.gnuplot

Show all headers | View raw


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 <val1>,
        '' u 3:4 w filledcurves lt palette fraction <val2>,
        ...

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


Thread

Plot a geographical map with gradient color Gerard Sookahet <gersoo@gmail.com> - 2011-11-25 09:24 -0800
  Re: Plot a geographical map with gradient color sfeam <sfeam@users.sourceforge.net> - 2011-11-25 14:31 -0800

csiph-web