[GRASSLIST:8471] Re: Controlling pie chart orientation in d.vect.chart

Hamish hamish_nospam at yahoo.com
Mon Oct 3 18:08:38 EDT 2005


> I've noticed that when I plot a series of sediment grainsize pie
> charts in d.vect.chart, the first attribute field I specify under the
> columns parameter gets painted into the first pie chart chord (which
> begins at orientation 90 degrees east), and the subsequent fields are
> filled counterclockwise around the pie chart. Is there a way to
> control the orientation of the chart so that, say, the first field is
> coloured at north, progressing clockwise? 


well you'd have to change the source code; in general to go from polar
coordinate angles to compass angles replace theta with 90-theta,
possibly followed by a

if(theta < 0) theta=theta+360;

step.



Hamish




More information about the grass-user mailing list